Poetry: The Ultimate Dependency Manager for Python
Poetry is a dependency management tool for Python that simplifies the entire workflow of building, managing, and publishing packages.
Instead of using pip and virtualenv separately, Poetry provides a single command-line interface for all your project needs.
Why you should use Poetry:
- Dependency resolution: Automatically resolves and locks dependencies.
- Virtual environment: Creates and manages virtual environments automatically.
- Easy publishing: Publishes packages to PyPI with a single command.
- Reproducible builds: The
poetry.lockfile ensures consistency across different machines.
Installation is simple: pip install poetry. Then run poetry new my-project to start.
For existing projects, use poetry init to create a pyproject.toml file.