Skip to content

v1.1.x - Introduce async functionality#39

Draft
frissyn wants to merge 7 commits intodevfrom
dev-async
Draft

v1.1.x - Introduce async functionality#39
frissyn wants to merge 7 commits intodevfrom
dev-async

Conversation

@frissyn
Copy link
Owner

@frissyn frissyn commented Apr 6, 2022

These changes aim to re-introduce asynchronous request functionality to valorant.py. The original implementation was naïve and still made blocking requests to the API.

This will add the aiohttp dependency, and while I did want to keep the library dependency free for as long as possible, this functionality is too crucial to ignore.

The AsyncClient and its components will be introduced in v1.1.0, and other working changes will be added to v1.0.x in the meantime.

Developement:

  • Refactor WebCaller to be more resource efficent.
  • Create an AioCaller client using aiohttp.
    • Add asyncio loop support.
    • Add response Retry-After support.
  • Provide async helper utilities?

@frissyn frissyn added tag: enhancement New feature or request type: feature Add something that doesn't exist yet. tag: important labels Apr 6, 2022
@frissyn frissyn added this to the v1.1.x milestone Apr 6, 2022
@frissyn frissyn self-assigned this Apr 6, 2022
@frissyn frissyn changed the base branch from master to dev April 9, 2022 00:15
@frissyn
Copy link
Owner Author

frissyn commented Jun 11, 2022

Forgot about this cuz of end-of-semester grades lol, will get back on this soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag: enhancement New feature or request tag: important type: feature Add something that doesn't exist yet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant