Syllabus

  1. 01LoggingReplace print-debugging with the logging module: levels, named loggers and their hierarchy, handlers and formatters, logging exceptions with context, application-wide configuration, and filters, rotating files and library etiquette.7 lessons
    1. 01Why log instead of print
    2. 02Named loggers and the logger hierarchy
    3. 03Handlers and formatters
    4. 04Logging exceptions and context
    5. 05Configuring logging for an application
    6. 06Filters, rotating files and logging in libraries
    7. 07Logging quiz
  2. 02Functional programmingWrite code in a functional style: pure functions without side effects, immutable data including namedtuples, map/filter/reduce pipelines, recursion in place of loops, CSV and JSON processing, functools and operator, and your own higher-order functions.9 lessons
    1. 01Pure functions and side effects
    2. 02Immutable data
    3. 03Transforming data with map, filter and reduce
    4. 04From loops to pipelines
    5. 05Recursion in place of loops
    6. 06Pipelines over CSV and JSON data
    7. 07functools and operator
    8. 08Project: build your own higher-order functions
    9. 09Functional programming quiz
  3. 03Database operationsUse SQLite from Python: create tables, commit and close correctly, insert data safely with placeholders, query and aggregate, handle NULL, protect data with transactions and constraints, and analyze a dataset.8 lessons
    1. 01Databases, SQL and sqlite3
    2. 02Saving changes: commit, close and file databases
    3. 03Placeholders, executemany and SQL injection
    4. 04Querying and fetching results
    5. 05Missing data: NULL and None
    6. 06Transactions, errors and context managers
    7. 07Project: bike-share trip analysis
    8. 08Database operations quiz
  4. 04Concurrent programmingUnderstand concurrency and parallelism, I/O-bound versus CPU-bound work and the GIL; protect shared state with locks; run coroutines concurrently with asyncio; and pick between threads, processes and asyncio.6 lessons
    1. 01Concurrency, parallelism and the GIL
    2. 02Threads and locks
    3. 03Coroutines and asyncio
    4. 04Running coroutines concurrently
    5. 05Processes, executors and choosing a model
    6. 06Concurrent programming quiz
  5. 05Getting ready to deployPrepare Python code to run elsewhere: virtual environments, pyproject.toml, configuration from the environment, and serving a web app through WSGI.3 lessons
    1. 01Packaging, dependencies and configuration
    2. 02Serving a Python web app
    3. 03Deployment quiz