-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
89 lines (82 loc) · 1.89 KB
/
__init__.py
File metadata and controls
89 lines (82 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"""
Codesphere SDK - Python client for the Codesphere API.
This package provides a high-level asynchronous client for interacting
with the `Codesphere Public API <https://codesphere.com/api/swagger-ui/?ref=codesphere.ghost.io#/>`_.
Main Entrypoint:
`from codesphere import CodesphereSDK`
Basic Usage:
>>> import asyncio
>>> from codesphere import CodesphereSDK
>>>
>>> async def main():
>>> async with CodesphereSDK() as sdk:
>>> teams = await sdk.teams.list()
>>> print(teams)
>>>
>>> asyncio.run(main())
"""
import logging
from .client import CodesphereSDK
from .exceptions import (
APIError,
AuthenticationError,
AuthorizationError,
CodesphereError,
ConflictError,
NetworkError,
NotFoundError,
RateLimitError,
TimeoutError,
ValidationError,
)
from .resources.metadata import Characteristic, Datacenter, Image, WsPlan
from .resources.team import (
CustomDomainConfig,
Domain,
DomainBase,
DomainRouting,
DomainVerificationStatus,
Team,
TeamBase,
TeamCreate,
)
from .resources.workspace import (
Workspace,
WorkspaceCreate,
WorkspaceStatus,
WorkspaceUpdate,
)
from .resources.workspace.envVars import EnvVar
logging.getLogger("codesphere").addHandler(logging.NullHandler())
__all__ = [
"CodesphereSDK",
# Exceptions
"CodesphereError",
"AuthenticationError",
"AuthorizationError",
"NotFoundError",
"ValidationError",
"ConflictError",
"RateLimitError",
"APIError",
"NetworkError",
"TimeoutError",
# Resources
"Team",
"TeamCreate",
"TeamBase",
"Workspace",
"WorkspaceCreate",
"WorkspaceUpdate",
"WorkspaceStatus",
"EnvVar",
"Datacenter",
"Characteristic",
"WsPlan",
"Image",
"Domain",
"CustomDomainConfig",
"DomainVerificationStatus",
"DomainBase",
"DomainRouting",
]