Python tutorials

Code Repository for python tutorials and settings that you can copy & paste to your project.

What you can find here?

  1. Dealing with packages:

    • pip
    • poetry
    • conda
    • pipenv
    • which package manager should I choose?
    • vens - how and why
  2. Before starting the code...

    • linter
    • formatter
    • git hooks
    • vscode settings & extensions
    • default .gitignore
    • static types
  3. Good practises

    • decorators
    • context managers
    • functools
    • logging
    • types
    • helpful functions & tips
  4. Understanding modules & importing

    • init
    • modules as scripts
    • relative imports
    • why not import *?
    • pycache

Development

  • Install all required extensions ./vscode/extensions.json
  • Install pipenv
  • Run pipenv install
  • Run pre-commit install

Links