Configuration Setup

Python virtual environment

An isolated directory that contains a specific Python interpreter and its own set of software libraries and binaries. This isolation prevents conflicts between different projects that may require different versions of the same package or even different versions of Python itself. The built-in and recommended tool for creating these environments in Python3.3+ is the venv module.

The sequence command below should be run once per project to entirely set up the environment with the tools needed to start developing in Pyhton:

cd project-folder/
python -m venv venv #running the venv module script into a venv output folder
source venv/bin/activate #activating venv
python -m pip install flake8 #installing flake8
python -m pip install mypy #installing mypy

flake8

Is a python linter*, which* is a static code analysis tool used to scan source code without executing it, identifying bugs, syntax errors, security vulnerabilities, and stylistic inconsistencies.

mypy

Popular open-source static type checker for Python that helps find bugs in code before it runs.

pyenv

A tool that lets you easily switch between multiple versions of Python.

pyenv global [version] #this command is usually run once, know more about it at **man pyenv**

Module00

pycache

Directory automatically created by the Python interpreter to store compiled bytecode files (with a .pyc extension) for your Python modules.

Purpose and Function

Management