Altreconomia · @altreconomia
255 followers · 1379 posts · Server sociale.network
Altreconomia · @altreconomia
252 followers · 1364 posts · Server sociale.network
Melting Pot Europa - Rss Bot · @meltingpot
274 followers · 5087 posts · Server mastodon.bida.im
Melting Pot Europa - Rss Bot · @meltingpot
273 followers · 5074 posts · Server mastodon.bida.im
Melting Pot Europa - Rss Bot · @meltingpot
273 followers · 5073 posts · Server mastodon.bida.im
Melting Pot Europa - Rss Bot · @meltingpot
273 followers · 5053 posts · Server mastodon.bida.im
Altreconomia · @altreconomia
246 followers · 1319 posts · Server sociale.network
Melting Pot Europa - Rss Bot · @meltingpot
272 followers · 5020 posts · Server mastodon.bida.im
Melting Pot Europa - Rss Bot · @meltingpot
269 followers · 4999 posts · Server mastodon.bida.im
Altreconomia · @altreconomia
237 followers · 1272 posts · Server sociale.network
Altreconomia · @altreconomia
236 followers · 1267 posts · Server sociale.network
Melting Pot Europa - Rss Bot · @meltingpot
268 followers · 4993 posts · Server mastodon.bida.im
🌱 pvergain ⏚ · @pvergain
76 followers · 1183 posts · Server qoto.org

version 2.0 (2023-06-30)

"Pydantic is the most widely used library for ."

- docs.pydantic.dev/2.0/blog/pyd

- docs.pydantic.dev/latest/api/n

- github.com/Kludex/awesome-pyda

# Why use Pydantic ?

Powered by type hints — with Pydantic, schema validation and serialization are controlled by type annotations; less to learn, less code to write and integration with your IDE and static analysis tools.

Speed — Pydantic's core validation logic is written in Rust, as a result Pydantic is among the fastest data validation libraries for Python.

JSON Schema — Pydantic models can emit JSON Schema allowing for easy integration with other tools.

Strict and Lax mode — Pydantic can run in either strict=True mode (where data is not converted) or strict=False mode where Pydantic tries to coerce data to the correct type where appropriate.

Dataclasses, TypedDicts and more — Pydantic supports validation of many standard library types including dataclass and TypedDict.

Customisation — Pydantic allows custom validators and serializers to alter how data is processed in many powerful ways.

Ecosystem — around 8,000 packages on PyPI use Pydantic, including massively popular libraries like FastAPI, huggingface/transformers, Django Ninja, SQLModel, and LangChain.

Battle tested — Pydantic is downloaded >70m times/month and is used by all FAANG companies and 20 of the 25 largest companies on NASDAQ — if you're trying to do something with Pydantic, someone else has probably already done it.

# Some projects

- github.com/jordaneremieff/djan (Pydantic model support for Django)

- github.com/litestar-org/polyfa (Simple and powerful factories for mock data generation)

- github.com/koxudaxi/datamodel-
(Pydantic model and dataclasses.dataclass generator for easy conversion of , , JSON , and data sources)

- github.com/ghandic/jsf (Creates fake JSON files from a JSON schema)

- github.com/lincolnloop/goodcon (Transparently load variables from environment or JSON/YAML/TOML file)

- litestar.dev/ (Light, Flexible and Extensible framework Effortlessly Build Performant APIs)

#python #typing #data #validation #pydantic #json #openapi #schema #yaml #asgi #api

Last updated 1 year ago

Fredrik Averpil :python: · @fredrikaverpil
159 followers · 362 posts · Server fosstodon.org

I'm working on a project where we want to replace an ORM with an ORM, but it's tangled into everything and called from all over the business logic. If the ORM would've been decoupled from the objects tossed around in the business logic, it would've been much easier to replace the ORM.

This blog post outlines an example of how this can be done with . I'm also covering decoupling the data store communication via the "Repository pattern".

fredrikaverpil.github.io/blog/

#python #wsgi #asgi #pydantic

Last updated 1 year ago

Altreconomia · @altreconomia
228 followers · 1240 posts · Server sociale.network
Melting Pot Europa - Rss Bot · @meltingpot
269 followers · 4920 posts · Server mastodon.bida.im

Accesso civico ASGI: le schede dei Paesi di origine “sicuri” meltingpot.org/2023/05/accesso -AssociazionepergliStudiGiuridicisull’Immigrazione (CountryofOriginInformation)

#asgi #coi #guideestrumentiasilo #Guidalegislativa #dirittodiasilo #decreti

Last updated 1 year ago

Melting Pot Europa - Rss Bot · @meltingpot
269 followers · 4911 posts · Server mastodon.bida.im

Le nuove forme di trattenimento e di procedure in frontiera nel decreto n. 20/2023 (DL Cutro) meltingpot.org/2023/05/le-nuov -AssociazionepergliStudiGiuridicisull’Immigrazione ,n.20(DecretoCutro) -detenzione

#asgi #DL10marzo2023 #Incontriinformativieformativi #trattenimento #dirittodiasilo #italia

Last updated 1 year ago

Paolo Melchiorre #PyConDE 2023 · @paulox
948 followers · 1302 posts · Server fosstodon.org

Adrian Garcia Badaracco, Pydantic and Starlette contributor, is presenting the talk "Inside your web framework: intro to the ASGI spec, middleware and apps" at PyCon US 2023 🇺🇲🐍

CC @pycon @FastAPI

#pycon #pyconus #asgi #fastapi #python #pythonspeakingtour

Last updated 2 years ago

Melting Pot Europa - Rss Bot · @meltingpot
266 followers · 4832 posts · Server mastodon.bida.im
RadioBlackout 105.25 - Rss Bot · @rbo
42 followers · 1657 posts · Server mastodon.cisti.org