Modules, Packages, Virtual Environments, and Package Management
Welcome to the Python Fundamentals II course on creating modules and packages, virtual environments, and package management. Although this course is a seamless continuation of the course Python Fundamentals I: Python course for beginners, it can easily be followed by anyone with a decent base-level knowledge of the language that is obtained elsewhere.
As you might have experienced, learning Python, the language itself, is not enough to get truly productive as a Python programmer. Although Python is a versatile and powerful language in itself, it’s the rich ecosystem of libraries and modules that allows you to build the coolest projects with the snip of a finger.
Besides writing all that cool code, you’ll also want to organize your code better, especially when your programs get bigger. To do so, I’ll introduce you to modules and packages which allow you to organize and structure your code.
This course extensively covers creating modules and packages, using virtual environments and Python package managers to make your life as a programmer easier. I’ll explain in easy-to-understand language how virtual environments and Python packages work. You’ll get a solid understanding of these concepts, greatly advancing your productivity as a Python programmer.
The main topics of this course are:
- Creating and using modules
- Structuring your code in packages and modules
- Virtual Environments: why you need them, how they work, how to create and use them
- Installing packages using Pip
- Running your project and managing dependencies with Poetry or Pipenv
- Converting your project into a sharable executable with PyInstaller