https://github.com/housamz/python-mysql-admin-panel-generator
Python MySQL Admin-panel Generator (MAGE), a Python Flask tool that helps you create a Python Flask CRUD system for any MySQL database in seconds.
https://github.com/housamz/python-mysql-admin-panel-generator
cms content-management crud crud-application database flask mysql python
Last synced: about 1 month ago
JSON representation
Python MySQL Admin-panel Generator (MAGE), a Python Flask tool that helps you create a Python Flask CRUD system for any MySQL database in seconds.
- Host: GitHub
- URL: https://github.com/housamz/python-mysql-admin-panel-generator
- Owner: housamz
- License: apache-2.0
- Created: 2020-02-17T02:28:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T11:02:12.000Z (3 months ago)
- Last Synced: 2025-04-02T15:51:11.386Z (3 months ago)
- Topics: cms, content-management, crud, crud-application, database, flask, mysql, python
- Language: Python
- Size: 648 KB
- Stars: 37
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python MAGE :: MySQL Admin Panel Generator Version 0.3
Available for PHP also: [PHP Mage](https://github.com/housamz/php-mysql-admin-panel-generator)Python MySQL Admin Panel Generator (MAGE), a Python tool that helps you create a Python Admin Panel for any MySQL database in seconds.
Mage is not like PHPMyAdmin; it doesn't contain all your databases. It physically creates an admin panel for a database.
A suggested use-case for the tool would be creating an admin panel for a Python Flask / MySQL project in seconds, and then you can tweak it before delivery.
You may use this tool for charity or school projects, for commercial use, please contact me.
### Name
MAGE is derived from `M`ySql `A`dmin panel `GE`nerator.
Mage (meɪdʒ): a magician or learned person.### Disclaimer: Always backup your database.
## Running Mage
1- If you want, create a Virtual Environment and activate it, if not, please go to step 2
`python3 -m venv env`
`source env/bin/activate`
2- Install the requirements
`pip install -r requirements.txt`3- Run Mage
`flask run -p 3009`Mage can then be accessed on `http://localhost:3009`
## Instructions
1- Start by providing your MySQL Server Info, then click Next Step button.
2- The tool will scan the server for available databases and list them in a dropdown menu, select the database that you want, check if you want to create a 'users' table or not, and then click "Generate Admin Panel" button
3- After a few seconds, you'll get a success message, with a link to the newly created admin panel, and a report of all the operations that were done.
### Running your new application
1- If you want, create a Virtual Environment and activate it, if not, please go to step 2
`python3 -m venv env`
`source env/bin/activate`
2- Install the requirements
`pip install -r requirements.txt`3- Run the application
`python app.py`4- Click the link to the admin panel. You have to sign in using "admin" as an email and a password.
---
You'll get a clean bootstrap interface to control the website, check below screenshots:
---

---
## Notes
1- Mage and the generated applications are still in testing period.
2- The generated app will run in debug mode, to change it, go to the last line on app.py and remove the `debug=True` from `app.run(debug=True)`