News for hackers. Stuff that matters.
Re:Best Practices for Working with Configuration in Python A... by albi_lander on Friday April 24, 2020 @08:45AM (#22967352)
dataclass_json is also very useful for schema validation. It combines python's native dataclass objects with marshmallow's schema to provide additional functionalities simply through a @dataclass_json decorator on your dataclass.

https://lidatong.github.io/dataclasses-json/

Re:Best Practices for Working with Configuration in Python A... by madman_bob on Friday April 24, 2020 @10:29AM (#22968281)
I made the similar dataclasses_serialization library. It doesn't require a special decorator on your classes, and is extensible for custom classes, and custom serialization methods (JSON and BSON provided by default).

https://github.com/madman-bob/python-dataclasses-serializati...

Re:Best Practices for Working with Configuration in Python A... by mands on Friday April 24, 2020 @12:06PM (#22969543)
I do something similar with dataclasses using the `dacite` (https://github.com/konradhalas/dacite) library as a constructor for python dicts to dataclasses with runtime type-checking.

Works really well with marshmallow for additional validation.