sfapi-client 0.0.8__tar.gz → 0.0.9__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.8 → sfapi_client-0.0.9}/.github/workflows/black.yml +1 -1
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.github/workflows/mkdocs.yml +3 -3
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.github/workflows/pypi.yml +4 -4
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.github/workflows/pytest.yml +2 -2
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.github/workflows/ruff.yml +1 -1
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/PKG-INFO +2 -2
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/client.py +7 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/paths.py +4 -1
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/users.py +2 -1
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/client.py +6 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.github/dependabot.yml +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.gitignore +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/.pre-commit-config.yaml +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/LEGAL +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/LICENSE +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/README.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/community/contributing.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/examples/check_current_and_past_jobs.ipynb +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/examples/getting_bearer_token.ipynb +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/examples/run_job_and_check_status.ipynb +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/gen_examples.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/gen_sync.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/javascript/apiselector.js +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/quickstart/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/SUMMARY.txt +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/client/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/compute/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/exceptions/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/groups/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/jobs/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/paths/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/projects/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/resources/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/docs/reference/async/users/index.md +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/mkdocs.yml +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/pyproject.toml +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/pytest.ini +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/requirements-dev.txt +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/scripts/run.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/__init__.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/__init__.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/compute.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/groups.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/jobs.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_async/projects.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_compute.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_jobs.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_models/__init__.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_models/job_status_response_sacct.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_models/job_status_response_squeue.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_models/resources.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_monitor.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/__init__.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/compute.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/groups.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/jobs.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/paths.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/projects.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_sync/users.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/_utils.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/client.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/compute.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/exceptions.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/groups.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/jobs.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/paths.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/projects.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/resources.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/src/sfapi_client/users.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/conftest.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_api.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_api_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_client.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_client_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_compute.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_compute_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_groups.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_groups_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_jobs.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_jobs_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_paths.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_paths_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_projects.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_projects_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_resources.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_resources_async.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_users.py +0 -0
- {sfapi_client-0.0.8 → sfapi_client-0.0.9}/tests/test_users_async.py +0 -0
|
@@ -12,11 +12,11 @@ jobs:
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
16
|
-
- uses: actions/setup-python@
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
17
|
with:
|
|
18
18
|
python-version: 3.x
|
|
19
|
-
- uses: actions/cache@
|
|
19
|
+
- uses: actions/cache@v4
|
|
20
20
|
with:
|
|
21
21
|
key: mkdocs-${{ github.ref }}
|
|
22
22
|
path: .cache
|
|
@@ -13,9 +13,9 @@ jobs:
|
|
|
13
13
|
name: Build wheel
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
17
|
- name: Set up Python
|
|
18
|
-
uses: actions/setup-python@
|
|
18
|
+
uses: actions/setup-python@v5
|
|
19
19
|
with:
|
|
20
20
|
python-version: "3.x"
|
|
21
21
|
- name: Install pypa/build
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
--wheel
|
|
34
34
|
--outdir dist/
|
|
35
35
|
|
|
36
|
-
- uses: actions/upload-artifact@
|
|
36
|
+
- uses: actions/upload-artifact@v4
|
|
37
37
|
with:
|
|
38
38
|
name: wheel
|
|
39
39
|
path: ./dist/
|
|
@@ -49,7 +49,7 @@ jobs:
|
|
|
49
49
|
id-token: write
|
|
50
50
|
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
|
|
51
51
|
steps:
|
|
52
|
-
- uses: actions/download-artifact@
|
|
52
|
+
- uses: actions/download-artifact@v4
|
|
53
53
|
with:
|
|
54
54
|
name: wheel
|
|
55
55
|
path: dist
|
|
@@ -16,9 +16,9 @@ jobs:
|
|
|
16
16
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
17
17
|
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
20
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
|
-
uses: actions/setup-python@
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
22
|
with:
|
|
23
23
|
python-version: ${{ matrix.python-version }}
|
|
24
24
|
- name: Install dependencies
|
|
@@ -512,3 +512,10 @@ AsyncProject.model_rebuild()
|
|
|
512
512
|
AsyncRemotePath.model_rebuild()
|
|
513
513
|
AsyncRole.model_rebuild()
|
|
514
514
|
AsyncGroupMember.model_rebuild()
|
|
515
|
+
|
|
516
|
+
# Ensure that the job models are built, we need to import here to
|
|
517
|
+
# avoid circular imports
|
|
518
|
+
from .jobs import AsyncJobSacct, AsyncJobSqueue # noqa: E402
|
|
519
|
+
|
|
520
|
+
AsyncJobSqueue.model_rebuild()
|
|
521
|
+
AsyncJobSacct.model_rebuild()
|
|
@@ -165,7 +165,10 @@ class AsyncRemotePath(PathBase):
|
|
|
165
165
|
|
|
166
166
|
@staticmethod
|
|
167
167
|
async def _ls(
|
|
168
|
-
compute: "
|
|
168
|
+
compute: "AsyncCompute", # noqa: F821
|
|
169
|
+
path,
|
|
170
|
+
directory=False,
|
|
171
|
+
filter_dots=True, # noqa: F821
|
|
169
172
|
) -> List["RemotePath"]: # noqa: F821
|
|
170
173
|
r = await compute.client.get(f"utilities/ls/{compute.name}/{path}")
|
|
171
174
|
|
|
@@ -31,7 +31,8 @@ class AsyncUser(UserBase):
|
|
|
31
31
|
@staticmethod
|
|
32
32
|
@check_auth
|
|
33
33
|
async def _fetch_user(
|
|
34
|
-
client: "AsyncClient",
|
|
34
|
+
client: "AsyncClient", # noqa: F821
|
|
35
|
+
username: Optional[str] = None, # noqa: F821
|
|
35
36
|
): # noqa: F821
|
|
36
37
|
url = "account/"
|
|
37
38
|
if username is not None:
|
|
@@ -512,3 +512,9 @@ Project.model_rebuild()
|
|
|
512
512
|
RemotePath.model_rebuild()
|
|
513
513
|
Role.model_rebuild()
|
|
514
514
|
GroupMember.model_rebuild()
|
|
515
|
+
|
|
516
|
+
# Ensure that the job models are built, we need to import here to
|
|
517
|
+
# avoid circular imports
|
|
518
|
+
from .jobs import JobSacct, JobSqueue
|
|
519
|
+
JobSqueue.model_rebuild()
|
|
520
|
+
JobSacct.model_rebuild()
|
|
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.8 → sfapi_client-0.0.9}/src/sfapi_client/_models/job_status_response_sacct.py
RENAMED
|
File without changes
|
{sfapi_client-0.0.8 → sfapi_client-0.0.9}/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
|