Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

freeplay

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freeplay

  • 0.3.11
  • PyPI
  • Socket score

Maintainers
1

Freeplay Python SDK

The official Python SDK for easily accessing the Freeplay API.

Installation

pip install freeplay

Compatibility

  • Python 3.8+

Usage

# Import the SDK
from freeplay import Freeplay

# Initialize the client
fp_client = Freeplay(
    provider_config=ProviderConfig(openai=OpenAIConfig(OPENAI_API_KEY)),
    freeplay_api_key=FREEPLAY_API_KEY,
    api_base=f'https://{FREEPLAY_CUSTOMER_NAME}.freeplay.ai/api')

# Completion Request
completion = fp_client.get_completion(project_id=FREEPLAY_PROJECT_ID,
                                      template_name="template",
                                      variables={"input_variable_name": "input_variable_value"})

See the Freeplay Docs for more usage examples and the API reference.

License

This SDK is released under the MIT License.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc