Installation
Install starlette-admin using your preferred package manager.
starlette-admin requires Python 3.11 or later.
The core package is backend agnostic. To build an admin interface for your application, install the appropriate integration for your data layer (such as SQLAlchemy, Beanie, MongoEngine, or Tortoise ORM) alongside the base package.
Included dependencies
The base installation includes everything required to run the admin interface. No optional dependencies are installed by default.
| Dependency | Purpose |
|---|---|
| Starlette | ASGI framework that hosts the admin application |
| Jinja2 | Template engine for list, detail, and form pages |
| python-multipart | Parses form submissions and file uploads |
| itsdangerous | Signs cookies for CSRF tokens and flash messages |
Applications built with FastAPI require no additional integration because FastAPI is built on Starlette. Mount the admin on your existing FastAPI application.
Optional dependencies
starlette-admin provides the following optional dependencies:
pdf: PDF export (reportlab).i18n: Internationalization (Babel).tinymce: Rich text editor support. Installs nh3, which sanitizes HTML submitted byTinyMCEEditorField.s3: S3-compatible object storage. Installs aiobotocore for asynchronous uploads to AWS S3 and compatible object storage services such as MinIO.
Install one or more optional dependencies together with starlette-admin:
Install from source
To use the latest unreleased changes, install directly from the GitHub repository.
What's next
- Quickstart: Build your first admin interface with real data.
- Concepts: Learn the core architecture and design principles behind starlette-admin.