Skip to content

222: Import within a Python package

12 min Episode 222
222: Import within a Python package

Listen to “222: Import within a Python package”

Episode synopsis


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?

ZARZA Studio — Your station on air today: library, music clock, schedule, studio and reports, from the browser.

Meet ZARZA Studio
— on air now — stations in the catalogue 2,021,872 podcasts — countries