Skip to main content
Pre-release

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

adminsite

An admin panel for the SQLAlchemy 2.0 ORM that works with FastAPI, Starlette and Litestar.

PyPI Python CI License

Live demo · Documentation · Changelog · For AI assistants

The orders list of the demo shop

adminsite is in alpha. It is tested and it works, but names may still change before 0.1.0, so pin the version you install.

Installation

pip install adminsite==0.1.0a16

Add the driver your database needs, such as asyncpg or aiosqlite.

Usage

from adminsite import Admin, Link, ModelView


class OrderView(ModelView[Order]):
    fields = [Order.id, Order.customer, Order.status, Order.total]
    searchable_fields = [
        Link(Order.customer, Customer.name),
        Link(Order.customer, Customer.email),
    ]
    list_filters = [Order.status, Order.created_at]


app.mount("/admin", Admin(engine, views=[OrderView]))

The settings name your models' own attributes, so a type checker catches a misspelt one. The labels, filters, form controls and validation come from your models. Getting started builds a complete app, signing in included, in a few minutes.

Features

  • Pages from your models: a searchable, sortable list with filters and saved views, a page for each record, and forms with validation.
  • Related records: pick a related record from a searchable list, and edit child rows, such as an order's lines, inside the parent's form.
  • Built-in filters for choices, yes or no, number and date ranges, related records and text.
  • Custom filters for anything the built-in ones do not cover, such as "overdue" or "spent over €1,000".
  • Actions that run your own code on the selected rows, on every row the filters match, on one record or on the whole table, with a dialog for any values they need.
  • Permissions for each view, action, field and row.
  • Hooks that run your code before and after a save or delete, in the same transaction, and can refuse it with a message.
  • An audit log: who changed what and when, including actions, exports and sign ins, with a history on every record and an activity page you can filter.
  • Import from CSV or Excel with a preview of every row, and export to CSV.
  • File and image uploads, stored on disk or wherever you choose.
  • A dashboard of stats, charts and the latest records.
  • A JSON API that shares the same views and permissions.
  • Signing in with a fixed list of users or your own user table.
  • Pages and plugins of your own, such as reports or settings, in the same layout.
  • Translations, with Persian built in and right to left layouts, and every time shown in the reader's time zone.
  • Light and dark themes, a layout for phones, and pages that work with a keyboard and a screen reader.
  • Async or sync, on SQLite, Postgres and MySQL, with no N+1 queries.
  • No Node and no CDN: everything ships inside the package.

How it works

adminsite is one ASGI app, mounted inside yours. Every page and the JSON API go through the ModelView you write for each model, so its rules hold everywhere.

A request goes from the browser or a script to adminsite's pages or JSON API, through each model's ModelView and a SQLAlchemy repository, to your database

Documentation

  • Getting started sets up a working admin in a few minutes.
  • Views covers everything a view can say about a model.
  • Permissions is worth reading before you put the admin in front of anyone.
  • The reference lists every class and option.

Contributing

Issues and pull requests are welcome. CONTRIBUTING.md says how to run the tests and rebuild the stylesheet.

License

MIT

Metadata

Release files for adminsite 0.1.0a16

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

Source distribution (sdist)

Source distribution for adminsite 0.1.0a16
File Size Uploaded
adminsite-0.1.0a16.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for adminsite 0.1.0a16
File Interpreter ABI Platform
adminsite-0.1.0a16-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / adminsite-0.1.0a16.tar.gz

Download URL adminsite-0.1.0a16.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
cc5f0d3c9315145cefce89380de17495aff9dbffff3358b1fcb2e56fc120d16e
BLAKE2b-256 checksum
How to use checksums
4ef0363ce4c146f837a1e7fd8c01e1d3e4016c2b3139bb06e8308d6c344a2491
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 Oct 8, 2026.

Transparency log

Release files / adminsite-0.1.0a16-py3-none-any.whl

Download URL adminsite-0.1.0a16-py3-none-any.whl
Size 468.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65c665177b442692ed5505030d239c0323e55c6be1c30b498512b2481cac1471
BLAKE2b-256 checksum
How to use checksums
5820a5d265b07ce4b2f4870dd0af22502a5f47e23b62f1a52911ef2cb1bd3a8f
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 Oct 8, 2026.

Transparency log
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