-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy path__init__.py
More file actions
68 lines (58 loc) · 1.67 KB
/
Copy path__init__.py
File metadata and controls
68 lines (58 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
"""
Secure sandboxed cloud environments made for AI agents and AI apps.
Check docs [here](https://e2b.dev/docs).
E2B Sandbox is a secure cloud sandbox environment made for AI agents and AI
apps.
Sandboxes allow AI agents and apps to have long running cloud secure environments.
In these environments, large language models can use the same tools as humans do.
E2B Python SDK supports both sync and async API:
```py
from e2b import Sandbox
# Create sandbox
sandbox = Sandbox()
```
```py
from e2b import AsyncSandbox
# Create sandbox
sandbox = await AsyncSandbox.create()
```
"""
from .api import (
ApiClient,
client,
)
from .connection_config import (
ConnectionConfig,
ProxyTypes,
)
from .exceptions import (
SandboxException,
TimeoutException,
NotFoundException,
AuthenticationException,
InvalidArgumentException,
NotEnoughSpaceException,
TemplateException,
)
from .sandbox.sandbox_api import SandboxInfo
from .sandbox.commands.main import ProcessInfo
from .sandbox.commands.command_handle import (
CommandResult,
Stderr,
Stdout,
CommandExitException,
PtyOutput,
PtySize,
)
from .sandbox.filesystem.watch_handle import (
FilesystemEvent,
FilesystemEventType,
)
from .sandbox.filesystem.filesystem import EntryInfo, FileType
from .sandbox_sync.main import Sandbox
from .sandbox_sync.filesystem.watch_handle import WatchHandle
from .sandbox_sync.commands.command_handle import CommandHandle
from .sandbox_async.utils import OutputHandler
from .sandbox_async.main import AsyncSandbox
from .sandbox_async.filesystem.watch_handle import AsyncWatchHandle
from .sandbox_async.commands.command_handle import AsyncCommandHandle