Intro Python: Modules and Packages
Buy now
Learn more
Introduction and welcome
Section 1: Using modules
Section 1 — Using modules.ipynb
1. What are modules?
2. Basic importing
03 sys.path
04 import ... as
05 from .. import
06 Why from ... import * is bad
07 Python's standard library
08 Exercises 1
exercise-1.txt
09 Exercise solutions 1
Section 2: Writing modules
Section 2 — Writing modules.ipynb
10 The simplest module
11 Globals, attributes, and reloading
12 sys.modules
13 Docstrings
14 Modules are executed when imported
15 __name__ and "__main__"
16 Using __name__ and "__main__"
17 Mutual imports and __name__
18 Warnings with names
19 Exercises 2
exercise-2.txt
20 Exercise 2 solutions
Section 3: PyPI
Section 3 — PyPI.ipynb
21 Intro to PyPI
22 Installing packages with pip
23 Trusting PyPI code
24 awesome-python.com
25 Installing into your own directory
26 Versions and upgrading
27 Exercises 3
exercise-3.txt
28 Exercise 3 solutions
Section 4: Virtual environments
29 Intro to virtual environments
30 Creating virtual environments
31 Activating and deactivating venvs
32 Generating and using a requirements.txt file
33 Exercises 4
exercise-4.txt
34 Exercise 4 solutions
Section 5: Packages
Section 5 — Packages.ipynb
35 Packages
36 More complex package hierarchies
37 __init__.py files
38 Hierarchies and relative imports
39 Exercises 5
exercise-5.txt
40 Exercise solutions 5
Section 6: Advanced topics
Section 6 — Advanced topics.ipynb
41 sys.modules
42 __all__
43 .pyc files
44 Defined dunder names in modules and packages
Section 7: Distributions
45 Packages vs. distributions
46 Installing manually with setup.py files
47 Wheelfiles
48 Introduction to Poetry
49 Creating a distribution
50 Publishing to PyPI
51 Dependencies with Poetry
52 Conclusion
Products
Course
Section
Lesson
36 More complex package hierarchies
36 More complex package hierarchies
Intro Python: Modules and Packages
Buy now
Learn more
Introduction and welcome
Section 1: Using modules
Section 1 — Using modules.ipynb
1. What are modules?
2. Basic importing
03 sys.path
04 import ... as
05 from .. import
06 Why from ... import * is bad
07 Python's standard library
08 Exercises 1
exercise-1.txt
09 Exercise solutions 1
Section 2: Writing modules
Section 2 — Writing modules.ipynb
10 The simplest module
11 Globals, attributes, and reloading
12 sys.modules
13 Docstrings
14 Modules are executed when imported
15 __name__ and "__main__"
16 Using __name__ and "__main__"
17 Mutual imports and __name__
18 Warnings with names
19 Exercises 2
exercise-2.txt
20 Exercise 2 solutions
Section 3: PyPI
Section 3 — PyPI.ipynb
21 Intro to PyPI
22 Installing packages with pip
23 Trusting PyPI code
24 awesome-python.com
25 Installing into your own directory
26 Versions and upgrading
27 Exercises 3
exercise-3.txt
28 Exercise 3 solutions
Section 4: Virtual environments
29 Intro to virtual environments
30 Creating virtual environments
31 Activating and deactivating venvs
32 Generating and using a requirements.txt file
33 Exercises 4
exercise-4.txt
34 Exercise 4 solutions
Section 5: Packages
Section 5 — Packages.ipynb
35 Packages
36 More complex package hierarchies
37 __init__.py files
38 Hierarchies and relative imports
39 Exercises 5
exercise-5.txt
40 Exercise solutions 5
Section 6: Advanced topics
Section 6 — Advanced topics.ipynb
41 sys.modules
42 __all__
43 .pyc files
44 Defined dunder names in modules and packages
Section 7: Distributions
45 Packages vs. distributions
46 Installing manually with setup.py files
47 Wheelfiles
48 Introduction to Poetry
49 Creating a distribution
50 Publishing to PyPI
51 Dependencies with Poetry
52 Conclusion
Lesson unavailable
Please
login to your account
or
buy the course
.