Uploaded July 2026 | Updated September 2026, 2 weeks ago
Download your free Python Cheat Sheet here: realpython.com/cheatsheet
Free Python Skill Test with instant level + learning plan: realpython.com/skill-test
Want to learn faster? Become a Python Expert with unlimited access to 5,000+ tutorials, videos, and exercises: realpython.com/start
Free sample code β realpython.com/bonus/python-all-attribute-code
This is a preview of the video course, "Managing Imports With Python's __all__". Python has something called wildcard imports, which look like from module import *. This type of import allows you to quickly get all the objects from a module into your namespace. However, using this import on a package can be confusing because itβs not clear what you want to import: subpackages, modules, objects? Python has the __all__ variable to work around this issue.
The __all__ variable is a list of strings where each string represents the name of a variable, function, class, or module that you want to expose to wildcard imports.
This is a portion of the complete course, which you can find here: realpython.com/courses/managing-imports-dunder-all
And the original text tutorial is here: realpython.com/python-all-attribute
The rest of the course covers:
- Introducing __all__
- Exploring __all__ in Practice
- Exercise: Define a Module's Public API
- Revisiting the shapes Package
- Applying __all__ Effectively
- Exercise: Expose Metadata to Wildcard Imports
- Managing Imports With Python's __all__ (Quiz)
π Become a Python expert with real-world tutorials, on-demand courses, interactive quizzes, and 24/7 access to a community of experts at realpython.com
β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°
π Start Here β realpython.com/start
πΊοΈ Guided Learning Paths β realpython.com/learning-paths
π§ Real Python Podcast β realpython.com/podcast
π Python Books β realpython.com/books
π Python Reference β realpython.com/ref
π§βπ» Quizzes & Exercises β realpython.com/quizzes
π Live Courses: realpython.com/live
βοΈ Reviews & Learner Stories: realpython.com/learner-stories
β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°
Download your free Python Cheat Sheet here: realpython.com/cheatsheet
Free Python Skill Test with instant level + learning plan: realpython.com/skill-test
Want to learn faster? Become a Python Expert with unlimited access to 5,000+ tutorials, videos, and exercises: realpython.com/start
Free sample code β realpython.com/bonus/python-all-attribute-code
This is a preview of the video course, "Managing Imports With Python's __all__". Python has something called wildcard imports, which look like from module import *. This type of import allows you to quickly get all the objects from a module into your namespace. However, using this import on a package can be confusing because itβs not clear what you want to import: subpackages, modules, objects? Python has the __all__ variable to work around this issue.
The __all__ variable is a list of strings where each string represents the name of a variable, function, class, or module that you want to expose to wildcard imports.
This is a portion of the complete course, which you can find here: realpython.com/courses/managing-imports-dunder-all
And the original text tutorial is here: realpython.com/python-all-attribute
The rest of the course covers:
- Introducing __all__
- Exploring __all__ in Practice
- Exercise: Define a Module's Public API
- Revisiting the shapes Package
- Applying __all__ Effectively
- Exercise: Expose Metadata to Wildcard Imports
- Managing Imports With Python's __all__ (Quiz)
π Become a Python expert with real-world tutorials, on-demand courses, interactive quizzes, and 24/7 access to a community of experts at realpython.com
β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°
π Start Here β realpython.com/start
πΊοΈ Guided Learning Paths β realpython.com/learning-paths
π§ Real Python Podcast β realpython.com/podcast
π Python Books β realpython.com/books
π Python Reference β realpython.com/ref
π§βπ» Quizzes & Exercises β realpython.com/quizzes
π Live Courses: realpython.com/live
βοΈ Reviews & Learner Stories: realpython.com/learner-stories
β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°β°










