-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat: implements async client #5
base: devel
Are you sure you want to change the base?
Conversation
bb7e987
to
ca0d358
Compare
@@ -1102,10 +1113,15 @@ def create_revision( | |||
|
|||
@handle_and_munchify_response | |||
def put_keys_in_revision( | |||
self, name: str, revision_id: str, configValues: list[(object)], **kwargs | |||
self, name: str, revision_id: str, configValues: list[(dict)], **kwargs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use snake case for all Python objects and variables.
self, name: str, revision_id: str, configValues: list[(dict)], **kwargs | |
self, name: str, revision_id: str, config_values: list[(dict)], **kwargs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guptadev21 Check in other places also. Make it consistent.
Args: | ||
name (str): Config tree name | ||
revision_id (str): Config tree revision ID | ||
configTreeRevision (object): Config tree revision details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be config_tree_revision
.
configTreeRevision (object): Config tree revision details | |
configTreeRevision (object): Config tree revision details |
This pull request includes several changes to the
rapyuta_io_sdk_v2
package, focusing on adding async capabilities, updating methods, and expanding test coverage. The most important changes include adding new dependencies, introducing theAsyncClient
, updating method signatures, and adding async test cases.Async Client Introduction:
rapyuta_io_sdk_v2/__init__.py
: ImportedAsyncClient
to enable async operations in the SDK.Method Updates:
rapyuta_io_sdk_v2/client.py
: Updated therefresh_token
method to include an optionalset_token
parameter and set the refreshed token in the configuration ifset_token
isTrue
. [1] [2]rapyuta_io_sdk_v2/client.py
: Added missing docstrings for several methods to improve code documentation. [1] [2] [3] [4]Test Coverage:
tests/async_tests/
: Added new async test casestests/utils/test_util.py
: Added a fixture for initializingAsyncClient
to support async test cases. [1] [2]Azure Task: Resolves AB#35883