Admin Panel for DB with Gino ORM and Sanic (inspired by Flask-Admin)
Project description
gino_admin
Admin Panel for DB with Gino ORM and Sanic (inspired by Flask-Admin)
Work in progress
If you have time and want to fix: Please open issues with that you want to add or write to me in Telegram: @xnuinside or mail: xnuinside@gmail.com
Version 0.0.4 Updates:
Upload from CSV - works, added example to examples/ files. You can upload data from ‘.csv’ tables.
Edit per row - now exist button ‘edit’.
Fixed delete for ALL rows of the model
Fixed delete per element.
Now works full ‘CRUD’.
Fixed auth, now it sets ‘cookie’ and compare user-agent (for multiple users per login)
Limitations
For correct work of Admin Panel all models MUST contain unique ‘id’ field. ‘id’ used to identify row (one element) for Edit & Delete operations.
so if you define model, for example, User:
class User(db.Model):
__tablename__ = "users"
id = db.Column(db.String(), unique=True, primary_key=True)
Supported operations
One user auth
Create item by one for the Model
Delete all rows
Delete one item
Edit existed data
Upload data from csv
TODO:
Select multiple for delete
Edit multiple
Multiple users
Set up data presets (drop table for some data state, defined from csv)
Filters in columns
Actions history
Screens:
Contributions
Contributions and feature requests are very welcome!
Developer guide
Project use pre-commit hooks, so you need setup them
Just run:
pre-commit install
to install git hooks in your .git/ directory.
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
Hashes for gino_admin-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 630aab963ed3ae1345838ac7f00b784bdbd9a0da2827e14f7a19001e64f2db62 |
|
MD5 | bd844ce0a98962e276af0d2ef9c98d06 |
|
BLAKE2b-256 | 485cff282f7d6181cb60ecb431cdf35871779fbb6e543888630c9c631a65256d |