Web, data & APIs · Course 5 of 8

Files, formats and binary data

Eight practical standard-library lessons: TOML, XML, ZIP, gzip, binary records, JSON Lines, Base64 and HMAC. Every example uses local or in-memory data.

0 of 8 lessons passed

Start lesson 1

Lessons

Progress and your code are kept in this browser only.

  1. Read real TOML configuration
  2. Read structured XML with ElementTree
  3. Round-trip a ZIP archive in memory
  4. Compress a JSON payload reproducibly
  5. Define a portable binary record
  6. Parse JSON Lines with useful line numbers
  7. Encode binary bytes for a text boundary
  8. Authenticate exact bytes with HMAC

All courses