rayito 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rayito/__init__.py +214 -0
- rayito/_aws.py +588 -0
- rayito/_aws_sanitize.py +129 -0
- rayito/_charts.py +339 -0
- rayito/_code_base.py +367 -0
- rayito/_filesystem_base.py +623 -0
- rayito/_git_base.py +698 -0
- rayito/_lifecycle_base.py +479 -0
- rayito/_limits.py +123 -0
- rayito/_listing_base.py +460 -0
- rayito/_metrics_base.py +120 -0
- rayito/_models.py +1298 -0
- rayito/_network_base.py +376 -0
- rayito/_payload.py +148 -0
- rayito/_persistence_base.py +432 -0
- rayito/_pool_backends.py +171 -0
- rayito/_pool_base.py +599 -0
- rayito/_process_base.py +524 -0
- rayito/_pty_base.py +149 -0
- rayito/_s3.py +251 -0
- rayito/_sandbox_base.py +732 -0
- rayito/_transfer_base.py +783 -0
- rayito/_transport.py +516 -0
- rayito/_version.py +6 -0
- rayito/cli/__init__.py +7 -0
- rayito/cli/__main__.py +41 -0
- rayito/cli/_artifact.py +179 -0
- rayito/cli/_checks.py +732 -0
- rayito/cli/_compat.py +106 -0
- rayito/cli/_console.py +111 -0
- rayito/cli/_logs.py +158 -0
- rayito/cli/_prune.py +384 -0
- rayito/cli/_publish.py +497 -0
- rayito/cli/_session.py +163 -0
- rayito/cli/_terminal.py +301 -0
- rayito/cli/_tokens.py +73 -0
- rayito/cli/app.py +98 -0
- rayito/cli/doctor.py +166 -0
- rayito/cli/image.py +268 -0
- rayito/cli/sandbox.py +583 -0
- rayito/e2b/__init__.py +208 -0
- rayito/e2b/_async.py +1121 -0
- rayito/e2b/_client.py +81 -0
- rayito/e2b/_compat.py +666 -0
- rayito/e2b/_connection.py +365 -0
- rayito/e2b/_models.py +156 -0
- rayito/e2b/_sync.py +1396 -0
- rayito/e2b/_types.py +29 -0
- rayito/e2b/_unimplemented.py +169 -0
- rayito/e2b/exceptions.py +80 -0
- rayito/exceptions.py +244 -0
- rayito/mcp/__init__.py +21 -0
- rayito/mcp/__main__.py +8 -0
- rayito/mcp/_cli.py +170 -0
- rayito/mcp/_lease.py +134 -0
- rayito/mcp/_results.py +221 -0
- rayito/mcp/_server.py +351 -0
- rayito/mcp/_settings.py +127 -0
- rayito/py.typed +0 -0
- rayito/sandbox_async/__init__.py +3 -0
- rayito/sandbox_async/code.py +248 -0
- rayito/sandbox_async/commands.py +434 -0
- rayito/sandbox_async/filesystem.py +611 -0
- rayito/sandbox_async/git.py +554 -0
- rayito/sandbox_async/lifecycle.py +140 -0
- rayito/sandbox_async/listing.py +144 -0
- rayito/sandbox_async/main.py +1981 -0
- rayito/sandbox_async/persistence.py +136 -0
- rayito/sandbox_async/pool.py +704 -0
- rayito/sandbox_async/pty.py +183 -0
- rayito/sandbox_async/transfer.py +610 -0
- rayito/sandbox_sync/__init__.py +3 -0
- rayito/sandbox_sync/code.py +282 -0
- rayito/sandbox_sync/commands.py +483 -0
- rayito/sandbox_sync/filesystem.py +668 -0
- rayito/sandbox_sync/git.py +553 -0
- rayito/sandbox_sync/lifecycle.py +143 -0
- rayito/sandbox_sync/listing.py +143 -0
- rayito/sandbox_sync/main.py +2308 -0
- rayito/sandbox_sync/persistence.py +139 -0
- rayito/sandbox_sync/pool.py +749 -0
- rayito/sandbox_sync/pty.py +214 -0
- rayito/sandbox_sync/transfer.py +590 -0
- rayito/v1/__init__.py +4 -0
- rayito/v1/code_pb2.py +83 -0
- rayito/v1/code_pb2.pyi +193 -0
- rayito/v1/code_pb2_grpc.py +308 -0
- rayito/v1/common_pb2.py +48 -0
- rayito/v1/common_pb2.pyi +70 -0
- rayito/v1/common_pb2_grpc.py +4 -0
- rayito/v1/filesystem_pb2.py +137 -0
- rayito/v1/filesystem_pb2.pyi +465 -0
- rayito/v1/filesystem_pb2_grpc.py +710 -0
- rayito/v1/health_pb2.py +54 -0
- rayito/v1/health_pb2.pyi +96 -0
- rayito/v1/health_pb2_grpc.py +176 -0
- rayito/v1/lifecycle_pb2.py +46 -0
- rayito/v1/lifecycle_pb2.pyi +63 -0
- rayito/v1/lifecycle_pb2_grpc.py +92 -0
- rayito/v1/network_pb2.py +48 -0
- rayito/v1/network_pb2.pyi +63 -0
- rayito/v1/network_pb2_grpc.py +136 -0
- rayito/v1/process_pb2.py +75 -0
- rayito/v1/process_pb2.pyi +157 -0
- rayito/v1/process_pb2_grpc.py +303 -0
- rayito/v1/pty_pb2.py +60 -0
- rayito/v1/pty_pb2.pyi +96 -0
- rayito/v1/pty_pb2_grpc.py +267 -0
- rayito-0.3.0.dist-info/METADATA +428 -0
- rayito-0.3.0.dist-info/RECORD +114 -0
- rayito-0.3.0.dist-info/WHEEL +4 -0
- rayito-0.3.0.dist-info/entry_points.txt +4 -0
- rayito-0.3.0.dist-info/licenses/LICENSE +202 -0
- rayito-0.3.0.dist-info/licenses/NOTICE +13 -0
rayito/__init__.py
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"""Rayito: sandboxes de ejecución para agentes de IA sobre AWS Lambda MicroVMs."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from rayito._aws import ClientSettings
|
|
6
|
+
from rayito._charts import (
|
|
7
|
+
BarChart,
|
|
8
|
+
BarData,
|
|
9
|
+
BoxAndWhiskerChart,
|
|
10
|
+
BoxAndWhiskerData,
|
|
11
|
+
Chart,
|
|
12
|
+
ChartType,
|
|
13
|
+
LineChart,
|
|
14
|
+
PieChart,
|
|
15
|
+
PieData,
|
|
16
|
+
PointData,
|
|
17
|
+
ScaleType,
|
|
18
|
+
ScatterChart,
|
|
19
|
+
SuperChart,
|
|
20
|
+
)
|
|
21
|
+
from rayito._git_base import GitBranches, GitFileStatus, GitResetMode, GitStatus
|
|
22
|
+
from rayito._listing_base import ListOrder
|
|
23
|
+
from rayito._models import (
|
|
24
|
+
ALL_TRAFFIC,
|
|
25
|
+
AsyncUploadTicket,
|
|
26
|
+
CheckpointProgress,
|
|
27
|
+
CheckpointResult,
|
|
28
|
+
CodeContext,
|
|
29
|
+
CommandResult,
|
|
30
|
+
DownloadLink,
|
|
31
|
+
EgressEnforcement,
|
|
32
|
+
EgressProxy,
|
|
33
|
+
EntryInfo,
|
|
34
|
+
Execution,
|
|
35
|
+
ExecutionError,
|
|
36
|
+
FilesystemEvent,
|
|
37
|
+
FilesystemEventType,
|
|
38
|
+
FileType,
|
|
39
|
+
HostAccess,
|
|
40
|
+
IdlePolicy,
|
|
41
|
+
LaunchOptions,
|
|
42
|
+
Logs,
|
|
43
|
+
MicrovmListPage,
|
|
44
|
+
NetworkOptions,
|
|
45
|
+
NetworkPolicy,
|
|
46
|
+
NetworkSelectorContext,
|
|
47
|
+
NetworkState,
|
|
48
|
+
OutputMessage,
|
|
49
|
+
ProcessInfo,
|
|
50
|
+
PtySize,
|
|
51
|
+
RestoreProgress,
|
|
52
|
+
RestoreResult,
|
|
53
|
+
Result,
|
|
54
|
+
S3Prefix,
|
|
55
|
+
S3Staging,
|
|
56
|
+
SandboxHealth,
|
|
57
|
+
SandboxInfo,
|
|
58
|
+
SandboxLifecycle,
|
|
59
|
+
SandboxListItem,
|
|
60
|
+
SandboxMetrics,
|
|
61
|
+
TransferStatus,
|
|
62
|
+
UploadTicket,
|
|
63
|
+
WriteEntry,
|
|
64
|
+
)
|
|
65
|
+
from rayito._pool_backends import InMemoryPoolBackend, JsonFilePoolBackend, PoolBackend
|
|
66
|
+
from rayito._pool_base import PoolConfig, PoolSlotInfo, PoolStats
|
|
67
|
+
from rayito._transport import TransportSettings
|
|
68
|
+
from rayito._version import __version__
|
|
69
|
+
from rayito.exceptions import (
|
|
70
|
+
AuthenticationException,
|
|
71
|
+
CapacityException,
|
|
72
|
+
CommandExitException,
|
|
73
|
+
DiskFullException,
|
|
74
|
+
FileNotFoundException,
|
|
75
|
+
FileUploadException,
|
|
76
|
+
GitAuthException,
|
|
77
|
+
GitUpstreamException,
|
|
78
|
+
InvalidArgumentException,
|
|
79
|
+
LifecycleUnsupportedException,
|
|
80
|
+
NotFoundException,
|
|
81
|
+
PersistenceException,
|
|
82
|
+
PoolClosedException,
|
|
83
|
+
QuotaExceededException,
|
|
84
|
+
RateLimitException,
|
|
85
|
+
SandboxException,
|
|
86
|
+
SandboxLifetimeException,
|
|
87
|
+
SandboxNotFoundException,
|
|
88
|
+
SandboxNotReadyException,
|
|
89
|
+
SandboxStateException,
|
|
90
|
+
TimeoutException,
|
|
91
|
+
TransferException,
|
|
92
|
+
UnimplementedError,
|
|
93
|
+
)
|
|
94
|
+
from rayito.sandbox_async.commands import AsyncCommandHandle
|
|
95
|
+
from rayito.sandbox_async.filesystem import AsyncWatchHandle
|
|
96
|
+
from rayito.sandbox_async.git import AsyncGit
|
|
97
|
+
from rayito.sandbox_async.listing import AsyncSandboxListPaginator
|
|
98
|
+
from rayito.sandbox_async.main import AsyncSandbox
|
|
99
|
+
from rayito.sandbox_async.pool import AsyncSandboxPool
|
|
100
|
+
from rayito.sandbox_async.pty import AsyncPtyHandle
|
|
101
|
+
from rayito.sandbox_sync.commands import CommandHandle
|
|
102
|
+
from rayito.sandbox_sync.filesystem import WatchHandle
|
|
103
|
+
from rayito.sandbox_sync.git import Git
|
|
104
|
+
from rayito.sandbox_sync.listing import SandboxListPaginator
|
|
105
|
+
from rayito.sandbox_sync.main import Sandbox
|
|
106
|
+
from rayito.sandbox_sync.pool import SandboxPool
|
|
107
|
+
from rayito.sandbox_sync.pty import PtyHandle
|
|
108
|
+
|
|
109
|
+
__all__ = [
|
|
110
|
+
"ALL_TRAFFIC",
|
|
111
|
+
"AsyncCommandHandle",
|
|
112
|
+
"AsyncGit",
|
|
113
|
+
"AsyncPtyHandle",
|
|
114
|
+
"AsyncSandbox",
|
|
115
|
+
"AsyncSandboxListPaginator",
|
|
116
|
+
"AsyncSandboxPool",
|
|
117
|
+
"AsyncUploadTicket",
|
|
118
|
+
"AsyncWatchHandle",
|
|
119
|
+
"AuthenticationException",
|
|
120
|
+
"BarChart",
|
|
121
|
+
"BarData",
|
|
122
|
+
"BoxAndWhiskerChart",
|
|
123
|
+
"BoxAndWhiskerData",
|
|
124
|
+
"CapacityException",
|
|
125
|
+
"Chart",
|
|
126
|
+
"ChartType",
|
|
127
|
+
"CheckpointProgress",
|
|
128
|
+
"CheckpointResult",
|
|
129
|
+
"ClientSettings",
|
|
130
|
+
"CodeContext",
|
|
131
|
+
"CommandExitException",
|
|
132
|
+
"CommandHandle",
|
|
133
|
+
"CommandResult",
|
|
134
|
+
"DiskFullException",
|
|
135
|
+
"DownloadLink",
|
|
136
|
+
"EgressEnforcement",
|
|
137
|
+
"EgressProxy",
|
|
138
|
+
"EntryInfo",
|
|
139
|
+
"Execution",
|
|
140
|
+
"ExecutionError",
|
|
141
|
+
"FileNotFoundException",
|
|
142
|
+
"FileType",
|
|
143
|
+
"FileUploadException",
|
|
144
|
+
"FilesystemEvent",
|
|
145
|
+
"FilesystemEventType",
|
|
146
|
+
"Git",
|
|
147
|
+
"GitAuthException",
|
|
148
|
+
"GitBranches",
|
|
149
|
+
"GitFileStatus",
|
|
150
|
+
"GitResetMode",
|
|
151
|
+
"GitStatus",
|
|
152
|
+
"GitUpstreamException",
|
|
153
|
+
"HostAccess",
|
|
154
|
+
"IdlePolicy",
|
|
155
|
+
"InMemoryPoolBackend",
|
|
156
|
+
"InvalidArgumentException",
|
|
157
|
+
"JsonFilePoolBackend",
|
|
158
|
+
"LaunchOptions",
|
|
159
|
+
"LifecycleUnsupportedException",
|
|
160
|
+
"LineChart",
|
|
161
|
+
"ListOrder",
|
|
162
|
+
"Logs",
|
|
163
|
+
"MicrovmListPage",
|
|
164
|
+
"NetworkOptions",
|
|
165
|
+
"NetworkPolicy",
|
|
166
|
+
"NetworkSelectorContext",
|
|
167
|
+
"NetworkState",
|
|
168
|
+
"NotFoundException",
|
|
169
|
+
"OutputMessage",
|
|
170
|
+
"PersistenceException",
|
|
171
|
+
"PieChart",
|
|
172
|
+
"PieData",
|
|
173
|
+
"PointData",
|
|
174
|
+
"PoolBackend",
|
|
175
|
+
"PoolClosedException",
|
|
176
|
+
"PoolConfig",
|
|
177
|
+
"PoolSlotInfo",
|
|
178
|
+
"PoolStats",
|
|
179
|
+
"ProcessInfo",
|
|
180
|
+
"PtyHandle",
|
|
181
|
+
"PtySize",
|
|
182
|
+
"QuotaExceededException",
|
|
183
|
+
"RateLimitException",
|
|
184
|
+
"RestoreProgress",
|
|
185
|
+
"RestoreResult",
|
|
186
|
+
"Result",
|
|
187
|
+
"S3Prefix",
|
|
188
|
+
"S3Staging",
|
|
189
|
+
"Sandbox",
|
|
190
|
+
"SandboxException",
|
|
191
|
+
"SandboxHealth",
|
|
192
|
+
"SandboxInfo",
|
|
193
|
+
"SandboxLifecycle",
|
|
194
|
+
"SandboxLifetimeException",
|
|
195
|
+
"SandboxListItem",
|
|
196
|
+
"SandboxListPaginator",
|
|
197
|
+
"SandboxMetrics",
|
|
198
|
+
"SandboxNotFoundException",
|
|
199
|
+
"SandboxNotReadyException",
|
|
200
|
+
"SandboxPool",
|
|
201
|
+
"SandboxStateException",
|
|
202
|
+
"ScaleType",
|
|
203
|
+
"ScatterChart",
|
|
204
|
+
"SuperChart",
|
|
205
|
+
"TimeoutException",
|
|
206
|
+
"TransferException",
|
|
207
|
+
"TransferStatus",
|
|
208
|
+
"TransportSettings",
|
|
209
|
+
"UnimplementedError",
|
|
210
|
+
"UploadTicket",
|
|
211
|
+
"WatchHandle",
|
|
212
|
+
"WriteEntry",
|
|
213
|
+
"__version__",
|
|
214
|
+
]
|