Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 995 Bytes

File metadata and controls

21 lines (17 loc) · 995 Bytes

Python Dataclasses examples

This repo contains some code to show off how to use Python's dataclasses.

  1. The basics of how and why of dataclasses are in basics/
  2. How to write an API client using dataclasses is in api_client/
  3. How to write a REST API for people with dataclasses using either Flask or FastAPI is in api_server/
  4. Examples of GADTs using dataclasses and pattern matching (optional/experimental requires Python 3.10b2)

Resources