Chapter 11
Interacting with Packages
IN THIS CHAPTER
Organizing your code
Adding code from outside sources
Locating and viewing code libraries
Obtaining and reading library documentation
The examples in this book are small, but the functionality of the resulting applications is extremely limited as well. Even tiny real-world applications contain thousands of lines of code. In fact, applications that contain millions of lines of code are somewhat common. Imagine trying to work with a file large enough to contain millions of lines of code — you’d never find anything. In short, you need some method to organize code into small pieces that are easier to manage, much like the examples in this book. The Python solution is to place code in separate code groupings called packages. (In some sources, you may see modules used in place of packages; the two terms are used interchangeably.) Commonly used packages that contain source code for generic needs are called libraries.
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
Packages are contained ...