vroncevic / gen_flask_pro

Generator - Flask project

Home Page:https://vroncevic.github.io/gen_flask_pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate Flask Project

☯️ gen_flask_pro is tool for generation of flask app project.

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_flask_pro py code checker gen_flask_pro python package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

Development environment

gen_flask_pro build python2 package gen_flask_pro build python3 package

Currently there are three ways to install package

  • 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

# python2
pip2 install gen_flask_pro
# python3
pip3 install gen_flask_pro
Install using build

Navigate to release page download and extract release archive πŸ“¦.

To install gen_flask_pro type the following

tar xvzf gen_flask_pro-x.y.z.tar.gz
cd gen_flask_pro-x.y.z/
# python2
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py 
python2 -m pip install --upgrade setuptools
python2 -m pip install --upgrade pip
python2 -m pip install --upgrade build
pip2 install -r requirements.txt
python2 -m build --no-isolation --wheel
pip2 install ./dist/gen_flask_pro-*-py2-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python2.7/dist-packages/usr/local/bin/gen_flask_pro_run.py
ln -s /usr/local/lib/python2.7/dist-packages/usr/local/bin/gen_flask_pro_run.py /usr/local/bin/gen_flask_pro_run.py
# 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_flask_pro-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.9/dist-packages/usr/local/bin/gen_flask_pro_run.py
ln -s /usr/local/lib/python3.9/dist-packages/usr/local/bin/gen_flask_pro_run.py /usr/local/bin/gen_flask_pro_run.py
Install using py setup

Navigate to release page download and extract release archive πŸ“¦.

To install gen_flask_pro, locate and run setup.py with arguments

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

You can use Dockerfile to create image/container 🚒.

gen_flask_pro docker checker

Dependencies

gen_flask_pro requires next modules and libraries

Base flow of generation process

Generation flow

Tool structure

gen_flask_pro is based on OOP

Generator structure

gen_flask_pro/
β”œβ”€β”€ conf/
β”‚   β”œβ”€β”€ gen_flask_pro.cfg
β”‚   β”œβ”€β”€ gen_flask_pro.logo
β”‚   β”œβ”€β”€ gen_flask_pro_util.cfg
β”‚   └── template/
β”‚       └── generator_test.template
β”œβ”€β”€ __init__.py
β”œβ”€β”€ log/
β”‚   └── gen_flask_pro.log
β”œβ”€β”€ pro/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ read_template.py
β”‚   └── write_template.py
└── run/
    └── gen_flask_pro_run.py

5 directories, 10 files

Docs

Documentation Status pages-build-deployment

πŸ“— More documentation and info at

Contributing

🌎 🌍 🌏 Contributing to gen_flask_pro

Copyright and Licence

License: GPL v3 License

Copyright (C) 2017 by vroncevic.github.io/gen_flask_pro

gen_flask_pro is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 2.x/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

About

Generator - Flask project

https://vroncevic.github.io/gen_flask_pro

License:GNU General Public License v3.0


Languages

Language:Python 95.7%Language:Dockerfile 3.6%Language:Shell 0.7%