Skip to main content

Questions tagged [pydantic]

Package for data validation and settings management.

Filter by
Sorted by
Tagged with
2 votes
1 answer
149 views

I have written a code that deals with ABC/XYZ analysis. I want to use it in my application and would like to find out how the code can be improved, its readability and it will be better to implement ...
dynamic.aerospace.inc's user avatar
5 votes
1 answer
125 views

Problem The challenge is to create a flexible system for mapping job data from various external sources (such as Workable) into a standardised internal format. The system needed to handle: Diverse ...
Bob's user avatar
  • 221
3 votes
2 answers
194 views

I'm using pydantic in a project to check file formatting for an object, as well as pylint for linting. Whenever I read a file with an invalid format, I want to raise an exception with a descriptive ...
BobVitorBob's user avatar
2 votes
1 answer
115 views

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

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
820 views

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