Distribution package
A distribution package is an installable Python distribution containing package code and associated metadata, dependencies, and licensing information.
Python Workout: 50 ten-minute exercises
A distribution package is a distributable wrapper containing a Python package together with metadata, dependencies, tests, licensing information, and installation instructions.
- How it is used
- Packages Python code for distribution through PyPI with metadata, dependencies, tests, licensing, and installation instructions.
- How deep it goes
- Explains the nested directory structure and gives a minimal setup.py, Poetry, and PyPI workflow.
- Examples
- Uses mypackage directories, import statements, and Poetry shell commands as concrete examples.
- What you can do after
- Operate Poetry to create, build, and publish a distribution package through PyPI.
Read how Python Workout: 50 ten-minute exercises explains distribution package →
Python Workout, Second Edition
A distribution package is an installable Python distribution containing package code, metadata, dependencies, licensing information, and installation instructions.
- How it is used
- Packages Python code for distribution through PyPI with metadata, dependencies, tests, licensing, and installation instructions.
- How deep it goes
- Distinguishes distribution and Python packages, shows their nested directories, and names setup.py without detailing its configuration.
- Examples
- Uses mypackage, __init__.py, and import statements to illustrate package structure and loading.
- What you can do after
- Operate/configure uv to create, distribute, install, and publish Python packages while managing environments.
Read how Python Workout, Second Edition explains distribution package →
Related concepts
- packageuses · A software package is a named grouping of modules or components, often with related resources and metadata, organized for import, reuse, distribution, or management.
- packagehas part · A package is a programming-language namespace and organizational unit that groups related code and may define import, compilation, or access boundaries.
- poetryimplemented by · Poetry is a Python tool for managing project dependencies, virtual environments, packaging, building, and publication.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

