Skip to content

Python SDK

pore is the official Python client. Supports Python 3.11+.

Terminal window
pip install pore
from pore import Pore
pore = Pore(api_key="PORE_API_KEY")

For async:

from pore import AsyncPore
pore = AsyncPore(api_key="PORE_API_KEY")
pore.grants.create(
subject="user:alice",
relation="owner",
object="document:42",
)
result = pore.check(
subject="user:alice",
relation="editor",
object="document:42",
)
assert result.authorized

All client errors are subclasses of pore.PoreError and carry the RFC 7807 problem identifier on err.type.