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

Categories

Python Intermediate

What is Poetry?

A modern Python dependency management and packaging tool that handles virtual environments, locking, and publishing.

Poetry replaces pip + virtualenv + setup.py with a single tool. It uses pyproject.toml for configuration and poetry.lock for reproducible installs. Commands include poetry add (install package), poetry install (from lock file), and poetry shell (activate venv).

Poetry resolves dependency conflicts automatically, separates development and production dependencies, and can build and publish packages to PyPI. It is the modern standard for Python project management.

Related Terms

Generator
A function that yields values one at a time using the yield keyword, enabling memory-efficient iteration over large datasets.
Exception Handling
A mechanism for managing runtime errors using try, except, else, and finally blocks to prevent program crashes.
Magic Methods
Special double-underscore methods that define how Python objects behave with built-in operations and functions.
Python Metaclass
A class whose instances are classes themselves — the class of a class that controls how classes are created and behaved.
Pytest
A testing framework for Python that simplifies writing and running tests with powerful features like fixtures and parametrize.
Requests Library
An elegant HTTP library for Python that simplifies making web requests with a human-friendly API.
View All Python Terms →