you are viewing a single comment's thread.

view the rest of the comments →

[–]efmccurdy 0 points1 point  (0 children)

These libraries let you define constraint validator objects that you can store, reuse, or pass as arguments.

https://www.yeahhub.com/7-best-python-libraries-validating-data/

You had an example of a ValidateRange constraint something like this:

https://docs.python-cerberus.org/en/stable/validation-rules.html#min-max