Questions tagged [pydantic]

Package for data validation and settings management.

Filter by
Sorted by
Tagged with
1 vote
1 answer

Python Runtime Config

I am implementing runtime configuration for a python package. I am doing this in The idea is to load the configuration from a JSON file ...
farhanhubble's user avatar
-2 votes
2 answers

Applying the __add__ operator on all fields of a Python object

I have a class for which I want to overload __add__ to mean adding all fields between obj1 and ...
Alexis Drakopoulos's user avatar
1 vote
0 answers

Restaurant Open Hours - Converting Json to human readable format

I am seeking a general code review. Task: Write a program that takes JSON-formatted opening hours of a restaurant as an input and outputs hours in more human readable format. Input: Input JSON ...
Omer Alkin's user avatar
1 vote
0 answers

DOI name validation with pydantic

I'm trying to understand how to use pydantic for data parsing & validation. The idea I had in mind was following: I have a list of DOI names for which I need to collect metadata I could use ...
help-ukraine-now's user avatar