DEV Community

Arth
Arth

Posted on

Advantages/disadvantages of poetry vs pipenv

You might be used to working with a virtual environment to isolate dependencies in a Python project, right?

Most people prefer venv or pipenv. However, venv lacks backward compatibility. Hence, for most people, pipenv turns out to be the best choice. Is that actually the best choice though?

The underdog poetry is identical to pipenv at the core, so which one should you use?

  • pipenv helps you lock down dependencies, easily manage your virtual environment, has backwards compatibility, dependency graphs, and more.

  • poetry is all that and offers extra tools that help you build and publish your packages to PyPi within few commands, resolve dependencies easily, and most of all, it's really snappy!

However,

  • pipenv can separate dev and build dependencies does this but it can get tricky.

Bottom line, if you want a dependency management system that just works, pipenv should be good enough but if you're on the hunt for an all round snappy tool, poetry is your friend.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay