gpubox 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.
gpubox/__init__.py ADDED
@@ -0,0 +1,26 @@
1
+ """Rent verified GPU boxes from Vast.ai or a Slurm cluster, run jobs on them, and make sure
2
+ they are destroyed.
3
+
4
+ The library is `gpubox.api` (its docstring has an example); the command line, `gpubox.cli`,
5
+ is a thin layer over it.
6
+ """
7
+
8
+ from .api import Box, Job, Run, Settings, attach, down, reap, search, set_log, up, wait_all
9
+ from .errors import (
10
+ BoxLost,
11
+ ConfigError,
12
+ GpuboxError,
13
+ InfraError,
14
+ JobLost,
15
+ NoBoxes,
16
+ NoSuchJob,
17
+ TeardownIncomplete,
18
+ )
19
+ from .launch import Policy, Spec
20
+ from .state import StateError
21
+
22
+ __all__ = [
23
+ "Box", "BoxLost", "ConfigError", "GpuboxError", "InfraError", "Job", "JobLost", "NoBoxes",
24
+ "NoSuchJob", "Policy", "Run", "Settings", "Spec", "StateError", "TeardownIncomplete",
25
+ "attach", "down", "reap", "search", "set_log", "up", "wait_all",
26
+ ] # fmt: skip