prized 0.1.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.
- prized/__init__.py +35 -0
- prized/_async_sandbox.py +1183 -0
- prized/_base.py +73 -0
- prized/_core.py +1558 -0
- prized/_errors.py +318 -0
- prized/_http.py +427 -0
- prized/_models.py +170 -0
- prized/_output.py +245 -0
- prized/_runs.py +535 -0
- prized/_sandbox.py +1310 -0
- prized/_version.py +1 -0
- prized/py.typed +0 -0
- prized-0.1.0.dist-info/METADATA +488 -0
- prized-0.1.0.dist-info/RECORD +16 -0
- prized-0.1.0.dist-info/WHEEL +4 -0
- prized-0.1.0.dist-info/licenses/LICENSE +202 -0
prized/__init__.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Prized Sandboxes (beta): microVMs your code creates, runs commands in,
|
|
2
|
+
pauses, forks and deletes.
|
|
3
|
+
|
|
4
|
+
from prized import Sandbox
|
|
5
|
+
|
|
6
|
+
with Sandbox.create() as sb:
|
|
7
|
+
print(sb.exec("python3 --version").stdout)
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from ._async_sandbox import AsyncCommandHandle, AsyncFiles, AsyncSandbox
|
|
11
|
+
from ._errors import CommandTimeoutError, PrizedError
|
|
12
|
+
from ._models import ExecResult, FileInfo, Resources, SandboxData, Template, WriteInfo
|
|
13
|
+
from ._runs import CommandLogs, CommandStatus
|
|
14
|
+
from ._sandbox import CommandHandle, Files, Sandbox
|
|
15
|
+
from ._version import __version__
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"AsyncCommandHandle",
|
|
19
|
+
"AsyncFiles",
|
|
20
|
+
"AsyncSandbox",
|
|
21
|
+
"CommandHandle",
|
|
22
|
+
"CommandLogs",
|
|
23
|
+
"CommandStatus",
|
|
24
|
+
"CommandTimeoutError",
|
|
25
|
+
"ExecResult",
|
|
26
|
+
"FileInfo",
|
|
27
|
+
"Files",
|
|
28
|
+
"PrizedError",
|
|
29
|
+
"Resources",
|
|
30
|
+
"Sandbox",
|
|
31
|
+
"SandboxData",
|
|
32
|
+
"Template",
|
|
33
|
+
"WriteInfo",
|
|
34
|
+
"__version__",
|
|
35
|
+
]
|