Generate ESP Project

gen_esp is tool for generation of esp project.

Developed in python code.

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

Python package GitHub issues Documentation Status GitHub contributors

Installation

Install Python2 Package Install Python3 Package

Debian Linux OS

Navigate to release page download and extract release archive.

To install gen_esp type the following

tar xvzf gen_esp-x.y.z.tar.gz
cd gen_esp-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_esp-*-py2-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python2.7/dist-packages/usr/local/bin/gen_esp_run.py
ln -s /usr/local/lib/python2.7/dist-packages/usr/local/bin/gen_esp_run.py /usr/local/bin/gen_esp_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_esp-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.9/dist-packages/usr/local/bin/gen_esp_run.py
ln -s /usr/local/lib/python3.9/dist-packages/usr/local/bin/gen_esp_run.py /usr/local/bin/gen_esp_run.py

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

# pyton2
pip2 install gen_esp
# pyton3
pip3 install gen_esp

GitHub docker checker

Dependencies

gen_esp requires next modules and libraries

Generation flow of project setup

Base flow of generation process

https://raw.githubusercontent.com/vroncevic/gen_esp/dev/docs/python_setup_flow.png

Tool structure

gen_esp is based on OOP.

Tool structure

gen_esp/
├── conf/
│   ├── gen_esp.cfg
│   ├── gen_esp.logo
│   ├── gen_esp_util.cfg
│   └── template/
│       └── generator_test.template
├── __init__.py
├── log/
│   └── gen_esp.log
├── pro/
│   ├── __init__.py
│   ├── read_template.py
│   └── write_template.py
└── run/
    └── gen_esp_run.py

Indices and tables