Imports, packages, virtual environments, and publishing to PyPI
02Stage 2 of the roadmap: Real-World CodeLearn how Python's import system works. Master import, from...import, aliases, __name__ == '__main__', and how Python finds your modules.
Learn how to create Python packages with __init__.py, organize modules into folders, and use relative vs absolute imports - with runnable examples and practice exercises.
Learn how to create Python virtual environments with venv, install packages with pip, manage dependencies with requirements.txt, and keep your projects isolated.
Learn how to package your Python project with pyproject.toml, build distributions, upload to PyPI, and manage versions - with runnable examples and practice exercises.