-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor clients and add support for FirecREST v2 (#148)
* Async client for FirecREST v2 (#126) * add unit tests (#127) * add v2 docs * Fix docstrings formatting warnings * Add status endpoints for v2 (#130) * Async client for FirecREST v2 * Fix log level * Add status endpoints * Apiv2 merge (#133) * Run unittests for all PRs, not only the ones to main (#131) * Update AsyncExternalStorage.py --------- Co-authored-by: rsarm <rafael.sarmiento@cscs.ch> * Add file system endpoints (#134) * Run unittests for all PRs, not only the ones to main (#131) * add fs endpoints * fix bugs * Fix small typos * Add responses for ls * Add responses for ls options * Add tests for /head * Small fixes and test files in tail * Small fixes in tail and test file * Small fixes in async client and checksum test file * Add file test output * Add test files for stat * add more endpoints * add responses * Fix rm * Add rm test * Fix typo * Fix simple upload and download * Rename param * Update _json_response * Fix simple upload --------- Co-authored-by: Eirini Koutsaniti <eirini.koutsaniti@cscs.ch> Co-authored-by: Eirini Koutsaniti <ekoutsaniti@gmail.com> * Add compute endpoints (#135) * Add submit endpoint * Fix typo * Add job info and metadata * Add job submissions output * Add cancel and attach to v2 client * Fix type * Add better support for transfer jobs (#136) * Add better support for transfer jobs in mv/cp/rm * Fix type * Add upload method * Add download method * Add aiofiles dep * Pin aiofiles to 23.2.1 to maintain support for python 3.7 * Fix mypy errors * Fix aiofiles version * Fix types-aiofiles version * Add sync client for v2 (#137) * Add better support for transfer jobs in mv/cp/rm * Fix type * Add upload method * Add download method * Add aiofiles dep * Pin aiofiles to 23.2.1 to maintain support for python 3.7 * Fix mypy errors * Fix aiofiles version * Fix types-aiofiles version * Add sync client * Fix mypy errors * Add docs for sync client * Add userinfo endpoint for api v2 (#138) * Run unittests for all PRs, not only the ones to main (#131) * add user info endpoint async * add user info endpoint sync * add unit tests * fix json format * Fix types --------- Co-authored-by: Eirini Koutsaniti <eirini.koutsaniti@cscs.ch> Co-authored-by: Eirini Koutsaniti <ekoutsaniti@gmail.com> * Add some fixes and updates in the api (#140) * Run unittests for all PRs, not only the ones to main (#131) * small fixes * bug fix * update ls rec resp --------- Co-authored-by: Eirini Koutsaniti <eirini.koutsaniti@cscs.ch> * Add extract and compress functions to v2 (#141) * Add extract and compress fucntions to v2 * Fix return types * Add missing endpoints mkdir and symlink (#143) * Run unittests for all PRs, not only the ones to main (#131) * add mkdir and symlink * Small fixes --------- Co-authored-by: Eirini Koutsaniti <eirini.koutsaniti@cscs.ch> Co-authored-by: Eirini Koutsaniti <ekoutsaniti@gmail.com> * Allow passing path to local script in client.submit (#142) * Run unittests for all PRs, not only the ones to main (#131) * submit with path to local file * fixes * fixes --------- Co-authored-by: Eirini Koutsaniti <eirini.koutsaniti@cscs.ch> Co-authored-by: Eirini Koutsaniti <ekoutsaniti@gmail.com> * Refactor versions of the api (#144) * Refactor package * Fix docs references for v1 * Fix type errors in docs * Update docs for v2 * Small fix * fix imports * Rename submit args * Retry requests in case of 429 (#147) * Retry in case of 429 in v2 * Fix workflow image * Small fix in systems method * Add missing line --------- Co-authored-by: rsarm <rafael.sarmiento@cscs.ch>
- Loading branch information
Showing
85 changed files
with
3,331 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy-unasync] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Asynchronous FirecREST objects | ||
============================== | ||
|
||
The library also provides an asynchronous API for the client: | ||
|
||
The ``AsyncFirecrest`` class | ||
**************************** | ||
.. autoclass:: firecrest.v2.AsyncFirecrest | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Authorization | ||
============= | ||
|
||
The ``ClientCredentialsAuth`` class | ||
*********************************** | ||
.. autoclass:: firecrest.ClientCredentialsAuth | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FirecREST objects | ||
============================== | ||
|
||
Here is the API for the client: | ||
|
||
The ``Firecrest`` class | ||
**************************** | ||
.. autoclass:: firecrest.v2.Firecrest | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
4 changes: 2 additions & 2 deletions
4
docs/source/reference_index.rst → docs/source/reference_v1_index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Reference | ||
========= | ||
API v1 | ||
====== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
API v2 | ||
====== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
reference_sync_v2 | ||
reference_async_v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.