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.9.0.0/openfga_cli_py-0.9.0.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.9.0.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.9.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 81.0 MB
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-win_arm64.whl
| Download URL | openfga_cli_py-0.9.0.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 |
6266eae5f4dc3beb540ddd4c23ea5423b3bd28c2131314885a0a2f12da53df9a
|
|
BLAKE2b-256 checksum How to use checksums |
9c268746afd9af80cbc0363621af9a77f8cfde9743f22b6ae60bc8604077eccc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-win_amd64.whl
| Download URL | openfga_cli_py-0.9.0.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 |
5ec6559702a4e0c6ee7eca1f2962d05a22cf22d0df41d72d5bfff7b5da0b93e8
|
|
BLAKE2b-256 checksum How to use checksums |
409873eaae9f48f815aaa766e39964acaee6e387e39f9c1832481768fac236bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-win32.whl
| Download URL | openfga_cli_py-0.9.0.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 |
4b62047b4890dafb32fa00b4ba61d0d029d2e76f50d5bb239202514299d5af7f
|
|
BLAKE2b-256 checksum How to use checksums |
1955c556d2e0c2ecc6b5f77f487ba0c7efb656b9c04aded5e130f1cf3076d36a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-manylinux_2_17_x86_64.whl
| Download URL | openfga_cli_py-0.9.0.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 |
8021a89b9be5513403641bc7c732dc369925f8da432cb07e4e02a328816d79e1
|
|
BLAKE2b-256 checksum How to use checksums |
c7f95e62a0e67d2141c834898fc0477e04ac8f16bcfcf1d415c308f10b76d977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-manylinux_2_17_aarch64.whl
| Download URL | openfga_cli_py-0.9.0.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 |
b599ef02f34cbe06045b5bd69ab74e2359a2c81fd1f28d3e0c7d52a5698872e8
|
|
BLAKE2b-256 checksum How to use checksums |
9a13647784f5f4bc773e016a529f3400232116dbe3ac191e92815b912b2e9e2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-macosx_11_0_arm64.whl
| Download URL | openfga_cli_py-0.9.0.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 |
e8972b41a4bf65566ffe101ec5f13b4787c81f6fcc3ec53611c08bb35a653dfa
|
|
BLAKE2b-256 checksum How to use checksums |
aac24fb605737d3b569ca37c7f898e22432610bae97e2ca79f45404f4a82ff41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / openfga_cli_py-0.9.0.0-py2.py3-none-macosx_10_9_x86_64.whl
| Download URL | openfga_cli_py-0.9.0.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 |
453742864607080a75d45dd79b0ca01a7d0d973f551b1a3348e62dcb3973378c
|
|
BLAKE2b-256 checksum How to use checksums |
dfa544f7cfca4c375df6d4748e1d463613b074c81a78db4d25fd63cee49353ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for openfga-cli-py 0.9.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.