You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/1_intoduction_python_packaging.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,23 @@ Standardisation: Packaging is the established method of distributing code via re
38
38
39
39
Metadata: Packages include project-specific metadata, which is essential for end users.
40
40
41
+
## Python Package Structure Hierarchy
42
+
43
+
- Function : A block of reusable code that performs a single specific task.
44
+
- Module : A single Python file (.py) that groups related classes, functions and variables.
45
+
- Package : A folder/ collection containing multiple modules and an __init__.py file to organize them.
46
+
- The __init__.py files are required to make Python treat folders containing the file as packages
47
+
- Library : A collection of related packages or modules that provide broad functionality for reuse.
48
+
- Library can have Package(s), which can have module(s) which can have function(s). It can also be considered a Project.
49
+
- Python package : A Python package is a collection of related code modules (files) bundled with metadata describing how the package should be installed and used [*](https://pydevtools.com/handbook/explanation/what-is-a-python-package/)
0 commit comments