Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Flask-Admin

The project was recently moved into its own organization. Please update your references to https://github.com/pallets-eco/flask-admin.git.

image image

Pallets Community Ecosystem

Introduction

Flask-Admin is a batteries-included, simple-to-use Flask extension that lets you add admin interfaces to Flask applications. It is inspired by the django-admin package, but implemented in such a way that the developer has total control over the look, feel, functionality and user experience of the resulting application.

Out-of-the-box, Flask-Admin plays nicely with various ORM's, including

It also boasts a simple file management interface and a Redis client console.

The biggest feature of Flask-Admin is its flexibility. It aims to provide a set of simple tools that can be used to build admin interfaces of any complexity. To start off, you can create a very simple application in no time, with auto-generated CRUD-views for each of your models. Then you can further customize those views and forms as the need arises.

Flask-Admin is an active project, well-tested and production-ready.

Examples

Several usage examples are included in the /examples folder. Please add your own, or improve on the existing examples, and submit a pull-request.

To run the examples in your local environment:

  1. Clone the repository:

    git clone https://github.com/pallets-eco/flask-admin.git
    cd flask-admin
    
  2. Create and activate a virtual environment:

    # Windows:
    python -m venv .venv
    .venv\Scripts\activate
    
    # Linux:
    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Install requirements:

    pip install -r examples/sqla/requirements.txt
    
  4. Run the application:

    python examples/sqla/run_server.py
    
  5. Check the Flask app running on http://localhost:5000.

Documentation

Flask-Admin is extensively documented, you can find all of the documentation at https://flask-admin.readthedocs.io/en/latest/.

The docs are auto-generated from the .rst files in the /doc folder. If you come across any errors or if you think of anything else that should be included, feel free to make the changes and submit a pull-request.

To build the docs in your local environment, from the project directory:

tox -e docs-html

Installation

To install Flask-Admin, simply:

pip install flask-admin

Or alternatively, you can download the repository and install manually by doing:

git clone https://github.com/pallets-eco/flask-admin.git
cd flask-admin
pip install .

Tests

Tests are run with pytest. If you are not familiar with this package, you can find out more on their website.

To run the tests, from the project directory, simply run:

pip install --use-pep517 -r requirements/dev.txt
pytest

You should see output similar to:

.............................................
----------------------------------------------------------------------
Ran 102 tests in 13.132s

OK

NOTE! For all the tests to pass successfully, you'll need Postgres (with the postgis and hstore extension) & MongoDB to be running locally. You'll also need libgeos available.

For Postgres:

psql postgres
> CREATE DATABASE flask_admin_test;
> # Connect to database "flask_admin_test":
> \c flask_admin_test;
> CREATE EXTENSION postgis;
> CREATE EXTENSION hstore;

If you're using Homebrew on MacOS, you might need this:

# Install postgis and geos
brew install postgis
brew install geos

# Set up a PostgreSQL user
createuser -s postgresql
brew services restart postgresql

You can also run the tests on multiple environments using tox.

3rd Party Stuff

Flask-Admin is built with the help of Bootstrap, Select2 and Bootswatch.

If you want to localize your application, install the Flask-Babel package.

You can help improve Flask-Admin's translations through Crowdin: https://crowdin.com/project/flask-admin

Metadata

Release files for Flask-Admin 2.0.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Admin 2.0.0a0
File Size Uploaded Provenance Actions
flask_admin-2.0.0a0.tar.gz 5.5 MB Without provenance Details for flask_admin-2.0.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flask-Admin 2.0.0a0
File Interpreter ABI Platform Actions
flask_admin-2.0.0a0-py3-none-any.whl Python 3 none any Details for flask_admin-2.0.0a0-py3-none-any.whl

Total release size: 11.9 MB

Release files / flask_admin-2.0.0a0.tar.gz

Download URL flask_admin-2.0.0a0.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
61421323f19d8dce34e57d5c2b3947af0ab8319d09006d09aa8385998c8da463
BLAKE2b-256 checksum
How to use checksums
a08f8cf4449452f3fd1caccdf330bbf88112d33e7461b564011a3baf6a84634d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / flask_admin-2.0.0a0-py3-none-any.whl

Download URL flask_admin-2.0.0a0-py3-none-any.whl
Size 6.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ef75e519f4b9ab68e45bac8592418037ddf94f7d1fa00399fa40da64d84ce40a
BLAKE2b-256 checksum
How to use checksums
366735fd95861d7c2c3803f461879e23178332c2d404b956e85d7049584d0f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Security for Flask-Admin 2.0.0a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page