Skip to main content

Automatically maps sql tables and generates classes for ORM manipulation

Project description


Map SQL (MySQl) table(s) and generate ORM classes for them automatically !! This proves to be very useful especially in cases where the number of tables is huge


From command line

As a python module


Using this repository

git clone
cd ORM-Creator
python install

Using pip

Coming up soon !


usage: orm-creator [-h] [-db DB] [-t TABLES [TABLES ...]] [-host HOST]
                 [-u UNAME] [-o OUTFILE]

optional arguments:
  -h, --help            show this help message and exit
  -db DB                The name of database from which tables will have to
  -t TABLES [TABLES ...]
                      List of table names each separated by one or more
  -host HOST            Name of the MySql host For Eg., localhost ,
  -u UNAME              Your Mysql username
  -o OUTFILE            Output file name ,along with its extension and
                      absolute path For Eg. , /home/shravan97/Desktop/


As a command line app

orm-creator -u root -db demo -t users migrations -o /var/www/flaskApp/

# The above statement maps `users` and `migrations` tables

As a module

from orm_creator import ormCreator
oc = ormCreator(config,'demo',['users','migrations'],'/var/www/flaskApp/')

# config is stored as a dict . For eg. , config = {'uname':'root','password':'**','host':'localhost'}


Please check here


Found any cool idea that could be implemented here ? Go ahead and give a pull request :smile: ! You may as well put it up as an issue here



GNU General Public License v3 (GPLv3)

Project details

Download files

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

Files for orm-creator, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size orm-creator-1.0.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page