https://github.com/vladistan/slides-python-imports-talk
Slides, sample code and notebook from my Python Imports talk
https://github.com/vladistan/slides-python-imports-talk
python python-imports samples slides
Last synced: 9 months ago
JSON representation
Slides, sample code and notebook from my Python Imports talk
- Host: GitHub
- URL: https://github.com/vladistan/slides-python-imports-talk
- Owner: vladistan
- Created: 2019-08-21T23:59:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T00:43:02.000Z (over 6 years ago)
- Last Synced: 2025-01-21T19:17:01.037Z (11 months ago)
- Topics: python, python-imports, samples, slides
- Language: Jupyter Notebook
- Homepage:
- Size: 9.96 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slides-python-imports-talk
Here are the slides, example code programs and notebooks from [this talk](http://bit.ly/2zmurZh).
# Contents
## [Slides](https://github.com/vladistan/slides-python-imports-talk)
## Code Samples
1. [Modules are loaded exactly once](http://bit.ly/2HoxOmY)
2. [Custom import](http://bit.ly/2U8nlBj)
3. [Stitching submodules](http://bit.ly/2L1tjkG)
4. [Export decorator](http://bit.ly/2PgYH2N)
5. [Fun with directories and zip](http://bit.ly/2ZvhPtt)
6. [Auto installing](http://bit.ly/2HmNMxO)
7. [How you run the module affects import subsystem](http://bit.ly/2ZrvaD7)
## Notebooks
1. [Modules have own unique view of global variables](http://bit.ly/2ZgBgLn)
2. [Explore guts of loaded modules](http://bit.ly/2NAuLfu)
3. [`From x import y`, actually loads entire module](http://bit.ly/2Zw5hpN)
4. [Live module reloading gotchas](http://bit.ly/30FW4bR)
# References:
Image [source credits](http://bit.ly/30snpy7)
[David Beazley Talk, "Python Imports, Modules, Packages, live and let die"](http://bit.ly/2MATksL)
[Erik Westra's Book "Modular Programming with Python"](https://amzn.to/2zejqcw)