Fast Admin Dashboard based on fastapi and tortoise-orm.
Project description
FastAPI ADMIN
Introduction
FastAPI-Admin is a admin dashboard based on fastapi and tortoise-orm.
FastAPI-Admin provide crud feature out-of-the-box with just a few config.
Live Demo
Check a live Demo here https://fastapi-admin.long2ice.cn.
- username:
admin - password:
123456
Data in database will restore every day.
Screenshots
Requirements
- FastAPI framework as your backend framework.
- Tortoise-ORM as your orm framework, by the way, which is best asyncio orm so far and I'm one of the contributors😋.
Quick Start
Run Backend
Look full example at examples.
git clone https://github.com/long2ice/fastapi-admin.git.docker-compose up -d --build.docker-compose exec -T mysql mysql -uroot -p123456 < examples/example.sql fastapi-admin.- That's just all, api server is listen at http://127.0.0.1:8000 now.
Run Front
See restful-admin for reference.
Backend Integration
> pip3 install fastapi-admin
from fastapi_admin.factory import app as admin_app
fast_app = FastAPI()
register_tortoise(fast_app, config=TORTOISE_ORM, generate_schemas=True)
fast_app.mount('/admin', admin_app)
@fast_app.on_event('startup')
async def startup():
await admin_app.init(
admin_secret="test",
permission=True,
site=Site(
name="FastAPI-Admin DEMO",
login_footer="FASTAPI ADMIN - FastAPI Admin Dashboard",
login_description="FastAPI Admin Dashboard",
locale="en-US",
locale_switcher=True,
theme_switcher=True,
),
)
Documentation
See documentation at https://long2ice.github.io/fastapi-admin.
Deployment
Deploy fastapi app by gunicorn+uvicorn or reference https://fastapi.tiangolo.com/deployment/.
Restful API Docs
See restful api docs.
Support this project
| AliPay | WeChatPay | PayPal |
|---|---|---|
| PayPal to my account long2ice. |
License
This project is licensed under the Apache-2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi-admin-0.3.2.tar.gz.
File metadata
- Download URL: fastapi-admin-0.3.2.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14750c4f50b6fa7570cea5487b65a1a852504c35cb49407e7f391cf129cc3f29
|
|
| MD5 |
c8937f66cfaa5e0e4571a467bb3c0a07
|
|
| BLAKE2b-256 |
9a202ada018e4eb2777c408824ff3e7413fe26f280a7be0e4032be893b32dcd3
|
File details
Details for the file fastapi_admin-0.3.2-py3-none-any.whl.
File metadata
- Download URL: fastapi_admin-0.3.2-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b998c4755411e3bf382457e15b9020cdedf5468cf73263245dd3b584fd12faf
|
|
| MD5 |
1c7bed0edc2b10740b9823c99da0c860
|
|
| BLAKE2b-256 |
5afcc019bc2c05a0316bc71994f0a1fefcdb7b2a7820574eb58734db15356e71
|