Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Doing async requests #681

Open
kelvan opened this issue Oct 29, 2020 · 3 comments
Open

Doing async requests #681

kelvan opened this issue Oct 29, 2020 · 3 comments

Comments

@kelvan
Copy link

kelvan commented Oct 29, 2020

Just found out to my surprise that the apistar client does not support async requests.
As this project seems rather dead, maybe someone knows a similar one that implement async?
did some overriding to achieve it in a hacky way:
https://gist.github.com/kelvan/49e3efb99c329b4c2476d49458b19c19

@carltongibson
Copy link

Use HTTPX.

@hcastilho
Copy link

So the project is indeed dead?

@kelvan
Copy link
Author

kelvan commented Nov 10, 2020

@carltongibson can you elaborate how I should use httpx?
Only way to use httpx here is to not use apistar client and reimplement the whole api client by hand.
Using a httpx async client as session in apistar won't work as it does not await it.
Using openapi-generator with --library asyncio now to create and package the client in the ci pipeline

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

No branches or pull requests

3 participants