How tomchen/example_pypi_package works
This is a tutorial starter Python package whose runtime product is a small mutable Number class, not a larger application workflow. A package user imports the API and creates or combines Number objects; the implementation supports reading a value, in-place addition, non-mutating addition, string conversion, and summing an iterable. The package initializer re-exports the implementation. The README excerpt documents package/module naming and importing, but does not describe the class’s behavior; that behavior is evident in the sampled implementation.
Main entry points: __init__.py Package API · module1.py Number
Components 3
Other components
- Python user
- Package API
src/examplepy/__init__.py - Number
src/examplepy/module1.py
Connections 3
- Python user → Package API: imports
README.md - Package API → Number: re-exports
src/examplepy/__init__.py - Python user → Number: uses arithmetic
src/examplepy/module1.py