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.
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
- SQLAlchemy
- pymongo
- and Peewee.
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:
-
Clone the repository:
git clone https://github.com/pallets-eco/flask-admin.git cd flask-admin
-
Create and activate a virtual environment:
# Windows: python -m venv .venv .venv\Scripts\activate # Linux: python3 -m venv .venv source .venv/bin/activate
-
Install requirements:
pip install -r examples/sqla/requirements.txt
-
Run the application:
python examples/sqla/run_server.py -
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.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask_admin-2.0.0a2.tar.gz | 5.5 MB | Without provenance | Details for flask_admin-2.0.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_admin-2.0.0a2-py3-none-any.whl | Python 3 | none | any | Details for flask_admin-2.0.0a2-py3-none-any.whl |
Total release size: 11.9 MB
Release files / flask_admin-2.0.0a2.tar.gz
| Download URL | flask_admin-2.0.0a2.tar.gz |
|---|---|
| Size | 5.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b83513da41e0bf336e55d01dd4ed060f5137d40e1ed95b6e440542382773dd1
|
|
BLAKE2b-256 checksum How to use checksums |
5b4b31aeed23979c61eb6f31698b5b0fea70d119cfc65cb2135f998f3ccb174f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / flask_admin-2.0.0a2-py3-none-any.whl
| Download URL | flask_admin-2.0.0a2-py3-none-any.whl |
|---|---|
| Size | 6.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c1534aec8bbf5c3415245a8c071cc8576db86b12b188c72d3ea67e65fa5d569
|
|
BLAKE2b-256 checksum How to use checksums |
a3c0eefa4a821b0de9ba2da96980b796b51739ec348e623abc97b46de39311b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for Flask-Admin 2.0.0a2
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.