testcontainers / testcontainers/testcontainers-python
Feature: Async OpenFGA Client
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 2.3k
- Forks
- 386
- Ø Merge
- 4 Std. 40 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
What are you trying to do?
Add get_async_client() method to OpenFGAContainer to support async OpenFGA clients.
Previous issue regarding OpenFGA with the initial contribution is: https://github.com/testcontainers/testcontainers-python/issues/806
Why should it be done this way?
Modern async web frameworks (FastAPI, async Django) use AsyncOpenFgaClient in production, but testcontainers only provides sync clients. This creates a production-test mismatch requiring ugly workarounds.
The OpenFGA SDK already provides both sync and async clients - testcontainers should support both.
Other references:
- [OpenFGA Python SDK async client docs](https://github.com/openfga/python-sdk#async-client)
- Similar pattern: Redis testcontainer provides both sync/async connections
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne bei OpenFGAContainer und vergleiche dessen bestehende Client-Unterstützung mit der Dokumentation des OpenFGA Python SDK für den async-client. Füge den angeforderten Einstiegspunkt get_async_client() hinzu und überprüfe, dass er die im Issue beschriebene asynchrone Verwendung neben dem bestehenden synchronen Client unterstützt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100