Skip to main content

patera-admin

Admin dashboard for Patera applications: request statistics, logs, databases, files, e-mail and task managers. Part of Patera, a modular async-first Python web framework.

Installation

pip install patera-admin
# or, with uv
uv add "patera[admin]"

Requires Python 3.13 or newer and patera>=0.121.

Usage

patera-admin provides a web dashboard for request statistics, logs, database models, files in the static folder, task managers and e-mail clients. It requires an authentication middleware: users need the roles from patera.admin.Permissions (ADMIN_CAN_ENTER plus ADMIN_CAN_VIEW/CREATE/EDIT/DELETE).

from patera.admin import AdminConfig, AdminInterface


class Admin(AdminInterface):
    managed_models = [Note]


class Config(BaseConfig):
    ...
    ADMIN: AdminConfig = AdminConfig(
        URL_FOR_FOR_LOGIN="AuthApi.login", URL_FOR_FOR_LOGOUT="AuthApi.logout",
    )

The dashboard opens with the application's request statistics for the last 15 minutes, hour, 6 hours or 24 hours: uptime, requests per second by status class, 2xx/4xx/5xx counts, average and 95th-percentile response times, the busiest endpoints and the most frequent error statuses. Admin counts requests in memory, so each worker process shows its own requests since it started. Set REQUEST_STATISTICS=False in AdminConfig to turn this off.

Custom form fields

Use Meta.custom_form_fields to replace generated model inputs with fields from patera.admin.custom_elements:

  • TagsInput: tag entry, submitted as a JSON array encoded as text.
  • PasswordInput: masked password entry, never prefilled with a stored value.
  • SelectInput: selection from value/label options declared in model metadata.
  • SummernoteEditor: rich text editing with configurable toolbar and image uploads.
  • FileInput: file uploads with file-type and browser-side size constraints.
  • DateInput: date or date-and-time selection, with optional UTC conversion.
  • LatexInput: single-line or multiline text with live LaTeX math preview.

See the Admin dashboard guide for configuration examples and submitted-value handling.

License

MIT. See LICENSE.

Metadata

Release files for patera-admin 0.13.3

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

Source distribution (sdist)

Source distribution for patera-admin 0.13.3
File Size Uploaded Provenance Actions
patera_admin-0.13.3.tar.gz 804.8 kB Without provenance Details for patera_admin-0.13.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for patera-admin 0.13.3
File Interpreter ABI Platform Actions
patera_admin-0.13.3-py3-none-any.whl Python 3 none any Details for patera_admin-0.13.3-py3-none-any.whl

Total release size: 1.6 MB

Release files / patera_admin-0.13.3.tar.gz

Download URL patera_admin-0.13.3.tar.gz
Size 804.8 kB
Tags Source
SHA-256 checksum
How to use checksums
af06d89850eb857a25d72779b6c9b11d4c9193e5318812d5c9bfeeea9db42679
BLAKE2b-256 checksum
How to use checksums
4af63d46aa7e939f9032b638202bdfd6388930911e65bfa31961fc5354b313f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / patera_admin-0.13.3-py3-none-any.whl

Download URL patera_admin-0.13.3-py3-none-any.whl
Size 831.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3653ee5f1e7ed6860fee647f3947bd4ae7b1c6ba4bb4ac8bed1ded29265a9d7f
BLAKE2b-256 checksum
How to use checksums
878f95121b3f3abe181e59f8eccbacaa74edaa70eb48fc28f3fc3f3d1bd7c8ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for patera-admin 0.13.3

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.

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