Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 990 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 990 Bytes

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)