From the course: Secure Coding in Python

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Installing pipenv, Python, Django, Flask, and the Django REST Framework

Installing pipenv, Python, Django, Flask, and the Django REST Framework - Python Tutorial

From the course: Secure Coding in Python

Installing pipenv, Python, Django, Flask, and the Django REST Framework

Dependency Management is important to keep things predictable. When we install a Python runtime, we want to make sure that we know precisely which Python runtime it is we're using, and we want our application to use the same runtime. The same goes for installing packages. We want to make sure that we know which package it is we're running, to keep things predictable, to track vulnerable components, and to quickly address vulnerabilities that come up. Now, tools that can help us manage dependencies are pip, poetry, and pipenv. We can also use containers to help us manage our runtime. Pipenv specifically creates a lock file to help you make sure that you're using the correct version of a dependency. It also has some great tooling to help you identify vulnerabilities. Let's have a look. So I'm actually going to use Codespaces for this one. By the way, using a remote development environment can have security benefits. Of course, one would have to make sure that the network is secure…

Contents