Pydantic Releases Sandboxed Python Execution Server for AI Agents via Model Context Protocol
#AI #Pydantic #PydanticAI #MCP #ModelContextProtocol #Python #LLMs #AgenticAI #OpenSource #DevTools #Pyodide #Deno #Sandboxing #AISecurity #AIIntegration
Pydantic Releases Sandboxed Python Execution Server for AI Agents via Model Context Protocol
#AI #Pydantic #PydanticAI #MCP #ModelContextProtocol #Python #LLMs #AgenticAI #OpenSource #DevTools #Pyodide #Deno #Sandboxing #AISecurity #AIIntegration
#pydantic, one of the most downloaded #python library of all times...
crossing billions of total download just recently...
in the recent years...
has changed from one of the most elegant docs to one of the most horrifying and useless documentations ever...
anything you want to find on their pages these days is a "good luck" with a sneaky smear on the face...
truly a garbage if I'm being completely honest.
Агенты в Pydantic AI от вызова LLM до MCP
Всем привет, сегодня я расскажу вам о том, как делать можно делать агентов с помощью Pydantic AI. Начнем с простых примеров в виде вызова LLM , а затем постепенно будем усложнять задачу, создавая более сложного агента. Начиная от простой валидации данных на выходе, заканчивая хайповым MCP протоколом.
Un altre descobriment en aquest camí ha estat #Pydantic. Com podia viure programàticament parlant sense Pydantic?
Pydantic és una biblioteca de Python que serveix per validar i gestionar dades amb tipus. Et permet definir models (com classes) on s’especifica el tipus de cada camp, i automàticament valida i converteix les dades rebudes. Integrat a la perfecció amb fastAPI.
API автотесты на Python с запуском на CI/CD и Allure отчетом
В этой статье разберём процесс написания API автотестов на Python, используя современные best practices. Кроме того, мы настроим их запуск в CI/CD с помощью GitHub Actions и сформируем Allure-отчёт с историей запусков. Цель статьи — не только показать, как писать качественные API автотесты, но и научить запускать их в CI/CD, получая удобные отчёты о результатах.
https://habr.com/ru/articles/895452/
#python #qa_automation #testing #github_actions #github_pages #allure #pytest #api_testing #pydantic #cicd
Pydantic for data validation and hydration
https://blog.narf.ssji.net/2025/03/30/pydantic-for-data-validation-and-hydration/
When using Python in any serious way, one quickly encounters Pydantic. While I’ve run into it in many frameworks, up to now, I never took the time to sit down and work out what it was doing, beyond something like “data models and validation based on type annotations”.
I have so far used dataclasses for my data models and data transfer objects (DTO). But it finally happened, and I needed finer validation on the data within my model. So I decided to take Pydantic for a spin myself, and see what it was doing for real.
tl;dr:
Pydantic _is_ data models and validation based on type annotations (amongst other things)
It’s a (almost) drop-in replacement for dataclasses
Type resolution and validation does add one order of magnitude over dataclasses, but it’s quite acceptable as a tradeoff for not having to write any bespoke validation code
Not only can it validate data, but it can also construct nested Pydantic objects, with support for polymorphism.
The pydantic.TypeAdapter exposes some lower-level mechanisms allowing to compose Pydantic behaviours as needed
[…]
When using Python in any serious way, one quickly encounters Pydantic. While I've run into it in many frameworks, up to now, I never took the time to sit down and work out what it was doing, beyond something like “data models and validation based on type annotations”. I have so far used dataclasses for
Ara millor, la línia de temps "home" necessita un token vàlid però la línia de temps "public" (federada) no.
https://codeberg.org/spla/appy/commit/081cf661cc33d702cd0e53a74ab9030fbffd9311
He tingut que crear un nou model #Pydantic per els tuts de la línia de temps federada perquè no han de tenir "favourited", "reblogged", "muted", "bookmarked", "pinned" ni "filtered"
FastOpenAPI is a library for generating and integrating OpenAPI schemas using Pydantic v2 and various frameworks (Falcon, Flask, Quart, Sanic, Starlette, Tornado). - mr-fatalyst/fastopenapi
🤖 I wrote up some notes on Pydantic AI Agents yesterday and shared some projects that I'm using them in.