All tracks

Programming standards

Python — the ProfessNet standard

Style, typing, project structure, FastAPI, tests and code quality.

0 / 7 lessons0%
Start track
  1. 01
    Style: PEP 8, black, ruff (formatting and linting)intro

    How to keep Python code in ZEUS uniform, automatically formatted and free of lint issues.

    10 min
  2. 02
    Static typing and mypycore

    Type annotations and mypy as a safety net for the ZEUS backend.

    11 min
  3. 03
    Project structure, venv and dependenciescore

    How we organize modules, isolate the environment and pin dependencies in ZEUS services.

    10 min
  4. 04
    FastAPI in practice (routers, Pydantic, dependencies)core

    Routers, Pydantic models and dependency injection — the patterns we use in the ZEUS API.

    13 min
  5. 05
    Asynchrony: async/await, asyncioadvanced

    How to write correct async code in ZEUS and not block the event loop.

    12 min
  6. 06
    Testing with pytest (fixtures, mocks)core

    How we write tests in ZEUS: pytest, fixtures, mocks and async tests.

    12 min
  7. 07
    Security and quality (bandit, secrets, error handling)advanced

    bandit scanning, secret management and correct error handling in ZEUS code.

    12 min

Check your knowledge — quiz

5 questions · pass mark 80%. Score saved locally.

1.Which tools do we use to format and lint Python?

2.Why do we use static typing and mypy?

3.Which web framework does the ZEUS backend use?

4.How do we isolate a Python project's dependencies?

5.What is bandit for?