Install & Compatibility
Where this runs
tested against v4.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 53.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.6s · import 0.000s · 53MB
52MB installed
● package 52MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
FastAPIAuth
✓ from propelauth_fastapi import FastAPIAuth
✗ from propelauth_fastapi import PropelAuth
FastAPIAuthAsync
✓ from propelauth_fastapi import FastAPIAuthAsync
Depends
✓ from propelauth_fastapi import Depends
Initialize PropelAuth with your tenant credentials and protect routes using require_user dependency.
from fastapi import FastAPI, Depends
from propelauth_fastapi import PropelAuth, get_user
app = FastAPI()
auth = PropelAuth(
auth_url="https://your-tenant.auth.us.authok.io",
api_key="your-api-key"
)
@app.get("/protected")
async def protected_route(user = Depends(auth.require_user)):
return {"message": f"Hello {user.email}"}
@app.get("/current-user")
async def current_user(user = Depends(get_user)):
return user
Upgrade
Version history
4.4.0latest on PyPI · released Apr 23, 2026
Audit
Dependencies
fastapirequiredRequired for building FastAPI applications
propelauth-pyrequiredCore PropelAuth Python SDK