5 Simple Rules For Building Great Python Packages

Source

1. __init__.py is Only for Imports
2. Use __init__.py to Enforce Import Order
3. Use One Module to Define All Exceptions
4. Only Relative imports within the package
5. Keep Modules Small

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.