Master Dataclasses in Python Part 1 - Basic Structure and Validation

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • pydantic

    Data validation using Python type hints

  • I agree that pydantic guys seem to lean towards static typing which caused a little drama recently. Fortunately, every PEP about type hints begins with a notice that Python will never be statically typed. Nevertheless, pydantic is about many other things - eg. working with FastAPI and serializing/deserializing.

  • dacite

    Simple creation of data classes from dictionaries.

  • You also can't read any nested dataclassed from a dictionary. dacite! will help with this, but witihout it you can't just initialize it with NestedDataclass(**some_dict) or somethings like this. In the way it works for Plain dataclass.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Advanced RAG with guided generation

    2 projects | dev.to | 18 Apr 2024
  • Pydantic v2 ruined the elegance of Pydantic v1

    1 project | news.ycombinator.com | 28 Jan 2024
  • Ask HN: Pydantic has too much deprecation. Why is it popular?

    1 project | news.ycombinator.com | 3 Jan 2024
  • OpenAI uses Pydantic for their ChatCompletions API

    1 project | news.ycombinator.com | 3 Dec 2023
  • Cannot get Langchain to work

    1 project | /r/learnpython | 11 Jul 2023