Skip to content

http client wrapper around trio and httpx for handling async requests

License

Notifications You must be signed in to change notification settings

ryukyi/async-requester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async-Requester

This is a wrapper around httpx and trio for making python requests easier and default to async.

The returned objects are a list of httpx responses.

Quickstart

Install poetry then run:

poetry install
poetry run python -m src.main

Why

Autogenerated sdks are difficult to build and maintain. Take control of your sdk and default to async.

For example say you have a complex api endpoint requirement. So many possible mistakes. Define the pydantic schema in src/schema.py then update src/api.py and bobs your aunty - you have an async sdk!

Testing

poetry run python -m pytest

Static typing

poetry run mypy .

Nice to have

  • Black formatted
  • mypy compliant
  • Modern http and async libraries (httpx and trio respectively)

About

http client wrapper around trio and httpx for handling async requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages