Python dataclasses

Open-source Python projects categorized as dataclasses

Top 23 Python dataclass Projects

dataclasses
  1. orjson

    Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy

    Project mention: Web scraping of a dynamic website using Python with HTTP Client | dev.to | 2024-09-28

    The library already has support for an HTTP client that allows bypassing Cloudflare - CurlImpersonateHttpClient. Since we have to work with JSON responses we could use parsel_crawler added in version 0.3.0, but I think this is excessive for such tasks, besides I like the high speed of orjson.. Therefore, we'll need to implement our crawler rather than using one of the ready-made ones.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. notion-sdk-py

    The official Notion API client library, but rewritten in Python! (sync + async)

  4. dacite

    Simple creation of data classes from dictionaries.

  5. dataclasses-json

    Easily serialize Data Classes to and from JSON

  6. polyfactory

    Simple and powerful factories for mock data generation

  7. mashumaro

    Fast and well tested serialization library

  8. pyserde

    Yet another serialization library on top of dataclasses, inspired by serde-rs.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. streamlit-pydantic

    πŸͺ„ Auto-generate Streamlit UI from Pydantic Models and Dataclasses.

  11. SimpleParsing

    Simple, Elegant, Typed Argument Parsing with argparse

  12. traits

    Observable typed attributes for Python classes (by enthought)

  13. djangorestframework-dataclasses

    Dataclasses serializer for Django REST framework

  14. hydra-zen

    Create powerful Hydra applications without the yaml files and boilerplate code.

  15. python-youtube

    A simple Python wrapper for YouTube Data API :sparkles: :cake: :sparkles: .

  16. apischema

    JSON (de)serialization, GraphQL and JSON schema generation using Python typing.

  17. pyrallis

    Pyrallis is a framework for structured configuration parsing from both cmd and files. Simply define your desired configuration structure as a dataclass and let pyrallis do the rest!

  18. dataclass-csv

    Map CSV to Data Classes

  19. desert

    Deserialize to objects while staying DRY (by python-desert)

  20. danio

    Danio is a ORM for python asyncio world.

  21. argparse_dataclass

    Declarative CLIs with argparse and dataclasses

  22. dataclassy

    A fast and flexible reimplementation of data classes

  23. dataconf

    Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict/cli support.

  24. chili

    Object serialization/deserialization tools for python. (by kodemore)

  25. pydantic_schemaorg

    Schema.org classes in pydantic

    Project mention: Show HN: Jsonblog-schema – a JSON schema for making your blog from one file | news.ycombinator.com | 2025-02-25

    below the list of Properties on a "JSON-LD" tabs

    The JSON schema for schema.org in lexiq-legal/pydantic_schemaorg aren't yet rebuilt for pydantic v2 FWIU; https://github.com/lexiq-legal/pydantic_schemaorg

    W3C SHACL Shapes and Constraints Language is the Linked Data schema valuation spec which is an alternative to JSON schema, of which there are many implementations.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python dataclasses discussion

Log in or Post with

Python dataclasses related posts

  • Web scraping of a dynamic website using Python with HTTP Client

    5 projects | dev.to | 28 Sep 2024
  • Pyserde

    1 project | news.ycombinator.com | 6 May 2024
  • GitHub - anatoly-scherbakov/documented: Templated docstrings for Python classes

    1 project | /r/Python | 23 Nov 2023
  • pyserde: Serialization library on top of dataclasses, inspired by serde-rs

    1 project | news.ycombinator.com | 18 Nov 2023
  • argparse_dataclass: declarative CLIs with argparse and dataclasses (e.g. similar to Rust's structopt)

    3 projects | /r/Python | 1 Jun 2023
  • Pyserde: Serialization library on top of dataclasses, inspired by serde-rs

    1 project | news.ycombinator.com | 21 May 2023
  • RE: If you had to pick a library from another language (Rust, JS, etc.) that isn’t currently available in Python and have it instantly converted into Python for you to use, what would it be?

    8 projects | /r/Python | 20 Apr 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 13 Jun 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more β†’

Index

What are some of the best open-source dataclass projects in Python? This list will help you:

# Project Stars
1 orjson 6,975
2 notion-sdk-py 1,993
3 dacite 1,873
4 dataclasses-json 1,430
5 polyfactory 1,224
6 mashumaro 855
7 pyserde 782
8 streamlit-pydantic 547
9 SimpleParsing 469
10 traits 452
11 djangorestframework-dataclasses 446
12 hydra-zen 385
13 python-youtube 336
14 apischema 234
15 pyrallis 232
16 dataclass-csv 196
17 desert 158
18 danio 114
19 argparse_dataclass 90
20 dataclassy 84
21 dataconf 81
22 chili 71
23 pydantic_schemaorg 68

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?