Skip to main content
Pre-release

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

Pyntral

A React-powered admin console for FastAPI and SQLAlchemy.

Define your resources in Python. Get a searchable, customizable administration interface without writing CRUD screens.

Python 3.11+ · FastAPI · SQLAlchemy 2.x · React 19 · TypeScript · MIT

1.0.0b1 · Public beta · Get started · Documentation · API reference


Why Pyntral?

Pyntral attaches a React single-page administration UI to an existing FastAPI application. SQLAlchemy mappings provide field types, relationships, and validation metadata; Python owns authentication, authorization, CRUD operations, and custom actions. React renders responsive forms, tables, filters, and extension components.

  • Model-driven CRUD — register SQLAlchemy models, configure fields and relations, and manage records through one API.
  • Practical filtering — type-aware operators, numeric/date ranges, enum include/exclude, and searchable foreign keys.
  • Built to extend — nested navigation groups, custom pages, record actions, dialogs, field renderers, and a shared React component kit.
  • Authentication and access controls — local credentials, SQLAlchemy-backed users, external identity callbacks, role thresholds, field visibility, and server-side authorization.
  • Typed Python ↔ React operations — authenticated Pydantic bridges with generated TypeScript clients.
  • Event-oriented — metadata-only events with in-process, optional RabbitMQ, or optional Kafka transports.
  • Developer-friendly — uv workflows, Vite HMR, content-addressed frontend build caching in .pyntral/, and structured logging.

Release status: Pyntral is an early beta. The Python API has automated tests; full browser and live-broker integration testing is still required before production adoption. See limitations.

Quick start

For a regular installation, only Python 3.11+ is required. Node.js 22.12+ and npm are needed only to compile custom React extensions or develop Pyntral itself.

# From this repository
uv sync --extra dev
uv run pyntral init-env
uv run pyntral dev examples.shop.app:app

Open http://127.0.0.1:5173/admin/ and sign in with the local account created by init-env. This demo seeds an example SQLite shop; it is not intended for real business data.

For live bridge types and VS Code autocomplete without rebuilding React:

uv run pyntral types examples.shop.app:app --editor
uv run pyntral types examples.shop.app:app --watch

For a production SPA build (ESLint checks on core and registered extensions, strict TypeScript and Vite):

uv run pyntral build --force
# Bundle: .pyntral/dist/

Install the published Python package in a FastAPI application:

uv add pyntral
# Alternative:
pip install pyntral

The default admin SPA is already compiled into the Python wheel. No npm install or pyntral build is necessary for normal SQLAlchemy resources, filters, auth or actions. See the minimal Python-only example.

For applications with custom TSX fields, pages, dialogs or themes, use the same Python dependency, plus Node.js at development/build time:

uv add pyntral
uv run pyntral types your_app.main:app --editor
uv run pyntral build --app your_app.main:app

The resulting .pyntral/dist/ overrides the packaged generic SPA for that application. See custom extensions and publishing.

When working inside this repository, use uv sync --extra rabbitmq instead of adding Pyntral as its own dependency.

Define resources in Python

from fastapi import FastAPI
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from pyntral import Admin, LocalAuth, Resource, Field

from your_app.models import User, Order

engine = create_engine("sqlite:///./app.db")
SessionLocal = sessionmaker(engine, expire_on_commit=False)
app = FastAPI()

admin = Admin(
    app,
    session_factory=SessionLocal,
    auth=LocalAuth.from_env(),
    secret_key="replace-with-a-secret-at-least-32-characters-long",
    secure_cookie=False,  # LOCAL HTTP ONLY; use True behind HTTPS
    title="My workspace",
)

admin.add_resource(Resource(
    User,
    visible_name=User.email,
    search_fields=["email"],
    fields={"password_hash": Field(visible=False)},
))
admin.add_resource(Resource(Order))

For deployable applications, supply secrets from environment variables and set secure_cookie=True under HTTPS. The complete runnable integration is in examples/shop/app.py.

How it fits together

FastAPI app
  └─ Pyntral Admin (/admin)
      ├─ Auth, permissions, typed CRUD and relationship API
      ├─ Resource / page / action / bridge registries
      ├─ Optional metadata-only event transports
      └─ React SPA
          ├─ Type-aware tables, filters and forms
          ├─ UI primitives and theme tokens
          └─ Registered TSX extensions

PyPI wheel → bundled generic SPA → FastAPI
Custom TSX (optional): uv / npm → Vite → .pyntral/dist → FastAPI

Your ORM definitions remain in Python. Resource metadata is delivered at runtime; adding another model does not require rebuilding React. Adding a new TypeScript extension does require the frontend compiler (handled by the CLI).

Documentation

Start here Customize Operate
Installation & first app Resources & relations CLI & build cache
Architecture Filters Logging
Python & HTTP API React UI & theming Events & brokers
Authentication Custom components Deployment
Authorization Typed bridges Troubleshooting

See the complete documentation index, changelog, and contribution guide.

Development

uv sync --extra dev
uv run pytest -q
uv run pyntral doctor
uv run pyntral build

The build command runs ESLint, TypeScript and Vite when developing custom frontend extensions. Release CI separately builds a generic SPA and bundles it in the PyPI wheel; consumers do not need Node.js for the standard admin. The tracked repository intentionally omits credentials, databases, generated assets, and uv.lock (to be generated and committed by the maintainer).

Security & support

Never expose the admin API without authentication and HTTPS. Resource authorization is enforced server-side; hiding navigation items is only a presentation choice. Event payloads contain identifiers and field metadata, not field values. Read security guidance before deploying; report vulnerabilities privately, not in public issues.

License

MIT. Pyntral is an independent project; it is not affiliated with AdminJS.

Docker smoke test

Build and run the production shop example (no Vite dev server):

docker compose -f examples/shop/compose.yaml build --progress=plain
docker compose -f examples/shop/compose.yaml up -d

The image build runs ESLint, strict TypeScript checking, and Vite. See the shop Docker example for setup and verification.

CI and publishing

CI for pull requests runs only when the Run checks label is added. Releases are published as Python wheels and source distributions on PyPI using GitHub OIDC Trusted Publishing. The compiled generic React SPA is packaged inside the Python distribution; no npm package is published. See release setup.

Metadata

Release files for pyntral 1.0.0b1

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

Source distribution (sdist)

Source distribution for pyntral 1.0.0b1
File Size Uploaded Provenance Actions
pyntral-1.0.0b1.tar.gz 264.7 kB With provenance Details for pyntral-1.0.0b1.tar.gz

Built distribution (wheel)

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

Total release size: 475.4 kB

Release files / pyntral-1.0.0b1.tar.gz

Download URL pyntral-1.0.0b1.tar.gz
Size 264.7 kB
Tags Source
SHA-256 checksum
How to use checksums
76d31d4ceed0a67888f8df686a4f675390563375efb98b8d094d7b309a20af44
BLAKE2b-256 checksum
How to use checksums
2ec2c712f13532008aca485f319345ee5482086b44937dc07694dc03f669674f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 21, 2026.

Transparency log

Release files / pyntral-1.0.0b1-py3-none-any.whl

Download URL pyntral-1.0.0b1-py3-none-any.whl
Size 210.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a16c167999c61d9c6b2ab112198cb95c67ce7cc7d976139d5dcaeb0cb3c12ca1
BLAKE2b-256 checksum
How to use checksums
fe38223568f07cdc36d432fc50ace7e7c19328c4ef1a1956603e93fd754072ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 21, 2026.

Transparency log

Security for pyntral 1.0.0b1

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 pyntral-1.0.0b1.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 21, 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