StanzaSystems / sdk-python

The official Python SDK for adding Stanza Systems fault tolerance to your python 3 service.
https://www.stanza.systems
Other
1 stars 1 forks source link

[Python SDK] FastAPI adapter #14

Closed sre-is-msg closed 9 months ago

sre-is-msg commented 11 months ago

Create a FastAPI adapter module which makes it easy to add a Stanza Guard to a FastAPI service. Functionally this should be similar to sdk-go's fiber adapter.

The adapter will wrap the generic guard implementation but (as with #15), please also consider first implementing a generic "HTTP Server" (so all future HTTP server adaptors -- AIOHTTP, Flask, Django, etc -- will wrap the same HTTP server implementation). In sdk-go the generic HTTP Server implementation lives here: https://github.com/StanzaSystems/sdk-go/blob/main/handlers/httphandler/server.go

sre-is-msg commented 10 months ago

WIP/Draft PR: https://github.com/StanzaSystems/sdk-python/pull/23

sre-is-msg commented 9 months ago

Can we close this issue @jamie-kuppens-sre-is?

jamie-kuppens-sre-is commented 9 months ago

Can we close this issue @jamie-kuppens-sre-is?

Yeah we can.