Skip to main content

X-Admin

Simplest fastest minimal ASGI CRUD Admin panel for Tortoise ORM models

It's generating fully native async auto zero config one line app

Requirements

  • Python >= 3.11

INSTALL

pip install x-admin

Run your app

  • Describe your db models with Tortoise ORM in models.py module
from tortoise import fields
from tortoise_api import Model

class User(Model):
    id: int = fields.IntField(pk=True)
    name: str = fields.CharField(255, unique=True, null=False)
    posts: fields.ReverseRelation["Post"]

class Post(Model):
    id: int = fields.IntField(pk=True)
    text: str = fields.CharField(4095)
    user: User = fields.ForeignKeyField('models.User', related_name='posts')
    _name = 'text' # `_name` sets the attr for displaying related Post instace inside User (default='name')
  • Write run script main.py: pass your models module in Api app:
from x_admin import Admin
import models

app = Admin().start(models)
  • Set DB_URL env variable in .env file
  • Run it:
uvicorn main:app

Or you can just fork Completed minimal runnable example from sample apps.

And voila:

You have menu with all your models at root app route: http://127.0.0.1:8000


Made with ❤ on top of the Starlette, TortoiseORM, X-API.

Metadata

Release files for femto-admin 0.7.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 femto-admin 0.7.4
File Size Uploaded
femto_admin-0.7.4.tar.gz 4.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for femto-admin 0.7.4
File Interpreter ABI Platform
femto_admin-0.7.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 MB

Release files / femto_admin-0.7.4.tar.gz

Download URL femto_admin-0.7.4.tar.gz
Size 4.4 MB
Tags Source
SHA-256 checksum
How to use checksums
36a164f0deeef9f2bae6a28212c6ffbcefeb06bc1779ab2bebe22106b2bfeaaf
BLAKE2b-256 checksum
How to use checksums
6a9ffa50d721eeef85f2e6e39898547068a2b02840bcfd542d5ec43ae8121f7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / femto_admin-0.7.4-py3-none-any.whl

Download URL femto_admin-0.7.4-py3-none-any.whl
Size 4.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
31c809092b52b8dfb6b0b452b1815fd75a848b45866432371c404cd2ee43942a
BLAKE2b-256 checksum
How to use checksums
12660266af9b12eadbfdea18e7f59b7f15c1a3ec26da7fce10781c5cfabbedbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.7.4 This release

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.3.3

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

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