Observed since 20 Oct, 19:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Write professional web interface with Python
Full Readme at Github Documentation 中文文档
Write professional web interface with Python.
If you need a simple web interface and you don't want to mess around with HTML, CSS, React, Angular, Webpack or other fancy Javascript frontend stuff, this project is for you. Now you can write web pages, forms, charts and dashboards with only Python.
This library is good for: data projects, tools and scripts, small IT systems and management systems, Hacker or Hackathon projects. Basically if you need an interface for your system and you don't care much about customizing the style or performance for large traffic, consider this package.
This project is based on Flask/FastApi and Ant Design Pro.

install the package with pip:
pip install adminui
The basic "form page" example:
# example_form.py
from adminui import *
app = AdminApp()
def on_submit(form_data):
print(form_data)
@app.page('/', 'form')
def form_page():
return [
Form(on_submit = on_submit, content = [
TextField('Title', required_message="The title is required!"),
TextArea('Description'),
FormActions(content = [
SubmitButton('Submit')
])
])
]
if __name__ == '__main__':
app.run()
Run the Python file:
python example_form.py
Then visit http://127.0.0.1:5000/ to see the result.
Set use_fastapi=True when creating the app; and prepare() instead of run() to expose the app to uvicorn. See python/example_fastapi.py for details
# instead of app = AdminApp(), use
app = AdminApp(use_fastapi=True)
# ... other stuff you do with adminui app
# in the end of the main file, use
fastapi_app = app.prepare()
# in command line, run:
# uvicorn example_fastapi:fastapi_app
Hosted on Read the Docs
This is a personal project. So please create issues to tell me what you need from this project.
You may also give stars to let me know if this project is worthy to invest more time on.
To work with the source code:
This project has a Typescript front-end and a Python backend.
The front-end is in the /src folder.
The back-end is in the /python folder.
To start developing:
/python folder and run pip install -r requirements.txt to install requirements/python foldernpm install & npm start at the root folder to start the frontend;Under this development mode, requests from front-end will forward to the backend.
When you are done with developing:
npm run build will build the project.The front-end is based on the amazing Ant Design Pro library, you may consult their documentation during the development.
The Python backend is located in /python/adminui. It is Flask based. There are some examples in the /python folder.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.5.2 | 25 Jan 2024 | 18 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Public sponsor counts have not been collected. These signals belong to the repository owner.
github · 1 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-21 | 30 | 2026-10-21T13:57:36.0423709Z |
Observed since 20 Oct, 19:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c2fa4e600185e632e5437fb32bb7d58cbb137e13e9d813763cd3c0712507bcc5