Packages
A Python package is a convenient way to distribute software and reuse code in a more general way. Packages that have been built can be published to an artifact repository (such as an internal PyPi server for the company), from where it will be downloaded by the rest of the applications that require it.
The motivation behind this approach has many elements to it—it's about reusing code at large, and also achieving conceptual integrity.
Here, we discuss the basics of packaging a Python project that can be published in a repository. The default repository might be PyPi (https://pypi.org/), but also internal; or custom setups will work with the same basics.
We are going to simulate that we have created a small library, and we will use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access