{"id":17614226,"url":"https://github.com/vroncevic/gen_data_model","last_synced_at":"2025-05-13T03:19:45.935Z","repository":{"id":18371858,"uuid":"84124676","full_name":"vroncevic/gen_data_model","owner":"vroncevic","description":"Generate Data Model","archived":false,"fork":false,"pushed_at":"2024-07-08T16:35:22.000Z","size":7840,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T07:59:18.927Z","etag":null,"topics":["data-model","database","django","flask","generator","linux","macos","orm","python3","qnx","sqlalchemy","template","unix"],"latest_commit_sha":null,"homepage":"https://vroncevic.github.io/gen_data_model","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vroncevic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-06T21:53:28.000Z","updated_at":"2024-08-27T20:12:59.000Z","dependencies_parsed_at":"2024-06-10T18:13:07.410Z","dependency_job_id":"5102eeac-977f-4234-8822-0e5fb18276f9","html_url":"https://github.com/vroncevic/gen_data_model","commit_stats":{"total_commits":68,"total_committers":2,"mean_commits":34.0,"dds":0.02941176470588236,"last_synced_commit":"0a13f230ebbcc6b9b3d626789654c0bd6ac22f0b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vroncevic%2Fgen_data_model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vroncevic%2Fgen_data_model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vroncevic%2Fgen_data_model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vroncevic%2Fgen_data_model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vroncevic","download_url":"https://codeload.github.com/vroncevic/gen_data_model/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253863515,"owners_count":21975667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-model","database","django","flask","generator","linux","macos","orm","python3","qnx","sqlalchemy","template","unix"],"created_at":"2024-10-22T18:34:20.948Z","updated_at":"2025-05-13T03:19:45.833Z","avatar_url":"https://github.com/vroncevic.png","language":"Python","readme":"# Generate Data Model (Django/Flask/SQLAlchemy)\n\n\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/vroncevic/gen_data_model/dev/docs/gen_data_model_logo.png\" width=\"25%\"\u003e\n\n**gen_data_model** is tool generator of data model for\n\n* Django FWK\n* Flask FWK\n* SQLAlchemy FWK\n\nDeveloped in **[python](https://www.python.org/)** code.\n\nThe README is used to introduce the modules and provide instructions on\nhow to install the modules, any machine dependencies it may have and any\nother information that should be provided before the modules are installed.\n\n[![gen_data_model python checker](https://github.com/vroncevic/gen_data_model/actions/workflows/gen_data_model_python_checker.yml/badge.svg)](https://github.com/vroncevic/gen_data_model/actions/workflows/gen_data_model_python_checker.yml) [![gen_data_model package checker](https://github.com/vroncevic/gen_data_model/actions/workflows/gen_data_model_package_checker.yml/badge.svg)](https://github.com/vroncevic/gen_data_model/actions/workflows/gen_data_model_package.yml) [![GitHub issues open](https://img.shields.io/github/issues/vroncevic/gen_data_model.svg)](https://github.com/vroncevic/gen_data_model/issues) [![GitHub contributors](https://img.shields.io/github/contributors/vroncevic/gen_data_model.svg)](https://github.com/vroncevic/gen_data_model/graphs/contributors)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**\n\n- [Installation](#installation)\n    - [Install using pip](#install-using-pip)\n    - [Install using build](#install-using-build)\n    - [Install using py setup](#install-using-py-setup)\n    - [Install using docker](#install-using-docker)\n- [Dependencies](#dependencies)\n- [Tool structure](#tool-structure)\n- [Docs](#docs)\n- [Contributing](#contributing)\n- [Copyright and licence](#copyright-and-licence)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n### Installation\n\nUsed next development environment\n\n![debian linux os](https://raw.githubusercontent.com/vroncevic/gen_data_model/dev/docs/debtux.png)\n\n[![gen_data_model python3 build](https://github.com/vroncevic/gen_data_model/actions/workflows/gen_data_model_python3_build.yml/badge.svg)](https://github.com/vroncevic/gen_data_model/actions/workflows/gen_data_model_python3_build.yml)\n\nCurrently there are three ways to install tool\n* Install process based on using pip mechanism\n* Install process based on build mechanism\n* Install process based on setup.py mechanism\n* Install process based on docker mechanism\n\n##### Install using pip\n\nPython is located at **[pypi.org](https://pypi.org/project/gen_data_model/)**.\n\nYou can install by using pip\n\n```bash\n#python3\npip3 install gen_data_model\n```\n\n##### Install using build\n\nNavigate to **[release page](https://github.com/vroncevic/gen_data_model/releases)** download and extract release archive.\n\nTo install **gen_data_model** run\n\n```bash\ntar xvzf gen_data_model-x.y.z.tar.gz\ncd gen_data_model-x.y.z\n# python3\nwget https://bootstrap.pypa.io/get-pip.py\npython3 get-pip.py \npython3 -m pip install --upgrade setuptools\npython3 -m pip install --upgrade pip\npython3 -m pip install --upgrade build\npip3 install -r requirements.txt\npython3 -m build --no-isolation --wheel\npip3 install dist/gen_data_model-x.y.z-py3-none-any.whl\nrm -f get-pip.py\n```\n\n##### Install using py setup\n\nNavigate to **[release page](https://github.com/vroncevic/gen_data_model/releases)** download and extract release archive.\n\nTo install **gen_data_model** locate and run setup.py\n\n```bash\ntar xvzf gen_data_model-x.y.z.tar.gz\ncd gen_data_model-x.y.z\n#python3\npip3 install -r requirements.txt\npython3 setup.py install_lib\npython3 setup.py install_egg_info\npython3 setup.py install_data\n```\n\n##### Install using docker\n\nYou can use Dockerfile to create image/container.\n\n### Dependencies\n\n**gen_data_model** requires next modules and libraries\n\n* [ats-utilities - Python App/Tool/Script Utilities](https://vroncevic.github.io/gen_data_model)\n\n### Tool structure\n\n**gen_data_model** is based on OOP\n\nGenerator structure\n\n```bash\n    gen_data_model/\n          ├── conf/\n          │   ├── gen_data_model.cfg\n          │   ├── gen_data_model.logo\n          │   ├── gen_data_model_util.cfg\n          │   ├── model_types.yaml\n          │   └── template/\n          │       ├── django_base_model.template\n          │       ├── django.template\n          │       ├── flask_base_model.template\n          │       ├── flask.template\n          │       ├── sqlalchemy_base_model.template\n          │       └── sqlalchemy.template\n          ├── __init__.py\n          ├── log/\n          │   └── gen_data_model.log\n          ├── pro/\n          │   ├── __init__.py\n          │   ├── read_template.py\n          │   └── write_template.py\n          ├── py.typed\n          └── run/\n              └── gen_data_model_run.py\n    \n    6 directories, 17 files\n```\n\n### Code coverage\n\n| Name | Stmts | Miss | Cover |\n|------|-------|------|-------|\n| `gen_data_model/__init__.py` | 75 | 14 | 81% |\n| `gen_data_model/pro/__init__.py` | 66 | 2 | 97% |\n| `gen_data_model/pro/read_template.py` | 34 | 2 | 94% |\n| `gen_data_model/pro/write_template.py` | 53 | 2 | 96% |\n| **Total** | 228 | 20 | 91% |\n\n### Docs\n\n[![Documentation Status](https://readthedocs.org/projects/gen_data_model/badge/?version=latest)](https://gen-data-model.readthedocs.io/projects/gen_data_model/en/latest/?badge=latest)\n\nMore documentation and info at\n\n* [gen_data_model.readthedocs.io](https://gen-data-model.readthedocs.io/en/latest/)\n* [www.python.org](https://www.python.org/)\n\n### Contributing\n\n[Contributing to gen_data_model](CONTRIBUTING.md)\n\n### Copyright and licence\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nCopyright (C) 2017 - 2024 by [vroncevic.github.io/gen_data_model](https://vroncevic.github.io/gen_data_model/)\n\n**gen_data_model** is free software; you can redistribute it and/or modify\nit under the same terms as Python itself, either Python version 3.x or,\nat your option, any later version of Python 3 you may have available.\n\nLets help and support PSF.\n\n[![Python Software Foundation](https://raw.githubusercontent.com/vroncevic/gen_data_model/dev/docs/psf-logo-alpha.png)](https://www.python.org/psf/)\n\n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.python.org/psf/donations/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvroncevic%2Fgen_data_model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvroncevic%2Fgen_data_model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvroncevic%2Fgen_data_model/lists"}