Packages in Python — a practical guide to Python packages with clear examples you can reuse in real projects.
Python Tutorial Series (34/95). Prefer one article? Read the complete Python tutorial.
Short description
A package is a directory of modules. Use clear package names and absolute/relative imports thoughtfully.
Package layout
myapp/
__init__.py
utils/
__init__.py
helpers.py
main.py
# from myapp.utils.helpers import clean_text