Installation

Dependencies

DRF Auth Kit automatically installs these core dependencies:

Core Dependencies:

  • Django (>=5.0) - Web framework

  • Django REST Framework (>=3.0) - API framework

  • Django Allauth (>=65.5.0) - User management and email verification

  • DRF SimpleJWT (>=5.0) - JWT token authentication

  • DRF Spectacular - OpenAPI schema generation

  • structlog - Structured logging

Optional Dependencies:

  • pyotp (>=2.9.0) - For MFA/TOTP support

  • django-allauth[socialaccount] (>=65.5.0) - For social authentication

Installation Options

Basic Installation

Install DRF Auth Kit with core features:

pip install drf-auth-kit

With MFA Support

Install with Multi-Factor Authentication support:

pip install drf-auth-kit[mfa]

With Social Authentication

Install with social authentication support:

pip install drf-auth-kit[social]

All Features

Install with all features (MFA + Social Authentication):

pip install drf-auth-kit[all]

Install from Git

Install the latest development version from GitHub:

# Latest stable version
pip install git+https://github.com/forthecraft/drf-auth-kit.git

# With all features
pip install git+https://github.com/forthecraft/drf-auth-kit.git[all]

# Specific branch or tag
pip install git+https://github.com/forthecraft/drf-auth-kit.git@main[all]

Verify Installation

After installation, verify that DRF Auth Kit is properly installed:

# In Python shell or Django shell
import auth_kit
print(auth_kit.__version__)

# Check available modules
from auth_kit import authentication, serializers, views

Next Steps

After installation, proceed to Getting Started for configuration and setup instructions.