openfga-cli-py
A Python wrapper to provide a pip-installable OpenFGA CLI (fga) binary.
Installation
pip install openfga-cli-py
Or install a platform wheel directly from a GitHub Release (for air-gapped/offline use):
pip install https://github.com/neeve-ai/openfga-cli-py/releases/download/v0.7.20.0/openfga_cli_py-0.7.20.0-py2.py3-none-linux_x86_64.whl
Usage
After installation, the fga binary is available in your environment:
fga version
fga store list
Or invoke it from Python:
import subprocess
subprocess.run(["fga", "version"], check=True)
Supported Platforms
| Platform | Architecture |
|---|---|
| Linux | x86_64, arm64, i686 |
| macOS | x86_64 (Intel), arm64 (Apple Silicon) |
| Windows | AMD64, ARM64, x86 |
Note: If your platform is not listed above, installation will fail with an error from
setuptools-download. Use a supported platform or build from source.
Note: In air-gapped environments, download the pre-built wheel for your platform from the GitHub Releases page and install it directly with
pip install <wheel-file>.
As a pre-commit hook
Add to your .pre-commit-config.yaml:
- repo: https://github.com/neeve-ai/openfga-cli-py
rev: v0.7.20.0
hooks:
- id: fga
args: [model, validate, --file, openfga.json]
pass_filenames: false
always_run: true
The hook invokes fga directly. Pass any fga subcommands and flags via args.
Updating to a new OpenFGA CLI version
Use the provided script to regenerate setup.cfg for a new upstream release:
chmod +x update_version.sh
./update_version.sh 0.7.20
This downloads the official checksums.txt for the new version and rewrites setup.cfg
with updated URLs and SHA-256 hashes for all 8 platforms.
Development
make install # installs the package and dependencies
make quality # runs: fga version && fga help, pytest, and builds platform wheel
License
Apache-2.0 — see LICENSE.
Release files for openfga-cli-py 0.7.20.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| openfga_cli_py-0.7.20.0-py2.py3-none-win_arm64.whl | Python 3, Python 2 | none | Windows ARM64 | Details |
| openfga_cli_py-0.7.20.0-py2.py3-none-win_amd64.whl | Python 2, Python 3 | none | Windows x86-64 | Details |
| openfga_cli_py-0.7.20.0-py2.py3-none-win32.whl | Python 3, Python 2 | none | Windows x86-32 | Details |
| openfga_cli_py-0.7.20.0-py2.py3-none-manylinux_2_17_x86_64.whl | Python 2, Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| openfga_cli_py-0.7.20.0-py2.py3-none-manylinux_2_17_aarch64.whl | Python 3, Python 2 | none | Linux glibc 2.17+ ARM64 | Details |
| openfga_cli_py-0.7.20.0-py2.py3-none-macosx_11_0_arm64.whl | Python 3, Python 2 | none | macOS 11.0+ ARM64 | Details |
| openfga_cli_py-0.7.20.0-py2.py3-none-macosx_10_9_x86_64.whl | Python 3, Python 2 | none | macOS 10.9+ x86-64 | Details |
Total release size: 71.3 MB
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-win_arm64.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-win_arm64.whl |
|---|---|
| Size | 9.4 MB |
| Tags | Python 2 Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
6bd281c7e4cb253dc8f5b97dbed6e6b1ce71edb2cbcb2bf0d768b92b0f0c80d4
|
|
BLAKE2b-256 checksum How to use checksums |
b2fe6b24d07591841306ebcc8cf575779d6f02107edf198ba1a349cb7870ae22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-win_amd64.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-win_amd64.whl |
|---|---|
| Size | 10.7 MB |
| Tags | Python 2 Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a2a7eb2e7a7c6a651d8c252f832131a5a996f5aa38acf34d29bd93f99b624b7f
|
|
BLAKE2b-256 checksum How to use checksums |
2bd4f5f888163b890da7dd7e7507f40525475d63cf35937eb7f9b25152a0c72c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-win32.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-win32.whl |
|---|---|
| Size | 10.7 MB |
| Tags | Python 2 Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
70671cb471cb73f7ee50540070a8c8b0e40d480a831e870cae877766ba77a02f
|
|
BLAKE2b-256 checksum How to use checksums |
7b5587e6ee02b1deded05b781a5554dfe6f5f668426318685fba17c153b42c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-manylinux_2_17_x86_64.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 10.5 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
08ef4c4dfb6982351e261962efca6cf1815f2ce24c5f434957dc25977035914f
|
|
BLAKE2b-256 checksum How to use checksums |
8fd8fb010b06ef4d11fa3cbbc659e0ac27784e011a50c34b3893b49ad4cbfd33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-manylinux_2_17_aarch64.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 9.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b59a0827b6f81938510aec211acbf9f53161dcc0f712b583cdce89b4a76d0bb6
|
|
BLAKE2b-256 checksum How to use checksums |
e748dc1a78871a8a2777c3cd2e1c25e4f42072a5e75a6e4814c9e4988c5639ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-macosx_11_0_arm64.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Python 2 Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
35cec1c7e846014ea876150161d685fcff1c6b5f3bd50c47737c7872e3a13d99
|
|
BLAKE2b-256 checksum How to use checksums |
3cf290f2db390a46b6ed765b1aacec61c932b3d9a342334915396c575988b35a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / openfga_cli_py-0.7.20.0-py2.py3-none-macosx_10_9_x86_64.whl
| Download URL | openfga_cli_py-0.7.20.0-py2.py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 10.8 MB |
| Tags | Python 2 Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
62b2f7c22950fe6c78dd6df2b76ad3f7341fbdf96478183a58f9335cbb19edb8
|
|
BLAKE2b-256 checksum How to use checksums |
8e2bf58c5d3ffca432cc6161d7e129009d233b34cf2e5323b5a6162c72c967a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|