AI engineering glossary · Python advanced
What is poetry?
Poetry: A tool for managing Python projects that handles dependency resolution, virtual environments, lock files and packaging in one workflow, configured through pyproject.toml. It aims to make dependency handling and publishing to a package index a single tool's job.
Poetry: an example
poetry add pandas installs pandas, updates pyproject.toml and records exact versions in poetry.lock.
Related terms
- Lock file
- pyproject.toml
- Virtual environment
- uv
More Python advanced terms
Where you learn it
Poetry is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.