@e2b/python-sdk@0.10.2
In python 3.9 and below you can't do something like str | None in the type definition of a function's arguments. However, this can be fixed by using __future__. Python stores the annotations as strings and doesn't try to evaluate them. This allows you to write type hints using Python 3.10's syntax in a Python 3.9 environment. When the code is actually run, the annotations aren't evaluated, so there's no issue with the interpreter not understanding the | operator for union types. I checked and the | is only in this one file, elsewhere we are using Union. I replaced the | with Unions to make it consistent.
E2B - Sandbox Runtime for LLMs
Sandboxed cloud environments for AI-powered apps and agentic workflows
Docs | Website | Discord | Twitter
E2B is cloud for AI agents and AI apps. With E2B, you can create AI playgrounds. In these AI playgrounds, you can let your AI agents and apps:
- Run any code and terminal command in a sandboxed environment
- Install dependencies and programs
- Use filesystem
- Upload and download files
- Access the internet
- Start a web server that's accessible from the internet
- Clone git repositories
- Start any process (even long-running such as a database)
This just a few examples of what can be done with our agent cloud environments.
Our SDK works with any AI agent (no matter what framework, you're using), and without the need to manage any infrastructure.
Getting Started & Documentation
Visit docs to get started with the SDK.
Python
pip install e2b
JavaScript & TypeScript
npm install @e2b/sdk
Description
E2B 是开源的安全运行时环境,为企业级 AI Agent 提供真实工具支持。|GitHub 镜像 ⭐ 13.6k · 🍴 1k
https://github.com/e2b-dev/e2b
Readme
Apache-2.0
130 MiB
Languages
Python
57.4%
TypeScript
41.9%
Dockerfile
0.3%
JavaScript
0.1%
Makefile
0.1%
Other
0.1%