Data validation and conversion is one of the truly tricky part of getting external data into your app. This might come from a REST API, a file on disk, or somewhere else. This includes checking for required fields, correct data types, converting from compatible types (for example, strings to numbers), and much more. Pydantic is one of the best ways to do this in modern Python using dataclass-like constructs and type annotations to make it all seamless and automatic. <br/> <br/> We welcome Samuel Colvin, creator of Pydantic, to the show. We'll dive into the history of Pydantic and it's many uses and benefits.<br/> <br/> <strong>Links from the show</strong><br/> <br/> <div><b>Samuel on Twitter</b>: <a href="https://twitter.com/samuel_colvin" target="_blank" rel="noopener">@samuel_colvin</a><br/> <b>pydantic</b>: <a href="https://ift.tt/2rDd9EG" target="_blank" rel="noopener">pydantic-docs.helpmanual.io</a><br/> <b>Contributing / help wanted @ pydantic</b>: <a href="https://ift.tt/3sKOpWM" target="_blank" rel="noopener">github.com</a><br/> <b>python-devtools package</b>: <a href="https://ift.tt/2yGbZN0" target="_blank" rel="noopener">python-devtools.helpmanual.io</a><br/> <br/> <b>IMPORTANT: PEP 563, PEP 649 and the future of pydantic #2678</b><br/> <b>GitHub issue on Typing</b>: <a href="https://ift.tt/3skWhyb" target="_blank" rel="noopener">github.com</a><br/> <br/> <b>YouTube live stream video</b>: <a href="https://www.youtube.com/watch?v=3S8QZeHCbAI" target="_blank" rel="noopener">youtube.com</a><br/></div><br/> <strong>Sponsors</strong><br/> <br/> <a href='https://ift.tt/3drA2lU> <a href='https://ift.tt/2PVc9qH Python Training</a>
from Planet Python
via read more
Subscribe to:
Post Comments (Atom)
TestDriven.io: Working with Static and Media Files in Django
This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...
-
Podcasts are a great way to immerse yourself in an industry, especially when it comes to data science. The field moves extremely quickly, an...
-
Dialogs are useful GUI components that allow you to communicate with the user (hence the name dialog ). They are commonly used for file Ope...
-
This tutorial outlines object oriented programming (OOP) in Python with examples. It is a step by step guide which was designed for people w...
No comments:
Post a Comment