Skip to main content Brad's PyNotes

Posts on Imports

  1. Tutorial: Organizing and Reusing Code with Python Modules

    TL;DR

    Python modules are files containing Python code that can be imported and reused, organized into packages (directories with init.py), with various import styles (import, from…import, as) and special attributes like name and all.