๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout 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

Asyncio
A Python library for writing concurrent code using async/await syntax for non-blocking I/O operations.
Pickle
Python's built-in module for serializing and deserializing Python objects into a byte stream for storage or transmission.
Python Wheel
A built distribution format (.whl) that allows faster installation of Python packages by avoiding the need for compilation.
Python Profiling
Measuring where Python code spends time and memory to identify performance bottlenecks and optimization opportunities.
Context Manager
An object that manages resources by defining setup and cleanup actions using the with statement.
Python Typing Module
A standard library module providing type hints for function signatures and variables, enabling static analysis without runtime enforcement.
View All Python Terms โ†’