Skip to content

feat(modules): add OpenFGA module #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

giggsoff
Copy link

Add OpenFGA testcontainer module

Add OpenFGA testcontainer module

Signed-off-by: Petr Fedchenkov <[email protected]>
@cbernard-rm25
Copy link

This is super useful. I am trying to run something like this locally but not having much success. Would love to see this native to testcontainers-python.

@Tranquility2
Copy link
Contributor

Closed #806

@Tranquility2 Tranquility2 linked an issue Jul 2, 2025 that may be closed by this pull request
@Tranquility2
Copy link
Contributor

Tranquility2 commented Jul 2, 2025

So we got:

modules/openfga/tests/test_openfga.py:1: in <module>
    from testcontainers.openfga import OpenFGAContainer
modules/openfga/testcontainers/openfga/__init__.py:17: in <module>
    from openfga_sdk import ClientConfiguration
E   ImportError: cannot import name 'ClientConfiguration' from 'openfga_sdk'

looks like a completability issue.

Checking the lock file we get:

name = "openfga-sdk"
version = "0.1.1"

This is from Jan 18, 2023

@Tranquility2
Copy link
Contributor

Tranquility2 commented Jul 2, 2025

poetry add openfga_sdk==0.9.4

Updating dependencies
Resolving dependencies... (0.0s)

The current project's supported Python range (>=3.9,<4.0) is not compatible with some of the required packages Python requirement:
  - openfga-sdk requires Python >=3.10, so it will not be installable for Python >=3.9,<3.10

https://github.com/openfga/python-sdk/blob/main/CHANGELOG.md#v020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Container: OpenFGA
3 participants