Python SDK
pore is the official Python client. Supports Python 3.11+.
Install
Section titled “Install”pip install poreConstruct a client
Section titled “Construct a client”from pore import Pore
pore = Pore(api_key="PORE_API_KEY")For async:
from pore import AsyncPore
pore = AsyncPore(api_key="PORE_API_KEY")Example
Section titled “Example”pore.grants.create( subject="user:alice", relation="owner", object="document:42",)
result = pore.check( subject="user:alice", relation="editor", object="document:42",)
assert result.authorizedError handling
Section titled “Error handling”All client errors are subclasses of pore.PoreError and carry the RFC 7807
problem identifier on err.type.