anycloud-sdk 0.1.3__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.
- anycloud/__init__.py +56 -0
- anycloud/build-defaults.json +6 -0
- anycloud/client.py +744 -0
- anycloud/errors.py +69 -0
- anycloud/function.py +376 -0
- anycloud/image.py +143 -0
- anycloud/job.py +237 -0
- anycloud/job_group.py +106 -0
- anycloud/mcp.py +423 -0
- anycloud/py.typed +0 -0
- anycloud/storage.py +141 -0
- anycloud/types.py +187 -0
- anycloud_sdk-0.1.3.dist-info/METADATA +102 -0
- anycloud_sdk-0.1.3.dist-info/RECORD +15 -0
- anycloud_sdk-0.1.3.dist-info/WHEEL +4 -0
anycloud/__init__.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""anycloud Python SDK — submit jobs, run workloads on any cloud."""
|
|
2
|
+
|
|
3
|
+
from anycloud.client import Client
|
|
4
|
+
from anycloud.function import Function, function
|
|
5
|
+
from anycloud.image import Image
|
|
6
|
+
from anycloud.errors import (
|
|
7
|
+
AnyCloudError,
|
|
8
|
+
APIError,
|
|
9
|
+
ConflictError,
|
|
10
|
+
JobFailedError,
|
|
11
|
+
JobGroupError,
|
|
12
|
+
NotFoundError,
|
|
13
|
+
TimeoutError,
|
|
14
|
+
)
|
|
15
|
+
from anycloud.job import Job
|
|
16
|
+
from anycloud.job_group import JobGroup
|
|
17
|
+
from anycloud.storage import Bucket
|
|
18
|
+
from anycloud.types import (
|
|
19
|
+
AWSCredentials,
|
|
20
|
+
AzureCredentials,
|
|
21
|
+
CloudConfig,
|
|
22
|
+
CloudType,
|
|
23
|
+
Deployment,
|
|
24
|
+
DeploymentState,
|
|
25
|
+
DockerOptions,
|
|
26
|
+
GCPCredentials,
|
|
27
|
+
LambdaCredentials,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"Client",
|
|
32
|
+
"function",
|
|
33
|
+
"Function",
|
|
34
|
+
"Image",
|
|
35
|
+
"Job",
|
|
36
|
+
"JobGroup",
|
|
37
|
+
"Bucket",
|
|
38
|
+
# Types
|
|
39
|
+
"CloudConfig",
|
|
40
|
+
"CloudType",
|
|
41
|
+
"Deployment",
|
|
42
|
+
"DeploymentState",
|
|
43
|
+
"DockerOptions",
|
|
44
|
+
"AWSCredentials",
|
|
45
|
+
"GCPCredentials",
|
|
46
|
+
"AzureCredentials",
|
|
47
|
+
"LambdaCredentials",
|
|
48
|
+
# Errors
|
|
49
|
+
"AnyCloudError",
|
|
50
|
+
"APIError",
|
|
51
|
+
"ConflictError",
|
|
52
|
+
"JobFailedError",
|
|
53
|
+
"JobGroupError",
|
|
54
|
+
"NotFoundError",
|
|
55
|
+
"TimeoutError",
|
|
56
|
+
]
|