Skip to content

Add async support #102

@jgentil

Description

@jgentil

Is your feature request related to a problem? Please describe.

The library is unusable in an asynchronous application like FastAPI as it causes blocking network IO calls, which disrupts the async event loop.

Describe the solution you'd like

Implement an AsyncFireblockSDK that uses a library like httpx instead of requests.

Additional context

httpx itself has clever ways to separate the actual HTTP IO mechanism (which has to be async) from the building of the Request and Response objects themselves, so perhaps this would be pretty simple to build to mimic it's design. It also works synchronously so it is easy to replace requests with httpx entirely.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions