testcontainers / testcontainers/testcontainers-python
Feature: Async OpenFGA Client
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 386
- Avg merge
- 4h 40m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at OpenFGAContainer and compare its existing client support with the OpenFGA Python SDK async-client documentation. Add the requested get_async_client() entry point and verify that it supports the async usage described in the issue alongside the existing synchronous client.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100