Test & Code
Test & Code
Brian Okken
222: Import within a Python package
12 minutes Posted Sep 7, 2024 at 4:27 pm.
0:00
12:27
Download MP3
Show notes

In this episode we're talking about importing part of a package into another part of the same package.


We'll look at: `from . import module` and `from .module import something`

and also:  `import package` to access the external API from with the package.


Why would we use `import package` if `from . import api` would work fine?


 Learn pytest

★ Support this podcast on Patreon ★