Summary
In this chapter, we have managed to build a fully fledged pip
Python module that has continuous integration. We initially set up a GitHub repository and created a virtual environment. This is an essential skill for most Python projects, and you should be using GitHub repositories and virtual environments even if your project is not a pip
module. You will be able to share your project and work with other team members. We then defined our setup.py
file so our code could be installed via pip
. Even if our GitHub repository is private, people who have access to the GitHub repository could freely install our code. This gives us even more power when it comes to distributing our code.
When we have an interface defined, our users do not need to know much about our code, just how to use the interface. This also enables us to prevent repeated code. For instance, if we build a user data model with a database driver, we can package it as a pip
module and use this in multiple web applications...