Setting up the environment
As usual, we will start by setting up our environment; the first thing we need to do is set up a virtual environment that will allow us to easily install our project dependencies without interfering with Python's global installation.
In the previous chapters, we used virtualenv
to create our virtual environment; however, Kenneth Reitz (the creator of the popular package requests) created pipenv
.pipenv
is for Python what NPM is for Node.js. However, pipenv
is used for much more than package management, and it also creates and manages a virtual environment for you. In my opinion, there are a lot of advantages of the old development workflows, but for me, there are two things that stand out: the first is that you no longer need two different tools (pip
, virtualenv
), and the second is that it is much simpler to have all these great features in just one place.
Another thing that I really like about pipenv
is the use of Pipfile
. Sometimes, it is really hard to work with...