🛠Installation
1. 📥 Download or clone the repository
[TIP] Skip this step, if you're going to install the package directly from PyPi or GitHub repository.
mkdir -pv ~/workspaces/projects
cd ~/workspaces/projects
# HTTPS:
git clone https://github.com/bybatkhuu/module-python-template.git
# Or SSH (development):
git clone git@github.com:bybatkhuu/module-python-template.git
cd module-python-template
Alternatively, download the source from the releases page and extract it into your projects directory.
2. 📦 Install the package
[NOTE] Choose one of the following methods to install the package [A ~ F]:
OPTION A. [RECOMMENDED] Install from PyPi:
# Install from staging TestPyPi:
pip install -i https://test.pypi.org/simple -U my-module01
# Or install from production PyPi:
# pip install -U my-module01
OPTION B. Install latest version directly from GitHub repository:
OPTION C. Install from the downloaded source code:
# Install directly from the source code:
pip install .
# Or install with editable mode:
pip install -e .
OPTION D. Install for DEVELOPMENT environment:
OPTION E. Install from pre-built release files:
- Download
.whlor.tar.gzfile from releases - Install with pip:
# Install from .whl file:
pip install ./my_module01-[VERSION]-py3-none-any.whl
# Or install from .tar.gz file:
pip install ./my_module01-[VERSION].tar.gz
OPTION F. Copy the module into the project directory (for testing):