Skip to main content

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

ExtraInstallsUse for
sqlalchemysqlalchemy[asyncio], aiosqliteSQLite storage (dev / small apps)
postgresqlnexfetch-auth[sqlalchemy], asyncpgPostgreSQL storage (production)
mongodbmotorMongoDB storage
starlettestarletteStarlette integration helper
fastapifastapiFastAPI integration helper
allAll of the aboveConvenience for development