Course Outline
Day 1 — Robust Python Foundations & Tooling
Modern Python Features and Typing
- Typing fundamentals, generics, Protocols, and TypeGuard.
- Dataclasses, frozen dataclasses, and an overview of attrs.
- Pattern matching (PEP 634+) and idiomatic application.
Code Quality and Tooling
- Code formatters and linters: black, isort, flake8, and ruff.
- Static type checking using MyPy and pyright.
- Pre-commit hooks and streamlined developer workflows.
Project Management and Packaging
- Dependency management via Poetry and virtual environments.
- Package structure, entry points, and versioning best practices.
- Building and publishing packages to PyPI and private registries.
Day 2 — Design Patterns & Architectural Practices
Design Patterns in Python
- Creational patterns: Factory, Builder, and Singleton (with Pythonic adaptations).
- Structural patterns: Adapter, Facade, Decorator, and Proxy.
- Behavioral patterns: Strategy, Observer, and Command.
Architectural Principles
- Application of SOLID principles to Python codebases.
- Hexagonal and Clean Architecture concepts, including boundaries.
- Dependency injection patterns and configuration management strategies.
Modularity and Reuse
- Distinguishing between library design and application code.
- Defining APIs, stable interfaces, and semantic versioning.
- Managing configuration, secrets, and environment-specific settings.
Day 3 — Concurrency, Async IO, and Performance
Concurrency and Parallelism
- Threading fundamentals and the implications of the GIL.
- Multiprocessing and process pools for CPU-bound tasks.
- Guidelines for choosing between concurrent.futures and multiprocessing.
Async Programming with asyncio
- Async/await patterns, event loop mechanics, and cancellation handling.
- Designing async libraries and ensuring interoperability with synchronous code.
- IO-bound patterns, backpressure management, and rate limiting.
Profiling and Optimization
- Utilising profiling tools: cProfile, pyinstrument, perf, and memory_profiler.
- Optimising critical code paths and employing C-extensions or Numba where suitable.
- Measuring latency, throughput, and resource utilisation.
Day 4 — Testing, CI/CD, Observability, and Deployment
Testing Strategies and Automation
- Unit testing and fixture management with pytest; effective test organisation.
- Property-based testing using Hypothesis and contract testing.
- Mocking, monkeypatching, and strategies for testing asynchronous code.
CI/CD, Release, and Monitoring
- Integrating tests and quality gates into GitHub Actions or GitLab CI.
- Constructing reproducible containers using Docker and multi-stage builds.
- Application observability: structured logging, Prometheus metrics, and distributed tracing.
Security, Hardening, and Best Practices
- Dependency auditing, SBOM fundamentals, and vulnerability scanning.
- Secure coding practices for input validation and secrets management.
- Runtime hardening: resource limits, user permissions, and container security.
Capstone Project & Review
- Team laboratory: design and implement a small service utilising patterns learned during the course.
- Implementing testing, type-checking, packaging, and CI pipelines for the project.
- Final review, code critique, and formulation of an actionable improvement plan.
Summary and Next Steps
Requirements
- Proficient intermediate-level Python programming experience.
- Familiarity with object-oriented programming concepts and basic testing principles.
- Practical experience using the command line and Git version control.
Audience
- Senior Python developers.
- Software engineers accountable for Python code quality and architectural integrity.
- Technical leads and MLOps/DevOps engineers working with Python codebases.
Testimonials (2)
everything was perfect
Florin Vrincianu
Course - Python Programming Fundamentals
Hands-on exercises related to content really helps to understand more about each topic. Also, style of start class with lecture and continue with hands-on exercise is good and helpful to relate with the lecture that presented earlier.