Skip to main content

Freestyle Sandboxes Python SDK

SDKs to let you or your AI run code.

For more information check out the API documentation.

Installation

pip install freestyle

Notes

This package has a general SDK for human interaction with the API, and a series of one liners for easily adding it to any of the popular AI providers.

  • import freestyle for the general SDK
  • import freestyle.openai for OpenAI SDK
  • import freestyle.gemini for Gemini SDK
  • import freestyle.pipecat for Pipecat SDK
  • import freestyle.langgraph for Langgraph SDK

Use of AI SDKs

All of the AI SDKs export a function called execute_tool or some variation of it. They are generally used like this

definition, runner = freestyle.provider.execute_tool(YOUR_API_KEY, your_config)

This split declaration is necessary because the definition is used in the initialization of the AI and the runner is used during the runtime of the AI in some form.

Pipecat

Pipecat uses the tool format of the underlying AI provider for the declaration of its tools, however uses a pipecat specific format for the execution of its tools. To make it easy to work with, we provide execute_tool_gemini and execute_tool_openai functions that output (definition, runner) tuples that can be used with the pipecat SDK and the AI provider of your choice. If you are using Pipecat with a different provider, we separately export the execute_tool_executor that can be used as the executor for an independent tool declaration you provide.

Metadata

Release files for freestyle 0.0.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for freestyle 0.0.17
File Size Uploaded
freestyle-0.0.17.tar.gz 88.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for freestyle 0.0.17
File Interpreter ABI Platform
freestyle-0.0.17-py3-none-any.whl Python 3 none any Details

Total release size: 404.2 kB

Release files / freestyle-0.0.17.tar.gz

Download URL freestyle-0.0.17.tar.gz
Size 88.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51fb46f1f0efe334a44a89c6efc40a5a5ea5cc4980cf808bef238b20dcf2c221
BLAKE2b-256 checksum
How to use checksums
3b1a29ba39bc6f14654c42ee41f3be361f3a4b3f6b8992962700bb2ea63bf834
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / freestyle-0.0.17-py3-none-any.whl

Download URL freestyle-0.0.17-py3-none-any.whl
Size 315.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b240acb278148fe3eac97e1bb161d1ddc83459eb662c788bfad200642f5d583d
BLAKE2b-256 checksum
How to use checksums
8f7fac867f74d7940940a2e13cb77a423728e1bdcda5a37b95550246493b9ac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.0.17 This release

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page