testcontainers / testcontainers/testcontainers-python
Feature: Async OpenFGA Client
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 OpenFGAContainer 开始,将其现有的客户端支持与 OpenFGA Python SDK 的 async-client 文档进行比较。添加所请求的入口点 get_async_client(),并验证它支持 issue 中描述的异步用法,同时保留对现有同步客户端的支持。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100