Re: Pydantic - Type Hints For Validating Data

2023-04-15 Thread David Szent-Györgyi
It does sound interesting. It even supports "custom" (user-defined) types. 

A plug-in for Pydantic supports Hypothesis 
, «a Python library for 
creating unit tests which are simpler to write and more powerful when run, 
finding edge cases in your code you wouldn’t have thought to look for. It 
is stable, powerful and easy to add to any existing test suite. It works by 
letting you write tests that assert that something should be true for every 
case, not just the ones you happen to think of.»

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/252da855-1da7-4a7a-b7c2-24e3fe4f5ed1n%40googlegroups.com.


Re: Pydantic - Type Hints For Validating Data

2023-04-10 Thread Edward K. Ream
On Mon, Apr 10, 2023 at 8:06 AM Thomas Passin  wrote:

> I just learned of the Pydantic   project.  It
> uses Python's type hints to validate structured data at the point of use.
> It sounds interesting.


Thanks for the link.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3xBQuLFk8PKEFRk0aJ2N3rbSNLixo4k4xqaPmipnzYhQ%40mail.gmail.com.


Pydantic - Type Hints For Validating Data

2023-04-10 Thread Thomas Passin
I just learned of the Pydantic   project.  It 
uses Python's type hints to validate structured data at the point of use.  
It sounds interesting.

"Data validation and settings management using Python type annotations.

*pydantic* enforces type hints at runtime, and provides user friendly 
errors when data is invalid.

Define how data should be in pure, canonical Python; validate it with 
*pydantic*."


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/59215e0b-aad7-47e8-9523-8837e1986a47n%40googlegroups.com.