Python is a high-level, interpreted programming language known for its simplicity, readability, and versatility. Created by Guido van Rossum and first released in 1991, Python emphasizes code readability with its clean, easy-to-understand syntax, making it ideal for both beginners and experienced developers. Python supports multiple programming paradigms, including object-oriented, procedural, and functional programming, and has a vast ecosystem of libraries and frameworks that extend its functionality.

Tool/FrameworkDescription
DynaconfConfiguration Management for Python
CrytoLensLicense and sell your software securely
LocustAn open source load testing tool
PipdeptreeDisplay dependencies tree
DatabasesAsync database support for Python
VultureFind dead Python code
HatchModern, extensible Python project management
TowncrierManage the release notes for your project
GitlintLinting for your git commit messages
License-checkCheck python packages from requirement.txt and report issues
Pip-licensesDump the license list of packages installed with pip
PyclnA formatter for finding and removing unused import statements
TypeshedCollection of library stubs for Python, with static types
SafetyChecks Python dependencies for known security vulnerabilities
OrjsonFast, correct Python JSON library
PymplerDevelopment tool to measure, monitor and analyze the memory behavior
LoguruPython logging made simple
DebugpyAn implementation of the Debug Adapter Protocol for Python
HeyHTTP load generator, ApacheBench (ab) replacement
PerfectPrefect is a workflow orchestration tool empowering developers to build, observe, and react to data pipelines
RichRich is a Python library for rich text and beautiful formatting in the terminal
SchedulePython job scheduling for humans
ScaleneHigh-performance, high-precision CPU, GPU, and memory profile
MemrayMemory profiler
JellyfishLibrary for approximate and phonetic matching of strings
DaskParallel computing with task scheduling
MsgspecA fast serialization and validation library
AttrsPython Classes Without Boilerplate
KivyOpen source UI framework
GriptapeModular Python framework for AI agents and workflows with chain-of-thought reasoning
GSQuantPython toolkit for quantitative finance
QuixPython stream processing for Kafka
cuDFcuDF - GPU DataFrame Library
pygwalkerTurn your pandas dataframe into an interactive UI
FastCRUDFastCRUD offer a robust async CRUD operations and flexible endpoint creation utilities.
OrmarPython async orm with fastapi in mind and pydantic validation
LogfireUncomplicated Observability for Python and beyond
PathwayPython ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG
MarkitdownPython tool for converting files and office documents to Markdown
VPS-auditLightweight, dependency-free bash script for security, performance auditing and infrastructure monitoring of Linux servers
Dependency InjectorDependency injection framework for Python
LitestarProduction-ready, Light, Flexible and Extensible ASGI API framework

Articles/Talks

Inspired repositories

Installation previous versions

  • Example in Debian/Ubuntu
# install repository
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
# python 3.X substitute for the version needed
sudo apt install python3.9 python3.9-venv python3.9-dev -y

Use

Pipx

  • Install pipx for isolated environments and Apps to use in general context, for example Hatch or PDM.
  • Select which python use.
pipx install hatch uv pip-tools --python python3.11

Hacth

  • Create a project using Hatch.
hatch new --init
  • Create environment using UV.
hatch env create
  • Activate venv
hatch shell
  • Build project
hatch build

UV

  • Create env with uv
uv venv --python 3.11 
  • Compile requirements
uv pip compile requirements/requirements.in -o requirements/requirements.txt
uv pip install -r requirements/requirements.txt

Libraries

Pydantic

Pytest

# list fixtures availables
pytest --fixtures
# run single function
pytest test_mod.py::test_func
 
# Marker tests
@pytest.mark.unit
def test_get()
pytest -m unit -v
 
# coverage instructions
--cov package --cov-branch --cov-report term-missing

Setuptools

Sphinx

sphinx-autobuild docs/source docs/build/html

MKdocs

Pre-commit

pre-commit run --files client/example.py

Alembic

alembic revision --autogenerate -m "New revision"
alembic upgrade head
alembic check

JWT

# pip install pyjwt
import jwt
encoded_jwt = jwt.encode({'some': 'payload'}, 'secret', algorithm='HS256')

Commands

  • List dependencies.
pip install pipdeptree 
pipdeptree > result.txt
  • List licenses.
pip install pip-licenses
pip-licenses --from=classifier --with-description --order=license --format=html --output-file=/result.html
# show pip config
pip config list -v
 
# FLASK
flask routes
00-python-path.py
 
echo ''import sys; sys.path.append('your-packages-route') ' > /home/ipython.profile_default/startup/00-python-path.py

Understanding Python Execution Flow

Web-GUIs

Tool/FrameworkDescription
DashData Apps & Dashboards for Python. No JavaScript Required.
StreamlintA faster way to build and share data apps.
GradioBuild and share delightful machine learning apps
SolaraA Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps
ReactPyIt’s React, but in Python
VoilaVoilà turns Jupyter notebooks into standalone web applications
ReflexWeb apps in pure Python
BackstageBackstage is an open framework for building developer portals
MesopRapidly build AI apps in Python
NiceguiCreate web-based user interfaces with Python