Skip to main content

hxadmin

Admin interface for FastAPI and async SQLAlchemy 2.0+, built with Jinja2, htmx, Alpine.js and Tailwind CSS.

List, detail, create, edit and delete from class attributes, with search, sort, pagination, per-column filters, row and bulk actions, custom pages, CSV / Excel export and light / dark themes. Async only and fully typed.

Install

pip install hxadmin            # CSV export included
pip install 'hxadmin[xlsx]'    # adds Excel export

Quickstart

from fastapi import FastAPI
from hxadmin import HxAdmin, ModelView

app = FastAPI()
admin = HxAdmin(app, session=get_session, auth=current_admin_user, title="My admin")


@admin.register
class UserView(ModelView[User]):
    model = User
    list_columns = ("email", "name", "active")
    searchable = ("email", "name")
    list_filters = ("active",)
    export_formats = ("csv",)

session yields an AsyncSession; auth returns the current user or raises HTTPException(status.HTTP_401_UNAUTHORIZED). Open /admin/.

Documentation: gledi-ai.github.io/hxadmin (build locally with nox -s docs). Run make demo and open http://127.0.0.1:8001/admin/. Sign in as ada@example.com for full access or staff@example.com for read-only access. Both use the password demo. For projects built on plain Core Tables instead of ORM models, see make demo/tables (http://127.0.0.1:8002/admin/, admin@example.com / demo).

To try audit history, edit a task in the ORM demo or a stock move in the Core table demo, then open History on its detail page. See the audit history guide to enable it in your app.

Development

uv sync            # installs the dev group (lint + test + demo + ipython)
prek install       # git hooks: ruff, pyrefly, zizmor, uv-lock, Conventional Commits
nox                # lint + tests on every supported Python
nox -s tests-3.14  # single Python version
nox -s tests_lowest  # tests against the lowest supported dependency versions
nox -s tests_latest  # tests against the newest allowed releases (weekly in CI)
nox -s wheel       # tests against the built wheel
nox -s audit       # dependency vulnerability audit
nox -s docs        # build the docs strictly into site/
nox -s css         # rebuild hxadmin.css after template changes (needs Node.js)

Versions come from git tags (v0.1.0) via uv-dynamic-versioning.

Metadata

Release files for hxadmin 0.3.4

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

Source distribution (sdist)

Source distribution for hxadmin 0.3.4
File Size Uploaded Provenance Actions
hxadmin-0.3.4.tar.gz 344.1 kB With provenance Details for hxadmin-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hxadmin 0.3.4
File Interpreter ABI Platform Actions
hxadmin-0.3.4-py3-none-any.whl Python 3 none any Details for hxadmin-0.3.4-py3-none-any.whl

Total release size: 617.5 kB

Release files / hxadmin-0.3.4.tar.gz

Download URL hxadmin-0.3.4.tar.gz
Size 344.1 kB
Tags Source
SHA-256 checksum
How to use checksums
359746463ee95bef81d7cd792fbd76ea0b349accfb2110ad2b6f8da3b77f3fec
BLAKE2b-256 checksum
How to use checksums
0a3ae1e4c53d600c7204980b74736a936858ef6319a0077e1a98e32701b5fa52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / hxadmin-0.3.4-py3-none-any.whl

Download URL hxadmin-0.3.4-py3-none-any.whl
Size 273.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a18d82be7d2dc36a27c38f047fb55b39b2f30dec561a3690bdd5ba42d081f1c
BLAKE2b-256 checksum
How to use checksums
9690efeeb76b9e33c1d32f66e85d3aaea236c35d46e0aac78190042029e24cd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for hxadmin 0.3.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hxadmin-0.3.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.

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