Package Managers in python 🚀

Rohith Gilla - Jun 13 '20 - - Dev Community

Hola

Hey everyone welcome back to the third post of the series can-python-do-that. Wow it's already the third week and I am enjoying to do this 👨🏻‍💻

Github Repository ⭐️

The repository that holds the assets for the series.

GitHub logo Rohithgilla12 / can-python-do-that

This is official repository of the series "can python do that".

To all the JS folks out there, how many time did you feel it would be great if python also has package manager like npm or yarn with those *.lock files. I'm yarn fan 😛 btw.

How many times have you encountered problems managing versions in python projects 🤔?

How many times have you hit stackoverflow searching for version mismatch problems?

Well today in our series we are going to talk about the package mangers in python.

Alt Text

Libraries that we sail over today 🚢

  • Poetry
  • Pipenv
  • Virtualenv

Poetry

Poetry Logo
Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you

This is my personal favourite library. I tried different libraries for dependecy management but finally stuck to this.

asciicast

PYPI
Docs
Asciinema

P.S: If you are thinking what toml means it stands for Tom's Obvious, Minimal Language.

Pipenv

Pipenv Logo
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the Python world. 

It automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages. It also generates the ever-important Pipfile.lock, which is used to produce deterministic builds.

asciicast

PYPI
Docs
Asciinema

Virtualenv

virtualenv is used to manage Python packages for different projects. Using virtualenv allows you to avoid installing Python packages globally which could break system tools or other projects. You can install virtualenv using pip.

asciicast

PYPI
Docs
Asciinema

Thanks

Peace ✌🏻,
Rohith Gilla

Spoiler Alert: Next week it is going to be about AI/ML libraries 🍩

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player