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.8.2.0/openfga_cli_py-0.8.2.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.8.2.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.
Metadata
Release files for openfga-cli-py 0.8.2.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.8.2.0-py2.py3-none-win_arm64.whl | Python 2, Python 3 | none | Windows ARM64 | Details |
| openfga_cli_py-0.8.2.0-py2.py3-none-win_amd64.whl | Python 2, Python 3 | none | Windows x86-64 | Details |
| openfga_cli_py-0.8.2.0-py2.py3-none-win32.whl | Python 3, Python 2 | none | Windows x86-32 | Details |
| openfga_cli_py-0.8.2.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.8.2.0-py2.py3-none-manylinux_2_17_aarch64.whl | Python 2, Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| openfga_cli_py-0.8.2.0-py2.py3-none-macosx_11_0_arm64.whl | Python 2, Python 3 | none | macOS 11.0+ ARM64 | Details |
| openfga_cli_py-0.8.2.0-py2.py3-none-macosx_10_9_x86_64.whl | Python 2, Python 3 | none | macOS 10.9+ x86-64 | Details |
Total release size: 80.9 MB
Release files / openfga_cli_py-0.8.2.0-py2.py3-none-win_arm64.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-win_arm64.whl |
|---|---|
| Size | 10.7 MB |
| Tags | Python 2 Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
94a8292ad47e5cc3e342ecd18a5441bfe0c3c8943637610b03cc68fe00849a5b
|
|
BLAKE2b-256 checksum How to use checksums |
96b601e0e60fee69e7e6634936e0dd2cfa953137bbf83e11421b9dc6e6378455
|
| 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.8.2.0-py2.py3-none-win_amd64.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-win_amd64.whl |
|---|---|
| Size | 12.2 MB |
| Tags | Python 2 Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
70640e7e7b9072685f5e8286c3fdc4d3c89beb5c1ad7d261ed3f9f4f45c0e508
|
|
BLAKE2b-256 checksum How to use checksums |
889fbd6d84aeda0dec4cc1e4c39dc682fea8216e532a25bb777644a436c2e870
|
| 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.8.2.0-py2.py3-none-win32.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-win32.whl |
|---|---|
| Size | 12.2 MB |
| Tags | Python 2 Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
892c4a2fbca3f1c48204338798fd33308b90c30f085991c392c2f8c222c3fb4d
|
|
BLAKE2b-256 checksum How to use checksums |
7fc14104d41bfb239c00f1a685d8a6095721d3fd3e1be524f1c53c21a518e307
|
| 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.8.2.0-py2.py3-none-manylinux_2_17_x86_64.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 11.9 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
adb032ba652465983daad2a17a7fc1383a70c3d6e6ac7319188dcad1dae79782
|
|
BLAKE2b-256 checksum How to use checksums |
b0a920188b840ee9d765f105522112b204b27a2e237b1cfd75619db5369de0dd
|
| 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.8.2.0-py2.py3-none-manylinux_2_17_aarch64.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 10.6 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b9f68e31db2f30c387e376c50ef73b67449cb29d0e15e3fe053d1a890d2a8ca2
|
|
BLAKE2b-256 checksum How to use checksums |
57e302c5cebf4a5e54b7291045b8a227f79b91b6525fee8ad10e9fba4ed589c8
|
| 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.8.2.0-py2.py3-none-macosx_11_0_arm64.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 11.1 MB |
| Tags | Python 2 Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
070d66dfe2c273bd39fa9ec8d7f146d0ef61f12de076bd546426b40f42965301
|
|
BLAKE2b-256 checksum How to use checksums |
c14cc02e44ea22cba31b0ce054b9c46a96d160582f1f7e351a5bfc2666aaed71
|
| 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.8.2.0-py2.py3-none-macosx_10_9_x86_64.whl
| Download URL | openfga_cli_py-0.8.2.0-py2.py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 12.2 MB |
| Tags | Python 2 Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8b3867cd44e27cc8377e8e3f30f88a06d63e3bac4363fadc5aa1f967ca0771f
|
|
BLAKE2b-256 checksum How to use checksums |
c592c59d97abc1b68b39e9c4f4f9190e28749b97f0f5e2ddbc90c3371785d847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|