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.1.0/openfga_cli_py-0.8.1.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.1.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.1.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.1.0
File
openfga_cli_py-0.8.1.0-py2.py3-none-win_arm64.whl Python 2, Python 3 none Windows ARM64 Details
openfga_cli_py-0.8.1.0-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
openfga_cli_py-0.8.1.0-py2.py3-none-win32.whl Python 2, Python 3 none Windows x86-32 Details
openfga_cli_py-0.8.1.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.1.0-py2.py3-none-manylinux_2_17_aarch64.whl Python 3, Python 2 none Linux glibc 2.17+ ARM64 Details
openfga_cli_py-0.8.1.0-py2.py3-none-macosx_11_0_arm64.whl Python 3, Python 2 none macOS 11.0+ ARM64 Details
openfga_cli_py-0.8.1.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.6 MB

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

Download URL openfga_cli_py-0.8.1.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
e4e75e4ce7941683d3fc78658eca57f9eede835ffc415a31c3f9fccd6724cf92
BLAKE2b-256 checksum
How to use checksums
4b57c210c8d438e599e52df95157e377f169532d9fff5d9069087d7ad1dcdce9
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.1.0-py2.py3-none-win_amd64.whl

Download URL openfga_cli_py-0.8.1.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
a054fe6a26bdbd52091f17a26bffaabb4c2a7492ae76a51a94f2079b45b665f3
BLAKE2b-256 checksum
How to use checksums
6d1647ec403e8ea978ad443f83edf89c331a7addddb8c201b0a038bfd6b3143b
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.1.0-py2.py3-none-win32.whl

Download URL openfga_cli_py-0.8.1.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
ffa00d0051c258272088032ed285801716e64409fef0ed14afbcfb94136a8e96
BLAKE2b-256 checksum
How to use checksums
f5cbb3335f63e7cce24ef3df80bced7026cfb76bd105811b800c4f4e5747ee00
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.1.0-py2.py3-none-manylinux_2_17_x86_64.whl

Download URL openfga_cli_py-0.8.1.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
2df9192e80dbab1f045e6da3a341754400e2e5fb441a6e428abeea267ebfe026
BLAKE2b-256 checksum
How to use checksums
a328f4d875b376e7ff3833177fd45a5339f45b6c9a796e472f1a06fc917f5ea5
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.1.0-py2.py3-none-manylinux_2_17_aarch64.whl

Download URL openfga_cli_py-0.8.1.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
6474f38d01238829a8dd0ce70ae1573b978ff8428b4c2de6a677907a19f1beff
BLAKE2b-256 checksum
How to use checksums
8f3fcf6b1a3fd125d974d53f8bd585c86a39b917e2aacd928a08e91e48150fd5
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.1.0-py2.py3-none-macosx_11_0_arm64.whl

Download URL openfga_cli_py-0.8.1.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
5cbe282b51f37cc2afc089d250ef99530b710402a5efa867d4cb45b8e41f13e6
BLAKE2b-256 checksum
How to use checksums
e234885cc6b68be60212b8b8292fa0158492cfe023edb723b7e4e6262af8d085
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.1.0-py2.py3-none-macosx_10_9_x86_64.whl

Download URL openfga_cli_py-0.8.1.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
33118cbf4a0e86c4ea55444ef65c1b2d4c8120849cfea6c1d6484f12750f0b1e
BLAKE2b-256 checksum
How to use checksums
19c31b7f8d42dbdc2522ba8f644f24dcbce2972fa6b902c38c8e75adb5b74769
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.1.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