1 The what and why of Python packages
This chapter covers
- Packaging code to make it more accessible to others
- Using packages to make your own projects more manageable
- Building Python packages for different platforms
Imagine that you’ve written a groundbreaking piece of Python software for use in self-driving cars. Your latest work is going to change the world, and you want as many people using it as possible. You’ve convinced CarCorp to use your solution, and they want to retrieve the code to get started with it.
When CarCorp calls to ask how to install and use your code, you go through all the gory details of copying each file to the right directory, making some files executable so they can be run as commands, and so on. Because you wrote ...
Get Publishing Python Packages now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.