sfapi-client 0.0.5__tar.gz → 0.0.6__tar.gz
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.
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/PKG-INFO +2 -2
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/pyproject.toml +1 -1
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/users.py +6 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/users.py +6 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/.github/workflows/mkdocs.yml +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/.github/workflows/pypi.yml +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/.github/workflows/pytest.yml +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/.gitignore +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/LEGAL +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/LICENSE +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/README.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/community/contributing.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/examples/check_current_and_past_jobs.ipynb +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/examples/getting_bearer_token.ipynb +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/examples/run_job_and_check_status.ipynb +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/gen_examples.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/gen_sync.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/javascript/apiselector.js +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/quickstart/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/SUMMARY.txt +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/client/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/compute/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/exceptions/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/groups/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/jobs/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/paths/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/projects/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/resources/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/docs/reference/async/users/index.md +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/mkdocs.yml +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/pytest.ini +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/requirements-dev.txt +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/scripts/run.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/__init__.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/__init__.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/client.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/compute.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/groups.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/jobs.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/paths.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_async/projects.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_compute.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_jobs.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_models/__init__.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_models/job_status_response_sacct.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_models/job_status_response_squeue.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_models/resources.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_monitor.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/__init__.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/_models.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/client.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/compute.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/groups.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/jobs.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/paths.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_sync/projects.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_utils.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/client.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/compute.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/exceptions.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/groups.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/jobs.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/paths.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/projects.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/resources.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/users.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/conftest.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_api.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_api_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_client.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_client_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_compute.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_compute_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_groups.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_groups_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_jobs.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_jobs_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_paths.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_paths_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_projects.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_projects_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_resources.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_resources_async.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_users.py +0 -0
- {sfapi_client-0.0.5 → sfapi_client-0.0.6}/tests/test_users_async.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sfapi_client
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Python client for NERSC SF API
|
|
5
5
|
Author-email: Chris Harris <cjh@lbl.gov>, Nicholas Tyler <tylern@lbl.gov>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
10
10
|
Requires-Python: >=3.7
|
|
11
11
|
Requires-Dist: authlib
|
|
12
12
|
Requires-Dist: httpx
|
|
13
|
-
Requires-Dist: pydantic
|
|
13
|
+
Requires-Dist: pydantic==v1.10.10
|
|
14
14
|
Requires-Dist: tenacity
|
|
15
15
|
Provides-Extra: docs
|
|
16
16
|
Requires-Dist: mkdocs-gen-files; extra == 'docs'
|
|
@@ -40,6 +40,8 @@ class AsyncUser(UserBase):
|
|
|
40
40
|
async def groups(self) -> List["AsyncGroup"]:
|
|
41
41
|
"""
|
|
42
42
|
The groups that the user is a member of.
|
|
43
|
+
|
|
44
|
+
:return: the groups
|
|
43
45
|
"""
|
|
44
46
|
# Avoid circular import
|
|
45
47
|
from .groups import AsyncGroup
|
|
@@ -65,6 +67,8 @@ class AsyncUser(UserBase):
|
|
|
65
67
|
async def projects(self) -> List[AsyncProject]:
|
|
66
68
|
"""
|
|
67
69
|
The projects the user is associate with.
|
|
70
|
+
|
|
71
|
+
:return: the projects
|
|
68
72
|
"""
|
|
69
73
|
if self.name != (await self.client._user()).name:
|
|
70
74
|
raise SfApiError(f"Can only fetch projects for authenticated user.")
|
|
@@ -86,6 +90,8 @@ class AsyncUser(UserBase):
|
|
|
86
90
|
async def roles(self) -> List[AsyncRole]:
|
|
87
91
|
"""
|
|
88
92
|
The roles the user is associate with.
|
|
93
|
+
|
|
94
|
+
:return: the roles
|
|
89
95
|
"""
|
|
90
96
|
if self.name != (await self.client._user()).name:
|
|
91
97
|
raise SfApiError(f"Can only fetch roles for authenticated user.")
|
|
@@ -40,6 +40,8 @@ class User(UserBase):
|
|
|
40
40
|
def groups(self) -> List["Group"]:
|
|
41
41
|
"""
|
|
42
42
|
The groups that the user is a member of.
|
|
43
|
+
|
|
44
|
+
:return: the groups
|
|
43
45
|
"""
|
|
44
46
|
# Avoid circular import
|
|
45
47
|
from .groups import Group
|
|
@@ -65,6 +67,8 @@ class User(UserBase):
|
|
|
65
67
|
def projects(self) -> List[Project]:
|
|
66
68
|
"""
|
|
67
69
|
The projects the user is associate with.
|
|
70
|
+
|
|
71
|
+
:return: the projects
|
|
68
72
|
"""
|
|
69
73
|
if self.name != (self.client._user()).name:
|
|
70
74
|
raise SfApiError(f"Can only fetch projects for authenticated user.")
|
|
@@ -86,6 +90,8 @@ class User(UserBase):
|
|
|
86
90
|
def roles(self) -> List[Role]:
|
|
87
91
|
"""
|
|
88
92
|
The roles the user is associate with.
|
|
93
|
+
|
|
94
|
+
:return: the roles
|
|
89
95
|
"""
|
|
90
96
|
if self.name != (self.client._user()).name:
|
|
91
97
|
raise SfApiError(f"Can only fetch roles for authenticated user.")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_models/job_status_response_sacct.py
RENAMED
|
File without changes
|
{sfapi_client-0.0.5 → sfapi_client-0.0.6}/src/sfapi_client/_models/job_status_response_squeue.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|