Front matter
foreword
preface
acknowledgments
about this book
about the author
about the cover illustration
Part 1. Foundations
1 The what and why of Python packages
1.1 What is a package, anyway?
Standardizing packaging for automation
The contents of a distribution package
The challenges of sharing software
1.2 How packaging helps you
Enforcing cohesion and encapsulation through packaging
Promoting clear ownership of code
Decoupling implementation from usage
Filling roles by composing small packages
2 Preparing for package development
2.1 Managing Python virtual environments
Creating virtual environments with venv
Optional core metadata