ReferenceΒΆ

Exact descriptions of what the library accepts and does: the Python API, the schema language, the tuple-string format, the exceptions, the configuration knobs, the database tables and the supported environments. These pages state facts and do not teach; for a guided start read the first tutorial, and for the reasons behind a behaviour see the explanation pages.

Page

What it covers

Python API

Every public class, function and constant, mostly generated from the docstrings.

Schema language

The accepted subset of the OpenFGA modelling language.

Refused schema shapes

Every shape the parser refuses, why, and what to write instead.

Tuple strings and identifiers

The "type:name#relation" format and the identifier character set.

Exceptions

The exception hierarchy (rooted at ZanzibarError, plus InvariantViolation) and the one warning.

Configuration

Environment variables and Store keyword arguments.

Database tables

The zanzibar_* tables the library creates and owns.

Supported environments

Python versions, databases, isolation levels.

Changelog

What changed in each release.