Skip to content

[feat] async client #15

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

[feat] async client #15

wants to merge 10 commits into from

Conversation

AlbertDeFusco
Copy link
Contributor

@AlbertDeFusco AlbertDeFusco commented Feb 11, 2025

Switching from requests to niquests seems like a quick drop-in to enable async clients and perhaps other advanced features. Most of tThe original tests are now passing.

[ins] In [1]: from anaconda_auth.client import BaseAsyncClient

[ins] In [2]: async with BaseAsyncClient() as client:
         ...:     res = await client.get("api/account")
         ...: 

[ins] In [3]: res
Out[3]: <Response HTTP/2 [200]>

[ins] In [4]: 

The migration guide recommends swapping requests imported modules for niquests in conftest.py. That may not be necessary at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant