RepoJournal
FastAPI & Pydantic

FastAPI & Pydantic

FastAPI and the Pydantic + SQLModel async-Python stack

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

PYDANTIC TUNES MODEL BUILDING FOR SPEED WHILE FASTAPI HARDENS CRYPTO

By RepoJournal · Filed · About FastAPI & Pydantic

Pydantic ships three micro-optimizations on the hot path of model class building, cutting unnecessary iterations and getattr calls that fire on every field.

The biggest move comes from dmontagu's optimization suite [1], which cuts ConfigWrapper iteration from all 29 possible CoreConfig keys down to just the user's actual config, adds a fast path for empty configs, and strips redundant getattr calls that used to hit BaseModel up to 16 times per field. Meanwhile, Viicos is splitting the massive test_types.py into dedicated files and migrating to TypeAdapter [5], cleaning up the test surface and making future changes easier to track. On the FastAPI side, dependabot landed cryptography 50.0.0 [2], which hardens PKCS7 decryption against timing attacks. GitPython also moved to 3.1.57 [3] with security and stability improvements. Pydantic's test migration work continues with a separate effort to move pydantic-core tests into the main directory [4], removing symlinks and adopting the Pythonic API across the board. A final addition brings AllowInfNan type support to field metadata gathering [6]. Activity across both repos: 5 commits, 7 PRs.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Introduce micro-optimizations for model class building ↗ pydantic/pydantic
  2. [2] ⬆ Bump cryptography from 48.0.1 to 50.0.0 ↗ fastapi/fastapi
  3. [3] ⬆ Bump gitpython from 3.1.54 to 3.1.57 ↗ fastapi/fastapi
  4. [4] Migrate `pydantic-core` tests to main tests directory ↗ pydantic/pydantic
  5. [5] Split stdlib types tests into dedicated test files ↗ pydantic/pydantic
  6. [6] Add `AllowInfNan` type to the field metadata gathering (#13586) pydantic/pydantic

Quick answers

What shipped in FastAPI & Pydantic on August 5, 2026?
Pydantic ships three micro-optimizations on the hot path of model class building, cutting unnecessary iterations and getattr calls that fire on every field. In total, 5 commits and 7 pull requests landed.
Who contributed to FastAPI & Pydantic on August 5, 2026?
4 developers shipped this update, including dependabot, Viicos, dmontagu, and Michael Berdyshev.
What were the notable FastAPI & Pydantic updates?
Introduce micro-optimizations for model class building, ⬆ Bump cryptography from 48.0.1 to 50.0.0, and ⬆ Bump gitpython from 3.1.54 to 3.1.57.

More from FastAPI & Pydantic

Daily updates, in your inbox

Follow FastAPI & Pydantic

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?