bonya 1.0.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.
bonya/__init__.py ADDED
@@ -0,0 +1,101 @@
1
+ """Synchronous Python SDK for Bonya sandboxes."""
2
+
3
+ from ._client import Bonya, Organization, SandboxSummary
4
+ from ._errors import (
5
+ AuthenticationError,
6
+ BonyaError,
7
+ CapabilityRejectedError,
8
+ ConflictError,
9
+ ConnectionError,
10
+ CrossFilesystemMoveError,
11
+ ExecFailedError,
12
+ FilesystemError,
13
+ FilesystemLimitError,
14
+ InvalidRequestError,
15
+ JobRunNotFoundError,
16
+ JobScheduleNotFoundError,
17
+ LimitReachedError,
18
+ NoCapacityError,
19
+ OutcomeUnknownError,
20
+ PayloadTooLargeError,
21
+ PermissionDeniedError,
22
+ RateLimitedError,
23
+ RemoteFileExistsError,
24
+ RemoteFileNotFoundError,
25
+ SandboxBusyError,
26
+ SandboxCreationFailedError,
27
+ SandboxCreationTimeoutError,
28
+ SandboxDeletedError,
29
+ SandboxFailedError,
30
+ SandboxNotFoundError,
31
+ SandboxSuspendedError,
32
+ ServiceError,
33
+ SessionExists,
34
+ SessionExistsError,
35
+ SessionNotFoundError,
36
+ SnapshotInUseError,
37
+ SnapshotNotFoundError,
38
+ TimeoutError,
39
+ )
40
+ from ._files import FileInfo, FileKind
41
+ from ._jobs import (
42
+ Disposition,
43
+ JobResult,
44
+ JobRun,
45
+ JobRunAction,
46
+ JobRunDetail,
47
+ JobRunStatus,
48
+ JobRunTimelineEntry,
49
+ JobRunTimelineStatus,
50
+ JobSandboxSpec,
51
+ JobSchedule,
52
+ JobScriptSpec,
53
+ JobSpec,
54
+ JobStart,
55
+ ScheduleAction,
56
+ ScheduleOverlap,
57
+ ScheduleSpec,
58
+ )
59
+ from ._library import RegistryConnection, Secret, SecretSet, Template, TemplateConfig
60
+ from ._previews import Preview, PreviewAuth, PreviewGrant
61
+ from ._sandbox import Capability, DeleteResult, ExecResult, ForkResult, ResumeResult, Sandbox, Snapshot
62
+ from ._session import ExecSession
63
+ from ._sessions import (
64
+ SessionEnded,
65
+ SessionEndedReason,
66
+ SessionInfo,
67
+ SessionList,
68
+ SessionOutputDropped,
69
+ SessionStatus,
70
+ SessionStream,
71
+ )
72
+ from ._types import (
73
+ LISTABLE_STATUSES,
74
+ ExecEvent,
75
+ Exit,
76
+ GpuRequest,
77
+ NetworkPolicy,
78
+ NetworkRule,
79
+ Status,
80
+ Stderr,
81
+ Stdout,
82
+ Wait,
83
+ )
84
+
85
+ __all__ = [
86
+ "AuthenticationError", "Bonya", "BonyaError", "Capability", "CapabilityRejectedError", "ConflictError",
87
+ "ConnectionError", "CrossFilesystemMoveError", "DeleteResult", "Disposition", "ExecEvent", "ExecFailedError",
88
+ "ExecResult", "ExecSession", "Exit", "FileInfo", "FileKind", "FilesystemError", "FilesystemLimitError",
89
+ "ForkResult", "GpuRequest", "InvalidRequestError", "JobResult", "JobRun", "JobRunAction", "JobRunDetail",
90
+ "JobRunNotFoundError", "JobRunStatus", "JobRunTimelineEntry", "JobRunTimelineStatus", "JobSandboxSpec",
91
+ "JobSchedule", "JobScheduleNotFoundError", "JobScriptSpec", "JobSpec", "JobStart", "LISTABLE_STATUSES",
92
+ "LimitReachedError", "NetworkPolicy", "NetworkRule", "NoCapacityError", "Organization", "OutcomeUnknownError",
93
+ "PayloadTooLargeError", "PermissionDeniedError", "Preview", "PreviewAuth", "PreviewGrant", "RateLimitedError",
94
+ "RegistryConnection", "RemoteFileExistsError", "RemoteFileNotFoundError", "ResumeResult", "Sandbox",
95
+ "SandboxBusyError", "SandboxCreationFailedError", "SandboxCreationTimeoutError", "SandboxDeletedError",
96
+ "SandboxFailedError", "SandboxNotFoundError", "SandboxSummary", "SandboxSuspendedError", "ScheduleAction",
97
+ "ScheduleOverlap", "ScheduleSpec", "Secret", "SecretSet", "ServiceError", "SessionEnded", "SessionEndedReason",
98
+ "SessionExists", "SessionExistsError", "SessionInfo", "SessionList", "SessionNotFoundError",
99
+ "SessionOutputDropped", "SessionStatus", "SessionStream", "Snapshot", "SnapshotInUseError",
100
+ "SnapshotNotFoundError", "Status", "Stderr", "Stdout", "Template", "TemplateConfig", "TimeoutError", "Wait",
101
+ ]