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
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 gino_admin-0.0.4.tar.gz.
File metadata
- Download URL: gino_admin-0.0.4.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.4 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac2882c44b97842491ab35232b0d4c5e1b9021d0b6ee36f36fbe19c907480cd4
|
|
| MD5 |
b13f53b822fa9f5e7a535ef2099c0039
|
|
| BLAKE2b-256 |
b2a3c589a97f15b4d78ad9724147940b51e5f29e1fae6aee15c08ffc879fdc63
|
File details
Details for the file gino_admin-0.0.4-py3-none-any.whl.
File metadata
- Download URL: gino_admin-0.0.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.4 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
630aab963ed3ae1345838ac7f00b784bdbd9a0da2827e14f7a19001e64f2db62
|
|
| MD5 |
bd844ce0a98962e276af0d2ef9c98d06
|
|
| BLAKE2b-256 |
485cff282f7d6181cb60ecb431cdf35871779fbb6e543888630c9c631a65256d
|