Skip to main content

openfga-cli-py

A Python wrapper to provide a pip-installable OpenFGA CLI (fga) binary.

CI PyPI

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.0.0/openfga_cli_py-0.8.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.8.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.

Release files for openfga-cli-py 0.8.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for openfga-cli-py 0.8.0.0
File
openfga_cli_py-0.8.0.0-py2.py3-none-win_arm64.whl Python 3, Python 2 none Windows ARM64 Details
openfga_cli_py-0.8.0.0-py2.py3-none-win_amd64.whl Python 3, Python 2 none Windows x86-64 Details
openfga_cli_py-0.8.0.0-py2.py3-none-win32.whl Python 3, Python 2 none Windows x86-32 Details
openfga_cli_py-0.8.0.0-py2.py3-none-manylinux_2_17_x86_64.whl Python 3, Python 2 none Linux glibc 2.17+ x86-64 Details
openfga_cli_py-0.8.0.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.0.0-py2.py3-none-macosx_11_0_arm64.whl Python 3, Python 2 none macOS 11.0+ ARM64 Details
openfga_cli_py-0.8.0.0-py2.py3-none-macosx_10_9_x86_64.whl Python 3, Python 2 none macOS 10.9+ x86-64 Details

Total release size: 80.5 MB

Release files / openfga_cli_py-0.8.0.0-py2.py3-none-win_arm64.whl

Download URL openfga_cli_py-0.8.0.0-py2.py3-none-win_arm64.whl
Size 10.6 MB
Tags Python 2 Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
beabed397be9f44e42751c85154f9531015d968932381fa7c532c65aea3164fa
BLAKE2b-256 checksum
How to use checksums
35064ae7e63d6abd807979958c24a3031678e029493eda037ff6a7e31d983d77
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.0.0-py2.py3-none-win_amd64.whl

Download URL openfga_cli_py-0.8.0.0-py2.py3-none-win_amd64.whl
Size 12.1 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
016aa2538431193c6c8f1d0cf8f1cd525cfe0f5bb4dd1375bafb5a84aec0af8d
BLAKE2b-256 checksum
How to use checksums
c46cb19f54aed05f51c662bbbf1164c225acd07937fa32a332e034c622ab48d6
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.0.0-py2.py3-none-win32.whl

Download URL openfga_cli_py-0.8.0.0-py2.py3-none-win32.whl
Size 12.1 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
47352eb9637cefd8d8937e50e58dd0e3d628dd1039e1b0c9ff90a043022d5545
BLAKE2b-256 checksum
How to use checksums
193aee93c01831e27e3bf34ec948d441d74af43e67ac9f6e3c54e79b9bbfd686
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.0.0-py2.py3-none-manylinux_2_17_x86_64.whl

Download URL openfga_cli_py-0.8.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
2d7e0bd3d689973e195e3344e559c75f16e5705ec02f10a136ff6c9cd54e4e46
BLAKE2b-256 checksum
How to use checksums
5349c934480fdf0c8a068c4aab3b1ff873eff56f5b03f06b8b8714acea3edb4a
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.0.0-py2.py3-none-manylinux_2_17_aarch64.whl

Download URL openfga_cli_py-0.8.0.0-py2.py3-none-manylinux_2_17_aarch64.whl
Size 10.5 MB
Tags Linux glibc 2.17+ ARM64 Python 2 Python 3
SHA-256 checksum
How to use checksums
b1beec95e61d362b00b1cf79e95d089e73ff46a2c9b001f50292ce138f231447
BLAKE2b-256 checksum
How to use checksums
f805a7b28b9517059e791eb31b4ee50819f5b76b4f03f83796ef4e16cbb0ea18
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.0.0-py2.py3-none-macosx_11_0_arm64.whl

Download URL openfga_cli_py-0.8.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
5ff0e0591ddd4ac2a624d4f2a01c0768e957a72c5645b7aed4bb03b5df070e11
BLAKE2b-256 checksum
How to use checksums
d242a35104ab1763b0259468c055880aace7e6ac2be78169d68b103f20da2129
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.0.0-py2.py3-none-macosx_10_9_x86_64.whl

Download URL openfga_cli_py-0.8.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
0e04f50778007924b7e1c937c306c52d58dc9816be337eeef48cdff03597a586
BLAKE2b-256 checksum
How to use checksums
4811b341dc45f3f4b9500af49fcb393f043e0acfc5bddb967fbe161d7035b702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.8.0.0 This release

7 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page