|
4 | 4 | import logging |
5 | 5 |
|
6 | 6 | from . import serverless |
7 | | -from .serverless.modules.rp_logger import RunPodLogger |
8 | | -from .endpoint import Endpoint |
9 | | -from .endpoint import AsyncioEndpoint, AsyncioJob |
10 | | -from .version import __version__ |
11 | 7 | from .api.ctl_commands import ( |
12 | | - get_user, update_user_settings, |
13 | | - get_gpu, get_gpus, |
14 | | - get_pod, get_pods, create_pod, stop_pod, resume_pod, terminate_pod, |
| 8 | + create_container_registry_auth, |
| 9 | + create_endpoint, |
| 10 | + create_pod, |
15 | 11 | create_template, |
16 | | - get_endpoints, create_endpoint, update_endpoint_template |
| 12 | + get_endpoints, |
| 13 | + get_gpu, |
| 14 | + get_gpus, |
| 15 | + get_pod, |
| 16 | + get_pods, |
| 17 | + get_user, |
| 18 | + resume_pod, |
| 19 | + stop_pod, |
| 20 | + terminate_pod, |
| 21 | + update_endpoint_template, |
| 22 | + update_user_settings, |
17 | 23 | ) |
18 | | -from .cli.groups.config.functions import set_credentials, check_credentials, get_credentials |
19 | | - |
| 24 | +from .cli.groups.config.functions import ( |
| 25 | + check_credentials, |
| 26 | + get_credentials, |
| 27 | + set_credentials, |
| 28 | +) |
| 29 | +from .endpoint import AsyncioEndpoint, AsyncioJob, Endpoint |
| 30 | +from .serverless.modules.rp_logger import RunPodLogger |
| 31 | +from .version import __version__ |
20 | 32 |
|
21 | 33 | # ------------------------------- Config Paths ------------------------------- # |
22 | | -SSH_KEY_PATH = os.path.expanduser('~/.runpod/ssh') |
| 34 | +SSH_KEY_PATH = os.path.expanduser("~/.runpod/ssh") |
23 | 35 |
|
24 | 36 |
|
25 | 37 | profile = "default" # pylint: disable=invalid-name |
26 | 38 |
|
27 | 39 | _credentials = get_credentials(profile) |
28 | 40 | if _credentials is not None: |
29 | | - api_key = _credentials['api_key'] # pylint: disable=invalid-name |
| 41 | + api_key = _credentials["api_key"] # pylint: disable=invalid-name |
30 | 42 | else: |
31 | 43 | api_key = None # pylint: disable=invalid-name |
32 | 44 |
|
|
0 commit comments