Skip to main content

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:

  1. Upload from CSV - works, added example to examples/ files. You can upload data from ‘.csv’ tables.

  2. Edit per row - now exist button ‘edit’.

  3. Fixed delete for ALL rows of the model

  4. Fixed delete per element.

  5. Now works full ‘CRUD’.

  6. 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:

Simple auth Add item Table view Add rows from CSV upload

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gino_admin-0.0.4.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gino_admin-0.0.4-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

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

Hashes for gino_admin-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ac2882c44b97842491ab35232b0d4c5e1b9021d0b6ee36f36fbe19c907480cd4
MD5 b13f53b822fa9f5e7a535ef2099c0039
BLAKE2b-256 b2a3c589a97f15b4d78ad9724147940b51e5f29e1fae6aee15c08ffc879fdc63

See more details on using hashes here.

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

Hashes for gino_admin-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 630aab963ed3ae1345838ac7f00b784bdbd9a0da2827e14f7a19001e64f2db62
MD5 bd844ce0a98962e276af0d2ef9c98d06
BLAKE2b-256 485cff282f7d6181cb60ecb431cdf35871779fbb6e543888630c9c631a65256d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page