Course Info

Main advantageEnhance Python proficiency in your company to enable developers to write code that is not only better but also easier, faster, and more cost-effective to maintain.
Durationa) half-days: 5 days x 4 hours (including breaks)
b) full-days: 3 days x 7 hours (including breaks)
Formatworkshop (70% workshop / 30% lecture)
Venuea) online or
b) client’s office or other place chosen by the client, in Europe
Enrollmentin-house course for a group of people within one company
Group sizeup to 10 delegates
Course languageEnglish, Polish or both during the same training

Course Syllabus

  1. Advanced Tooling
    1. Multiple Python Installations
    2. Common Caveats with Python Installation on Windows (i.e. Python not on %PATH%)
    3. IDEs (Integrated Development Environments)
    4. Overview of Most Important IDEs (PyCharm, Visual Studio Code with Python Plugin and Jupyter Notebook)
    5. Using Visual Studio Code: Program Layout, Installing Python Plugin, Accessing Terminal, Changing Default Terminal, Turning On Auto-Save etc.
    6. IPython
    7. Jupyter Notebook: Installation, Use Cases, Auto-Completion, Displaying Inline Documentation, Restarting Underlying IPython Session, Integration with Matplotlib, Support for Different Kernels, nbextensions, Table of Contents, Exporting Notebooks to HTML and Python Code etc.
    8. Version Pinning
    9. pip Package Manager and PyPi Repository
    10. Isolated Python Installations with virtualenv
    11. Anaconda Distribution
    12. conda Package Manager and Anaconda Repository
    13. Isolated Python Environments with conda
    14. Anaconda vs “Pure” Python Installation
    15. conda vs pip
    16. Python Releases
    17. Python 2 vs Python 3
    18. Main Differences between Python 2 and 3
    19. Porting Python 2 to 3
    20. Python Documentation
    21. PEP8 for Formatting Rules
  2. Functions
    1. Positional and Named Arguments
    2. Returning Multiple Values
    3. Default Values
    4. Default Value Trap
    5. Lambdas
    6. Sorting by Key
    7. Global and Local Scope
    8. Global Keyword
    9. *args in Function Signature, Function Call and Other Places
    10. **kwargs in Function Signature, Function Call and Other Places
    11. Positional Only Arguments
    12. Function Annotations
    13. Introduction to Static Typing with mypy
    14. Nonlocal Scope and nonlocal Keyword
    15. callable Function
    16. Introduction to Nested Functions and Closures
  3. Decorators
    1. Decorator Syntax, Definition and Usage
    2. Simple Decorators for Registering Functions
    3. Nested Functions
    4. Closures
    5. Non-parametrised Decorators Delegating to the Decorated Function
    6. Class-based Implementation of the Above
    7. Proper Argument Passing
    8. Parametrised Decorators with Three Nested Functions
    9. Class-based Implementation of the Above
    10. Decorating Methods
    11. Decorating Classes
    12. Template Method Design Pattern as one of the Use Cases
    13. Decorator Use Cases
  4. Intermediate Object Oriented Programming (we skip easier topics if the group is advanced enough)
    1. __str__ vs __repr__
    2. __str__ Method vs str() Function
    3. Classes Imitating Functions with __call__ Special Method
    4. Encapsulation – Interface vs Implementation
    5. Protected Attributes
    6. Private Attributes
    7. Read-Only @property
    8. Read-and-Write @property
    9. Introducing Encapsulation to an Existing Class without Breaking the Interface with @property
    10. Variable Annotations
    11. Dataclasses: Usage, Default Values, Default Values Trap, Default Value Factory, Fields Customisation, __post_init__
    12. Introduction to Single Inheritance
    13. Attribute Lookup Mechanism
    14. Code Reusage with Inheritance
    15. Method Overloading
    16. super()
  5. Advanced Object Oriented Programming
    1. Special Methods Recap
    2. object Class
    3. defaultdict Data Structure
    4. Inheriting from Builtin Classes, i.e. Data Structures
    5. @classmethod
    6. Alternative Constructors with @classmethod
    7. @staticmethod
    8. Descriptors
    9. Bound vs Unbound Method
    10. Slots
    11. Including __dict__ in Slots
    12. Abstract Base Classes
    13. Multiple Inheritance: Fundamentals, MRO (Method Resolution Order), Diamond Problem, super() Behaviour
    14. Mixin Classes
    15. Metaclasses: type Metaclass, Writing Your Own Function-based and Class-based Metaclasses, Use Cases, Simpler Approaches
  6. Iterators
    1. Iteration Protocol
    2. Iterable vs Iterator
    3. Class-based Implementation of One-Time Iterable
    4. Class-based Implementation of Reusable Iterable
  7. Generators (only in 5 days-long version)
    1. Generators and yield Instruction
    2. Iteration over Generators
    3. Generators vs Iterators
    4. Generator-based Implementation of One-Time Iterable
    5. Generator-based Implementation of Reusable Iterable
    6. Passing Data to a Generator
    7. Introduction to Coroutines
  8. Advanced Code Organisation
    1. Modules
    2. Three Import Styles
    3. Renaming in Imports
    4. Import vs Execution and __name__ Variable
    5. Module Search Order
    6. sys.path List
    7. PYTHONPATH Environment Variable
    8. Packages
    9. Packages Initialisation
    10. __init__ Files
    11. Relative Imports
  9. Packaging and Publishing Python Code (only in 5 days long version)
    1. requirements.txt
    2. setup.py
    3. PyPI
    4. Wheel Format
    5. Packaging Python Projects with setuptools and Generating Distribution Archives
    6. Semantic Versioning
    7. twine for Automating Publishing Python Packages
  10. Testing with pytest
    1. What Testing is for?
    2. Overview of Available Frameworks (unittest vs pytest vs doctest)
    3. pytest Fundamentals
    4. Launching Tests
    5. Fail Fast Mode (-x Switch)
    6. Printing Local Variables (-l Switch)
    7. Quiet Output (-q Switch)
    8. Testing both Happy and Sad Paths
    9. Testing Edge and Corner Cases
    10. Fixtures
    11. Unique Temporary Directory for Test Run
    12. Fixtures Scopes – Sharing Fixture Instances between Tests
    13. Fixture Dependencies
    14. Fixture Finalisation
    15. Grouping Tests into Classes
    16. Skipping Tests
  11. Parallel Programming (only in 5 days long version)
    1. threading Module
    2. Creating, Starting and Joining Threads
    3. Producent and Consument Pattern
    4. Communication via Queues
    5. Daemon Threads
    6. Proper Threads Starting and Joining
    7. concurrent.futures Module
    8. pool.map
    9. pool.submit
    10. Global Interpreter Lock
    11. Parallelisation of IO Operations vs Computations
    12. ThreadPoolExecutor vs ProcessPoolExecutor
    13. Measuring Time Execution
    14. Debugging Multithreaded Programs in PyCharm
  12. Regular Expressions (only in 5 days long version)
    1. Idea of Regular Expressions
    2. Limitations
    3. re Module
    4. re.search() vs re.match()
    5. re.findall()
    6. Pattern Compilation
    7. Making Long Patterns more Readable with re.VERBOSE
    8. Extracting Data with Unnamed Groups and Named Groups
    9. Matching to the Beginning and End of String (^ and $)
    10. Optional Elements (?), One-or-More Repetition (*) and Zero-One-or-More Repetition (*)
    11. Advanced Repetition with {}, {n,}, {,n} and {n,m} Syntax
    12. Alternative with [] and (a|b) Syntaxes
    13. Character Groups with [a-z]
    14. Negation with [^]
    15. Character Classes: \d, \D, \s, \S etc.
    16. Escaping
    17. Syntax Cheat Sheet
    18. Processing Files with Regular Expressions
  13. Using and Creating REST APIs (only in 5 days long version)
    1. Recap of JSON, JSON Data Types, Loading and Dumping JSON in Python
    2. Using Postman for Accessing Web APIs
    3. YAML Format
    4. Loading and Dumping YAML Format
    5. JSON Schema
    6. Validation with jsonschema
    7. Loading JSON to Your Own Classes with dataclasses-jsonschema
    8. Flask Web Application Structure
    9. Starting and Stopping Flask Development Server
    10. flask_restful Library
  14. Miscellaneous (only in 5 days long version)
    1. Persistence with Pickle
    2. Working with Files and Directories
    3. Launching and Controlling Subprocesses in a Blocking Way
    4. Launching and Controlling Subprocesses in a non-blocking Way
    5. Reading and Writing CSV Files with builtin csv Module
    6. Reading and Writing CSV and Excel Files with pandas

Collaboration Process

  1. Form. You fill out the form at the bottom of the page.
  2. Free Consultation. We arrange a free, non-binding online meeting that should last no longer than 50 minutes. From the first contact, full confidentiality is observed, and if necessary, we can start by signing an NDA. The purpose of this conversation is to thoroughly discuss your situation and needs, so we can prepare a solution for you in the next step.
  3. Solution Proposal + Follow-up Consultation. After the consultation, we analyze your situation and prepare a tailored solution proposal (training and/or consulting). We discuss this proposal during another free consultation.
  4. Formalities. Signing the contract and making the payment (prepayment). The training date is reserved upon payment.
  5. Training Sample. If needed, we can precede the main training with a 60-minute training sample to ensure that it is worth your while to cooperate with us.
  6. Training and/or Consulting Activities.
  7. Post-training Support – tailored individually to your needs.

References

Krzysztof Gębal

Very inspiring training. I really appreciate the way Chris managed to walk us through the complex world of machine learning using Python. Good course materials updated real time. Highly recommend.

Krzysztof Gębal
Finance Director at DNB Bank Polska S.A.

Arkadiusz Baraniecki

Well prepared training and reasonably passed knowledge, thanks to which we develop better services.

Arkadiusz Baraniecki
Infrastructure Team Manager at allegro.pl

Nicolas Leveroni

Chris recently taught a four day class on Machine Learning with Python four our team. The class was very good with the right balance of theory and practice. I cannot think of a better way to give a four day class about such an extensive topic.

Nicolas Leveroni
Head of Krakow Product Control Analytics at HSBC

See more references ->

Schedule a Free Consultation