-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
54 lines (47 loc) · 1.31 KB
/
__init__.py
File metadata and controls
54 lines (47 loc) · 1.31 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
"""
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 CodesphereError, AuthenticationError
from .resources.team import Team, TeamCreate, TeamBase
from .resources.workspace import (
Workspace,
WorkspaceCreate,
WorkspaceUpdate,
WorkspaceStatus,
)
from .resources.workspace.envVars import EnvVar
from .resources.metadata import Datacenter, Characteristic, WsPlan, Image
logging.getLogger("codesphere").addHandler(logging.NullHandler())
__all__ = [
"CodesphereSDK",
"CodesphereError",
"AuthenticationError",
"Team",
"TeamCreate",
"TeamBase",
"Workspace",
"WorkspaceCreate",
"WorkspaceUpdate",
"WorkspaceStatus",
"EnvVar",
"Datacenter",
"Characteristic",
"WsPlan",
"Image",
]