Python SaaS application boilerplate with user management, settings, and multi-tenancy scaffolding. Your starting point for any SaaS. Runs on Python 3.10+ stdlib only — no pip installs needed.
User registration and authentication with secure password hashing
Role-based access control (RBAC) with admin/member/viewer roles
Multi-tenant scaffolding with tenant isolation contexts
Application settings manager with JSON persistence
Session management with expiration and token rotation
Audit logging for all user and tenant operations
Configuration via environment variables or config file
Built-in HTTP server with routing and middleware pipeline
# Start the SaaS boilerplate server
python src/main.py
# Run with custom port
python src/main.py --port 9000
# Initialize with sample data
python src/main.py --init-demo