🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Python Intermediate

What is Python Packaging with Poetry?

A modern dependency management and packaging tool for Python that simplifies project setup, versioning, and publishing.

Poetry replaces the fragmented Python packaging toolchain (setup.py, setup.cfg, requirements.txt, pip, virtualenv) with a single tool. It uses pyproject.toml for project metadata and dependency specification, poetry.lock for deterministic builds, and manages virtual environments automatically. Key commands: poetry init (create project), poetry add package (add dependency), poetry install (install from lock file), poetry build (create distribution), poetry publish (upload to PyPI). Poetry resolves dependency conflicts intelligently, supports dependency groups (dev, test), and provides version constraint syntax similar to npm/Composer. It follows PEP 517/518 standards for modern Python packaging.

Related Terms

Pickle
Python's built-in module for serializing and deserializing Python objects into a byte stream for storage or transmission.
Generator
A function that yields values one at a time using the yield keyword, enabling memory-efficient iteration over large datasets.
Dataclass
A decorator that automatically generates __init__, __repr__, __eq__, and other special methods for classes that mainly store data.
Dictionary
A built-in data structure that stores key-value pairs with O(1) average lookup time using hash tables.
Scikit-learn
The most popular Python machine learning library providing simple and efficient tools for data analysis and modeling.
Matplotlib
A comprehensive plotting library for creating static, animated, and interactive visualizations in Python.
View All Python Terms →