Git Product home page Git Product logo

gen_data_model's Introduction

Generate Data Model (Django/Flask/SQLAlchemy)

gen_data_model is tool generator of data model for:

  • Django FWK
  • Flask FWK
  • SQLAlchemy FWK

Developed in python code: 100%.

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

Python package GitHub issues open GitHub contributors

Table of Contents

Installation

Install Python2 Package Install Python3 Package

Navigate to release page download and extract release archive.

To install gen_data_model type the following:

tar xvzf gen_data_model-x.y.z.tar.gz
cd gen_data_model-x.y.z
pip install -r requirements.txt

Install lib process

python setup.py install_lib
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/gen_data_model
copying gen_data_model/__init__.py -> build/lib.linux-x86_64-2.7/gen_data_model
creating build/lib.linux-x86_64-2.7/gen_data_model/model
copying gen_data_model/model/__init__.py -> build/lib.linux-x86_64-2.7/gen_data_model/model
copying gen_data_model/model/write_template.py -> build/lib.linux-x86_64-2.7/gen_data_model/model
copying gen_data_model/model/gen_model.py -> build/lib.linux-x86_64-2.7/gen_data_model/model
copying gen_data_model/model/read_template.py -> build/lib.linux-x86_64-2.7/gen_data_model/model
copying gen_data_model/model/model_selector.py -> build/lib.linux-x86_64-2.7/gen_data_model/model
creating /usr/local/lib/python2.7/dist-packages/gen_data_model
creating /usr/local/lib/python2.7/dist-packages/gen_data_model/model
copying build/lib.linux-x86_64-2.7/gen_data_model/model/__init__.py -> /usr/local/lib/python2.7/dist-packages/gen_data_model/model
copying build/lib.linux-x86_64-2.7/gen_data_model/model/write_template.py -> /usr/local/lib/python2.7/dist-packages/gen_data_model/model
copying build/lib.linux-x86_64-2.7/gen_data_model/model/gen_model.py -> /usr/local/lib/python2.7/dist-packages/gen_data_model/model
copying build/lib.linux-x86_64-2.7/gen_data_model/model/read_template.py -> /usr/local/lib/python2.7/dist-packages/gen_data_model/model
copying build/lib.linux-x86_64-2.7/gen_data_model/model/model_selector.py -> /usr/local/lib/python2.7/dist-packages/gen_data_model/model
copying build/lib.linux-x86_64-2.7/gen_data_model/__init__.py -> /usr/local/lib/python2.7/dist-packages/gen_data_model
byte-compiling /usr/local/lib/python2.7/dist-packages/gen_data_model/model/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/gen_data_model/model/write_template.py to write_template.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/gen_data_model/model/gen_model.py to gen_model.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/gen_data_model/model/read_template.py to read_template.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/gen_data_model/model/model_selector.py to model_selector.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/gen_data_model/__init__.py to __init__.pyc

Install lib egg info

python setup.py install_egg_info
running install_egg_info
running egg_info
creating gen_data_model.egg-info
writing requirements to gen_data_model.egg-info/requires.txt
writing gen_data_model.egg-info/PKG-INFO
writing top-level names to gen_data_model.egg-info/top_level.txt
writing dependency_links to gen_data_model.egg-info/dependency_links.txt
writing manifest file 'gen_data_model.egg-info/SOURCES.txt'
reading manifest file 'gen_data_model.egg-info/SOURCES.txt'
writing manifest file 'gen_data_model.egg-info/SOURCES.txt'
Copying gen_data_model.egg-info to /usr/local/lib/python2.7/dist-packages/gen_data_model-1.0.0-py2.7.egg-info

Install lib data

python setup.py install_data
running install_data
copying gen_data_model/run/gen_data_model_run.py -> /usr/local/bin/
creating /usr/local/lib/python2.7/dist-packages/gen_data_model/conf
copying gen_data_model/conf/gen_data_model.cfg -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/
copying gen_data_model/conf/gen_data_model_util.cfg -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/
creating /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template
copying gen_data_model/conf/template/django.template -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template/
copying gen_data_model/conf/template/flask.template -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template/
copying gen_data_model/conf/template/sqlalchemy.template -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template/
copying gen_data_model/conf/template/django_base_model.template -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template/
copying gen_data_model/conf/template/flask_base_model.template -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template/
copying gen_data_model/conf/template/sqlalchemy_base_model.template -> /usr/local/lib/python2.7/dist-packages/gen_data_model/conf/template/
creating /usr/local/lib/python2.7/dist-packages/gen_data_model/log
copying gen_data_model/log/gen_data_model.log -> /usr/local/lib/python2.7/dist-packages/gen_data_model/log/

Or You can use docker to create image/container.

gen_data_model docker checker

Dependencies

gen_data_model requires next modules and libraries:

Generation flow of data model

Base flow of generation process:

alt tag

Tool structure

gen_data_model is based on Template mechanism:

alt tag

Generator structure:

.
├── conf/
│   ├── gen_data_model.cfg
│   ├── gen_data_model_util.cfg
│   └── template/
│       ├── django_base_model.template
│       ├── django.template
│       ├── flask_base_model.template
│       ├── flask.template
│       ├── sqlalchemy_base_model.template
│       └── sqlalchemy.template
├── __init__.py
├── log/
│   └── gen_data_model.log
├── model/
│   ├── gen_model.py
│   ├── __init__.py
│   ├── model_selector.py
│   ├── read_template.py
│   └── write_template.py
└── run/
    └── gen_data_model_run.py

Docs

Documentation Status

More documentation and info at:

Copyright and licence

License: GPL v3 License

Copyright (C) 2018 by vroncevic.github.io/gen_data_model

gen_data_model is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 2.7/3.4 or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

gen_data_model's People

Contributors

vroncevic avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.