Metadata-Version: 2.5
Name: flask-admin-tabler
Version: 1.7.3
Summary: Tabler UI theme for Flask-Admin
Keywords: flask,flask-admin,tabler,admin-interface,theme,template
Requires-Python: >=3.10,<4.0
Description-Content-Type: text/markdown
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
Requires-Dist: flask-admin>=2.2.1
Requires-Dist: pre-commit ; extra == "dev"
Requires-Dist: black ; extra == "dev"
Requires-Dist: isort ; extra == "dev"
Requires-Dist: pytest ; extra == "dev"
Requires-Dist: pytest-cov ; extra == "dev"
Project-URL: Github, https://github.com/mariofix/flask-admin-tablerui
Provides-Extra: dev
Import-Name: flask_admin_tabler

# flask-admin-tabler

A [Tabler UI](https://tabler.io/) theme for [Flask-Admin](https://github.com/pallets-eco/flask-admin).

## Installation

```shell
pip install flask-admin-tabler
```

## Usage

Call `theme.init_app(app)` **before** creating the `Admin` instance so that the
Tabler templates are registered with higher priority than Flask-Admin's default
Bootstrap ones.

```python
from flask import Flask
from flask_admin import Admin
from flask_admin_tabler import TablerTheme

app = Flask(__name__)
app.config["SECRET_KEY"] = "change-me"

theme = TablerTheme()
theme.init_app(app)          # must come before Admin(app, ...)

admin = Admin(app, name="My App", theme=theme)
```

That's it - navigating to `/admin/` will now render the Tabler UI instead of
the default Bootswatch theme.

A fully runnable example (including a SQLAlchemy model and sample data) is
available in [`examples/quickstart/main.py`](examples/quickstart/main.py):

```shell
pip install flask-admin-tabler flask-sqlalchemy
python examples/quickstart/main.py
# open http://127.0.0.1:5000/admin/
```

## Versioning

Releases/tags are matched to each tabler version.

