authzed
Client library for SpiceDB.
What it is and what it does
Authzed is a Python client for SpiceDB, a permissions database and service. It provides gRPC-based access to Authzed's API for storing, computing, and validating application permissions. Developers define a schema modeling their permission requirements, then use this client to apply that schema, insert relationship data, and query permissions efficiently.
The library supports two API versions: v1 for core permission checks and schema management, and materialize/v0 for building materialized permission views in external systems. It handles both secure TLS connections to remote Authzed instances and insecure connections for local development environments, with straightforward initialization via bearer token authentication.
Use it for:
- Check whether a user has permission to perform an action on a resource in a web application
- Build materialized permission views for high-performance lookups in your own database
- Manage and validate complex permission schemas across microservices
- Integrate fine-grained access control into SaaS applications without building custom authorization logic
- Query relationship data to determine group membership or role hierarchies
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for SpiceDB that enables applications to query and manage permissions through Authzed's gRPC API, supporting both core permission checks and materialized view operations.
Yes. The package is actively maintained, has low install friction, carries a permissive license, and integrates cleanly with standard gRPC tooling. It's the official client for a specialized but well-defined use case (SpiceDB permissions queries). Install it if you're using Authzed/SpiceDB for authorization; skip it if you don't need that specific service.
Install
authzed on PyPI
pip
pip install authzeduv
uv add authzedpoetry
poetry add authzedInstalling authzed
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with a release within the last month. Depends on standard gRPC and protobuf libraries.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary applications with minimal restrictions.
Quickstart
pip install authzed
from authzed.api.v1 import Client, CheckPermissionRequest, ObjectReference, SubjectReference
client = Client(
"grpc.authzed.com:443",
bearer_token_credentials("t_your_token_here_1234567deadbeef"),
)
resp = client.CheckPermission(CheckPermissionRequest(
resource=ObjectReference(object_type="blog/post", object_id="1"),
permission="reader",
subject=SubjectReference(object=ObjectReference(object_type="blog/user", object_id="emilia")),
))
Requires a valid Authzed API token from the Authzed dashboard to authenticate and connect.
Verify before relying
- Performance characteristics and latency of permission checks at scale
- Backward compatibility guarantees across minor versions
- How bearer token credentials are provided in the usage example
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — grpcio, protobuf, grpc-interceptor, googleapis-common-protos |
| Maintenance | actively maintained — 31 days since the last release |
| First released | |
| Downloads | 940,344/month — #4,683 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: authzed-1.25.0-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
cerbosPython client library for querying and managing…
permissive · top 15,000 on PyPI
google-auth-httplib2Provides an httplib2 transport adapter for…
permissive · top 1,000 on PyPI
djangorestframework-api-keyProvides API key authentication and permission…
permissive · top 5,000 on PyPI
connectrpcConnect is a runtime library for building and…
permissive · top 15,000 on PyPI
grpclibgrpclib is a pure-Python asyncio-based…
permissive · top 1,000 on PyPI
dry-rest-permissionsDefines rules-based permissions for Django REST…
permissive · top 15,000 on PyPI
zope.securityProvides a generic security framework for…
unclear · top 15,000 on PyPI
nebiusClient library for Nebius AI Cloud services…
unclear · top 5,000 on PyPI
authAn HTTP authorization service that answers…
permissive · top 15,000 on PyPI
invenio-records-permissionsDefines and enforces permission policies for…
permissive · top 15,000 on PyPI