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.
Files changed (114) hide show
  1. rayito/__init__.py +214 -0
  2. rayito/_aws.py +588 -0
  3. rayito/_aws_sanitize.py +129 -0
  4. rayito/_charts.py +339 -0
  5. rayito/_code_base.py +367 -0
  6. rayito/_filesystem_base.py +623 -0
  7. rayito/_git_base.py +698 -0
  8. rayito/_lifecycle_base.py +479 -0
  9. rayito/_limits.py +123 -0
  10. rayito/_listing_base.py +460 -0
  11. rayito/_metrics_base.py +120 -0
  12. rayito/_models.py +1298 -0
  13. rayito/_network_base.py +376 -0
  14. rayito/_payload.py +148 -0
  15. rayito/_persistence_base.py +432 -0
  16. rayito/_pool_backends.py +171 -0
  17. rayito/_pool_base.py +599 -0
  18. rayito/_process_base.py +524 -0
  19. rayito/_pty_base.py +149 -0
  20. rayito/_s3.py +251 -0
  21. rayito/_sandbox_base.py +732 -0
  22. rayito/_transfer_base.py +783 -0
  23. rayito/_transport.py +516 -0
  24. rayito/_version.py +6 -0
  25. rayito/cli/__init__.py +7 -0
  26. rayito/cli/__main__.py +41 -0
  27. rayito/cli/_artifact.py +179 -0
  28. rayito/cli/_checks.py +732 -0
  29. rayito/cli/_compat.py +106 -0
  30. rayito/cli/_console.py +111 -0
  31. rayito/cli/_logs.py +158 -0
  32. rayito/cli/_prune.py +384 -0
  33. rayito/cli/_publish.py +497 -0
  34. rayito/cli/_session.py +163 -0
  35. rayito/cli/_terminal.py +301 -0
  36. rayito/cli/_tokens.py +73 -0
  37. rayito/cli/app.py +98 -0
  38. rayito/cli/doctor.py +166 -0
  39. rayito/cli/image.py +268 -0
  40. rayito/cli/sandbox.py +583 -0
  41. rayito/e2b/__init__.py +208 -0
  42. rayito/e2b/_async.py +1121 -0
  43. rayito/e2b/_client.py +81 -0
  44. rayito/e2b/_compat.py +666 -0
  45. rayito/e2b/_connection.py +365 -0
  46. rayito/e2b/_models.py +156 -0
  47. rayito/e2b/_sync.py +1396 -0
  48. rayito/e2b/_types.py +29 -0
  49. rayito/e2b/_unimplemented.py +169 -0
  50. rayito/e2b/exceptions.py +80 -0
  51. rayito/exceptions.py +244 -0
  52. rayito/mcp/__init__.py +21 -0
  53. rayito/mcp/__main__.py +8 -0
  54. rayito/mcp/_cli.py +170 -0
  55. rayito/mcp/_lease.py +134 -0
  56. rayito/mcp/_results.py +221 -0
  57. rayito/mcp/_server.py +351 -0
  58. rayito/mcp/_settings.py +127 -0
  59. rayito/py.typed +0 -0
  60. rayito/sandbox_async/__init__.py +3 -0
  61. rayito/sandbox_async/code.py +248 -0
  62. rayito/sandbox_async/commands.py +434 -0
  63. rayito/sandbox_async/filesystem.py +611 -0
  64. rayito/sandbox_async/git.py +554 -0
  65. rayito/sandbox_async/lifecycle.py +140 -0
  66. rayito/sandbox_async/listing.py +144 -0
  67. rayito/sandbox_async/main.py +1981 -0
  68. rayito/sandbox_async/persistence.py +136 -0
  69. rayito/sandbox_async/pool.py +704 -0
  70. rayito/sandbox_async/pty.py +183 -0
  71. rayito/sandbox_async/transfer.py +610 -0
  72. rayito/sandbox_sync/__init__.py +3 -0
  73. rayito/sandbox_sync/code.py +282 -0
  74. rayito/sandbox_sync/commands.py +483 -0
  75. rayito/sandbox_sync/filesystem.py +668 -0
  76. rayito/sandbox_sync/git.py +553 -0
  77. rayito/sandbox_sync/lifecycle.py +143 -0
  78. rayito/sandbox_sync/listing.py +143 -0
  79. rayito/sandbox_sync/main.py +2308 -0
  80. rayito/sandbox_sync/persistence.py +139 -0
  81. rayito/sandbox_sync/pool.py +749 -0
  82. rayito/sandbox_sync/pty.py +214 -0
  83. rayito/sandbox_sync/transfer.py +590 -0
  84. rayito/v1/__init__.py +4 -0
  85. rayito/v1/code_pb2.py +83 -0
  86. rayito/v1/code_pb2.pyi +193 -0
  87. rayito/v1/code_pb2_grpc.py +308 -0
  88. rayito/v1/common_pb2.py +48 -0
  89. rayito/v1/common_pb2.pyi +70 -0
  90. rayito/v1/common_pb2_grpc.py +4 -0
  91. rayito/v1/filesystem_pb2.py +137 -0
  92. rayito/v1/filesystem_pb2.pyi +465 -0
  93. rayito/v1/filesystem_pb2_grpc.py +710 -0
  94. rayito/v1/health_pb2.py +54 -0
  95. rayito/v1/health_pb2.pyi +96 -0
  96. rayito/v1/health_pb2_grpc.py +176 -0
  97. rayito/v1/lifecycle_pb2.py +46 -0
  98. rayito/v1/lifecycle_pb2.pyi +63 -0
  99. rayito/v1/lifecycle_pb2_grpc.py +92 -0
  100. rayito/v1/network_pb2.py +48 -0
  101. rayito/v1/network_pb2.pyi +63 -0
  102. rayito/v1/network_pb2_grpc.py +136 -0
  103. rayito/v1/process_pb2.py +75 -0
  104. rayito/v1/process_pb2.pyi +157 -0
  105. rayito/v1/process_pb2_grpc.py +303 -0
  106. rayito/v1/pty_pb2.py +60 -0
  107. rayito/v1/pty_pb2.pyi +96 -0
  108. rayito/v1/pty_pb2_grpc.py +267 -0
  109. rayito-0.3.0.dist-info/METADATA +428 -0
  110. rayito-0.3.0.dist-info/RECORD +114 -0
  111. rayito-0.3.0.dist-info/WHEEL +4 -0
  112. rayito-0.3.0.dist-info/entry_points.txt +4 -0
  113. rayito-0.3.0.dist-info/licenses/LICENSE +202 -0
  114. 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
+ ]