exedev 0.2.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.
exedev/__init__.py ADDED
@@ -0,0 +1,66 @@
1
+ # Code generated by "go run ./cmd/gensdkpy" in the exe.dev repository. DO NOT EDIT.
2
+
3
+ """The exe.dev SDK: create VMs, run commands on them, and manage your account.
4
+
5
+ import exedev
6
+
7
+ exe = exedev.Client() # reads EXE_TOKEN
8
+ with exe.new(name="build") as vm:
9
+ print(vm.run("uname -a", check=True).stdout)
10
+
11
+ AsyncClient is the same API for asyncio.
12
+ """
13
+
14
+ from ._async import AsyncClient, AsyncProcess, AsyncVM
15
+ from ._errors import (
16
+ APIError,
17
+ AuthenticationError,
18
+ CommandError,
19
+ CommandInterruptedError,
20
+ CommandTimeoutError,
21
+ ExeError,
22
+ NetworkError,
23
+ NotFoundError,
24
+ OutputLimitError,
25
+ PermissionDeniedError,
26
+ ProcessLostError,
27
+ ProtocolError,
28
+ RateLimitError,
29
+ VMNotRunningError,
30
+ VMReadyError,
31
+ VMSetupError,
32
+ )
33
+ from ._sync import VM, Client, Process
34
+ from ._wire import CommandResult, Logs
35
+
36
+ __all__ = [
37
+ "APIError",
38
+ "AsyncClient",
39
+ "AsyncProcess",
40
+ "AsyncVM",
41
+ "AuthenticationError",
42
+ "Client",
43
+ "CommandError",
44
+ "CommandInterruptedError",
45
+ "CommandResult",
46
+ "CommandTimeoutError",
47
+ "ExeError",
48
+ "Logs",
49
+ "NetworkError",
50
+ "NotFoundError",
51
+ "OutputLimitError",
52
+ "PermissionDeniedError",
53
+ "Process",
54
+ "ProcessLostError",
55
+ "ProtocolError",
56
+ "RateLimitError",
57
+ "VM",
58
+ "VMNotRunningError",
59
+ "VMReadyError",
60
+ "VMSetupError",
61
+ ]
62
+
63
+ # Document the public classes where they are used from.
64
+ for _cls in (AsyncClient, AsyncVM, AsyncProcess, Client, VM, Process, CommandResult, Logs):
65
+ _cls.__module__ = __name__
66
+ del _cls