Skip to content

Python

The Python adapter binds the core to Python with PyO3, packaged with maturin. PyO3 turns the doc comments written in Rust into Python docstrings.

The first framework integration planned is FastAPI, in Phase 2 of the roadmap.

The Python API reference is generated from the authfil package and its .pyi stubs, and appears under API reference once the adapter exposes an API.

The adapter validates every value that crosses the FFI boundary and carries out the effects the core returns. It never decides a cookie flag, a timeout or whether a token is valid. See how adapters work.

The adapter’s source is in adapters/python/. Read how to contribute first.