Installation
Requirements
- Python 3.13 or higher
- An ASGI framework (FastAPI, Starlette, Litestar, Django ASGI) or standalone uvicorn
Install from PyPI
Core only
pip install nexfetch-auth
The core install includes the in-memory adapter (perfect for testing). For persistence, install one of the database extras.
With a database adapter
# SQLite via SQLAlchemy
pip install 'nexfetch-auth[sqlalchemy]'
# PostgreSQL via SQLAlchemy + asyncpg
pip install 'nexfetch-auth[postgresql]'
# MongoDB via motor
pip install 'nexfetch-auth[mongodb]'
With a framework integration
pip install 'nexfetch-auth[fastapi]'
pip install 'nexfetch-auth[starlette]'
Combined extras
pip install 'nexfetch-auth[postgresql,fastapi]'
Everything
pip install 'nexfetch-auth[all]'
Available extras
| Extra | Installs | Use for |
|---|---|---|
sqlalchemy | sqlalchemy[asyncio], aiosqlite | SQLite storage (dev / small apps) |
postgresql | nexfetch-auth[sqlalchemy], asyncpg | PostgreSQL storage (production) |
mongodb | motor | MongoDB storage |
starlette | starlette | Starlette integration helper |
fastapi | fastapi | FastAPI integration helper |
all | All of the above | Convenience for development |