Generate Python Tool

gen_py_tool is package for generation of Python tool.

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.

gen_py_tool python checker gen_py_tool python package github issues Documentation Status github contributors

Installation

gen_py_tool python3 build

Navigate to release page download and extract release archive.

To install gen_py_tool type the following

tar xvzf gen_py_tool-x.y.z.tar.gz
cd gen_py_tool-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_py_tool-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.10/dist-packages/usr/local/bin/gen_py_tool_run.py
ln -s /usr/local/lib/python3.10/dist-packages/usr/local/bin/gen_py_tool_run.py /usr/local/bin/gen_py_tool_run.py

You can use Docker to create image/container, or You can use pip to install

# pyton3
pip3 install gen_py_tool

Dependencies

gen_py_tool requires next modules and libraries

Tool structure

gen_py_tool is based on OOP

Code structure

gen_py_tool/
     ├── application/
     │   ├── __init__.py
     │   └── service.py
     ├── domain/
     │   ├── __init__.py
     │   ├── models.py
     │   └── ports/
     │       ├── __init__.py
     │       ├── iservice.py
     │       └── isubprocessor.py
     ├── engine.py
     ├── gen_py_tool_bundle.py
     ├── infrastructure/
     │   ├── cli.py
     │   ├── cli_bundle.py
     │   ├── config/
     │   │   ├── gen_py_tool.cfg
     │   │   ├── gen_py_tool.logo
     │   │   ├── scheme.json
     │   │   └── templates.tgz
     │   ├── create_command.py
     │   ├── icli.py
     │   ├── icli_command.py
     │   ├── __init__.py
     │   └── subprocessor.py
     └── __init__.py

 6 directories, 21 files

Usage

Install package

pip3 install gen_py_tool

Prepare main entry point by downloading main.py or create your own.

wget -O main.py https://raw.githubusercontent.com/vroncevic/gen_py_tool/master/main.py

Running tool for creating new py tool

mkdir -p demo/mytool/
python3 main.py create --name mytool --type tool --output ./demo/mytool/

Running tool for creating new py tool with ats (ats-utilities) support

mkdir -p demo/mytoolwithats/
python3 main.py create --name mytoolwithats --type tool_ats --output ./demo/mytoolwithats/

Running tool for creating new py generator

mkdir -p demo/mygenerator/
python3 main.py create --name mygenerator --type gen --output ./demo/mygenerator/

Running tool for creating new py generator with ats (ats-utilities) support

mkdir -p demo/mygeneratorwithats/
python3 main.py create --name mygeneratorwithats --type gen_ats --output ./demo/mygeneratorwithats/

Indices and tables