The Oso SQLAlchemy integration enables data filtering to be used with SQLAlchemy models and provides built-in SQLAlchemy models for Role-Based Access Control.


The Oso SQLAlchemy integration is available on PyPI and can be installed using pip:

$ pip install sqlalchemy-oso


See the data filtering guide and roles guide for usage information.

API Reference

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

Roles Reference

The SQLAlchemy Roles Reference has more details on the library’s built-in roles features.