Skip to content

Commit 77741a5

Browse files
committed
Merge branch 'beta' of https://github.com/e2b-dev/E2B into beta
2 parents 0ab63b3 + adc2b30 commit 77741a5

File tree

19 files changed

+2459
-115
lines changed

19 files changed

+2459
-115
lines changed

.github/workflows/release_candidates.yml

+33-29
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,6 @@ jobs:
3636
pnpm config set auto-install-peers true
3737
pnpm config set exclude-links-from-lockfile true
3838
39-
- name: Install dependencies
40-
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
41-
run: pnpm install --frozen-lockfile
42-
43-
- name: Test JS SDK
44-
working-directory: packages/js-sdk
45-
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
46-
run: |
47-
pnpm run test
48-
env:
49-
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
50-
51-
- name: Release JS Candidate
52-
working-directory: packages/js-sdk
53-
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
54-
run: |
55-
npm version prerelease --preid=${{ github.head_ref }}
56-
npm publish --tag rc
57-
env:
58-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
60-
- name: Release CLI Candidate
61-
working-directory: packages/cli
62-
if: ${{ contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
63-
run: |
64-
npm version prerelease --preid=${{ github.head_ref }}
65-
npm publish --tag rc
66-
env:
67-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6839
6940
- name: Set up Python
7041
uses: actions/setup-python@v4
@@ -85,6 +56,7 @@ jobs:
8556
if: ${{ contains( github.event.pull_request.labels.*.name, 'python-rc') }}
8657
working-directory: packages/python-sdk
8758
run: |
59+
poetry install
8860
poetry run pytest -n 4 --verbose -x
8961
env:
9062
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
@@ -99,6 +71,38 @@ jobs:
9971
env:
10072
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
10173

74+
- name: Install dependencies
75+
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
76+
run: |
77+
pnpm install --frozen-lockfile
78+
79+
- name: Test JS SDK
80+
working-directory: packages/js-sdk
81+
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
82+
run: |
83+
npx playwright install --with-deps
84+
pnpm run test
85+
env:
86+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
87+
88+
- name: Release JS Candidate
89+
working-directory: packages/js-sdk
90+
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
91+
run: |
92+
npm version prerelease --preid=${{ github.head_ref }}
93+
npm publish --tag rc
94+
env:
95+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
96+
97+
- name: Release CLI Candidate
98+
working-directory: packages/cli
99+
if: ${{ contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
100+
run: |
101+
npm version prerelease --preid=${{ github.head_ref }}
102+
npm publish --tag rc
103+
env:
104+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
105+
102106
- name: Commit new versions
103107
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') || contains( github.event.pull_request.labels.*.name, 'python-rc') }}
104108
run: |

README.md

+48-50
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,6 @@
77
E2B SDK
88
</h1>
99

10-
<!---
11-
<h3 align="center">
12-
SDK made to control the E2B Sandboxes - secure cloud environments for running LLM-generated code
13-
</h3>
14-
--->
15-
The E2B SDK is made to control the E2B Sandboxes - secure cloud environments for running LLM-generated code. The SDK lets you give your AI app a custom code interpreter.
16-
17-
- ✔️ Works with any LLM and AI framework (see [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) for examples)
18-
- ✔️ Supports streaming content like charts and stdout, stderr
19-
- ✔️ Python & JS SDK
20-
- ✔️ Runs on serverless and edge functions
21-
- ✔️ Runs AI-generated code in secure sandboxed environments
22-
- ✔️ 100% open source (including [infrastructure](https://github.com/e2b-dev/infra))
23-
24-
25-
##### 💻 Supported language runtimes
26-
- ✔️ Python
27-
- [(Beta)](https://e2b.dev/docs/guide/beta-code-interpreter-language-runtimes) JavaScript, R, Java
28-
29-
30-
<!---
31-
<img width="100%" src="/readme-assets/preview.png" alt="Cover image">
32-
33-
--->
34-
3510
<h4 align="center">
3611
<a href="https://pypi.org/project/e2b/">
3712
<img alt="Last 1 month downloads for the Python SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1"
@@ -43,32 +18,15 @@ The E2B SDK is made to control the E2B Sandboxes - secure cloud environments for
4318
</a>
4419
</h4>
4520

46-
---
47-
### What is E2B?
48-
49-
[E2B](https://www.e2b.dev/) is an open-source runtime for running AI-generated code in secure cloud Sandboxes. It's tailor-made for agentic & AI use cases.
50-
5121
<!---
52-
<h4 align="center">
53-
<a href="https://e2b.dev/docs">Docs</a> |
54-
<a href="https://e2b.dev">Website</a> |
55-
<a href="https://discord.gg/U7KEcGErtQ">Discord</a> |
56-
<a href="https://twitter.com/e2b_dev">Twitter</a>
57-
</h4>
58-
--->
22+
<img width="100%" src="/readme-assets/preview.png" alt="Cover image">
5923
24+
--->
6025

61-
<div align='center'>
62-
<!-- <a href="https://e2b.dev/docs" target="_blank">
63-
<img src="https://img.shields.io/badge/docs-%2300acee.svg?color=143D52&style=for-the-badge&logo=x&logoColor=white" alt=docs style="margin-bottom: 5px;"/></a> -->
64-
<a href="https://twitter.com/e2b_dev" target="_blank">
65-
<img src="https://img.shields.io/badge/x (twitter)-%2300acee.svg?color=000000&style=for-the-badge&logo=x&logoColor=white" alt=linkedin style="margin-bottom: 5px;"/></a>
66-
<a href="https://discord.com/invite/U7KEcGErtQ" target="_blank">
67-
<img src="https://img.shields.io/badge/discord -%2300acee.svg?color=143D52&style=for-the-badge&logo=discord&logoColor=white" alt=discord style="margin-bottom: 5px;"/></a>
68-
<a href="https://www.linkedin.com/company/e2b-dev/" target="_blank">
69-
<img src="https://img.shields.io/badge/linkedin-%2300acee.svg?color=000000&style=for-the-badge&logo=linkedin&logoColor=white" alt=linkedin style="margin-bottom: 5px;"/></a>
70-
</div align='center'>
26+
---
27+
### What is E2B?
7128

29+
[E2B](https://www.e2b.dev/) is an open-source runtime for running AI-generated code in secure cloud Sandboxes. It's tailor-made for agentic & AI use cases.
7230

7331
### E2B Sandbox
7432
E2B Sandbox is a secure cloud environment that allows AI agents and apps. You can run multiple instances of Sandboxes, and have long-running sessions. Inside the Sandboxes, LLMs can use the same tools as humans do, e.g.:
@@ -79,6 +37,30 @@ E2B Sandbox is a secure cloud environment that allows AI agents and apps. You ca
7937
- Coding tools like linters, autocomplete, "go-to defintion"
8038
- Audio & video editing
8139

40+
<!---
41+
<h3 align="center">
42+
SDK made to control the E2B Sandboxes - secure cloud environments for running LLM-generated code
43+
</h3>
44+
--->
45+
46+
### E2B SDK
47+
48+
The E2B SDK is made to control the E2B Sandboxes - secure cloud environments for running LLM-generated code. The SDK lets you give your AI app a custom code interpreter.
49+
50+
- ✔️ Works with any LLM and AI framework (see [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) for examples)
51+
- ✔️ Supports streaming content like charts and stdout, stderr
52+
- ✔️ Python & JS SDK
53+
- ✔️ Runs on serverless and edge functions
54+
- ✔️ Runs AI-generated code in secure sandboxed environments
55+
- ✔️ 100% open source (including [infrastructure](https://github.com/e2b-dev/infra))
56+
57+
58+
##### 💻 Supported language runtimes
59+
- ✔️ Python
60+
- JavaScript
61+
- R
62+
- Java
63+
8264

8365
<h1 align="center">
8466
Start with E2B SDK
@@ -123,10 +105,13 @@ with CodeInterpreter() as sandbox:
123105
print(execution.text) # outputs 2
124106
```
125107

126-
### 3. Hello World guides
127-
Dive depeer and check out the [JavaScript/TypeScript](https://e2b.dev/docs/hello-world/js) and [Python](https://e2b.dev/docs/hello-world/py) "Hello World" guides to learn how to connect code interpreter LLMs.
108+
### 3. More resources
109+
> Check out the [JavaScript/TypeScript](https://e2b.dev/docs/hello-world/js) and [Python](https://e2b.dev/docs/hello-world/py) "Hello World" guides to learn how to use our SDK.
110+
111+
> See [E2B documentation](https://e2b.dev/docs) to get started.
112+
113+
> Visit our [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) to get inspired by examples with different LLMs and AI frameworks.
128114
129-
> Please visit [documentation](https://e2b.dev/docs) to get started.
130115

131116
## Repository Structure
132117

@@ -136,3 +121,16 @@ This repository is a monorepo containing:
136121
1. [JS SDK](/packages/js-sdk)
137122
1. [CLI](/packages/cli)
138123
1. [Documentation](/apps/web/)
124+
125+
___
126+
127+
<div align='center'>
128+
<!-- <a href="https://e2b.dev/docs" target="_blank">
129+
<img src="https://img.shields.io/badge/docs-%2300acee.svg?color=143D52&style=for-the-badge&logo=x&logoColor=white" alt=docs style="margin-bottom: 5px;"/></a> -->
130+
<a href="https://twitter.com/e2b_dev" target="_blank">
131+
<img src="https://img.shields.io/badge/x (twitter)-%2300acee.svg?color=000000&style=for-the-badge&logo=x&logoColor=white" alt=linkedin style="margin-bottom: 5px;"/></a>
132+
<a href="https://discord.com/invite/U7KEcGErtQ" target="_blank">
133+
<img src="https://img.shields.io/badge/discord -%2300acee.svg?color=143D52&style=for-the-badge&logo=discord&logoColor=white" alt=discord style="margin-bottom: 5px;"/></a>
134+
<a href="https://www.linkedin.com/company/e2b-dev/" target="_blank">
135+
<img src="https://img.shields.io/badge/linkedin-%2300acee.svg?color=000000&style=for-the-badge&logo=linkedin&logoColor=white" alt=linkedin style="margin-bottom: 5px;"/></a>
136+
</div align='center'>

0 commit comments

Comments
 (0)