Skip to main content

Python App/Tool/Script Utilities

Project description

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.

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.

gen_data_model python checker gen_data_model package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

debian linux os

gen_data_model python3 build

Currently there are three ways to install tool

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

Python is located at pypi.org.

You can install by using pip

#python3
pip3 install gen_data_model
Install using build

Navigate to release page download and extract release archive.

To install gen_data_model run

tar xvzf gen_data_model-x.y.z.tar.gz
cd gen_data_model-x.y.z
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install dist/gen_data_model-x.y.z-py3-none-any.whl
rm -f get-pip.py
Install using py setup

Navigate to release page download and extract release archive.

To install gen_data_model locate and run setup.py

tar xvzf gen_data_model-x.y.z.tar.gz
cd gen_data_model-x.y.z
#python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
python3 setup.py install_data
Install using docker

You can use Dockerfile to create image/container.

Dependencies

gen_data_model requires next modules and libraries

Tool structure

gen_data_model is based on OOP

Generator structure

    gen_data_model/
          ├── conf/
             ├── gen_data_model.cfg
             ├── gen_data_model.logo
             ├── gen_data_model_util.cfg
             ├── model_types.yaml
             └── 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
          ├── pro/
             ├── __init__.py
             ├── read_template.py
             └── write_template.py
          ├── py.typed
          └── run/
              └── gen_data_model_run.py
    
    6 directories, 17 files

Code coverage

Name Stmts Miss Cover
gen_data_model/__init__.py 73 12 84%
gen_data_model/pro/__init__.py 64 0 100%
gen_data_model/pro/read_template.py 32 0 100%
gen_data_model/pro/write_template.py 51 0 100%
Total 220 12 95%

Docs

Documentation Status

More documentation and info at

Contributing

Contributing to gen_data_model

Copyright and licence

License: GPL v3 License

Copyright (C) 2017 - 2026 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 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

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

gen_data_model-2.3.7.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

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

gen_data_model-2.3.7-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file gen_data_model-2.3.7.tar.gz.

File metadata

  • Download URL: gen_data_model-2.3.7.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for gen_data_model-2.3.7.tar.gz
Algorithm Hash digest
SHA256 3e25a9e98c451426f9f158483ccade24b937a21148d7ec0b05e3cf08ed124dee
MD5 9cdf8661f9b657b944977e34aecfbe3f
BLAKE2b-256 24f641d0ccc29d6de5754521233dec36b0809ae999d27322632cde2de5f06f58

See more details on using hashes here.

File details

Details for the file gen_data_model-2.3.7-py3-none-any.whl.

File metadata

  • Download URL: gen_data_model-2.3.7-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for gen_data_model-2.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 79fd3e6882f1ff99c0a70c10e8afbc81f40813dd32153c59ed0fe99201cd3dc0
MD5 1e2c75478edd989a2cdf94ad706da9c7
BLAKE2b-256 67cd5a45379f85e3dd1280c425a176c40624c5f63750378fd4924b5ffb7c64e5

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