Python Authorization Library

The Python version of Oso is available on PyPI and can be installed using pip:

$ pip install oso


  • Python version 3.6 or greater
  • Supported platforms:
    • Linux
    • macOS
    • Windows

The standard Python package is known to work on glibc-based distributions, but not on musl-based ones like Alpine Linux. Wheels built against musl that you can use on Alpine Linux can be downloaded from the releases page on GitHub.

Python API

The Python API reference is automatically generated from the Oso Python library source files.

Framework & ORM Integrations

Oso also provides libraries to integrate with popular Python frameworks and ORMS.

Using SQLAlchemy?

We just released early access to the next version of our SQLAlchemy library, which will include improved support for common authorization models, like role based access control.

Check it out here!