Hacker GitHub

← All repos

flywhl/cyantic

View on GitHub ↗ ★ 26 Python

Build complex types from simple blueprints with Pydantic

3 mentions on Hacker News by 2 people: 2 stories, 1 comment · first 2025-01-09 · latest 2025-01-31

Mentions per year 3 mentions · busiest year 2025 (3)
20082026
  1. …`thing.model_validate(...)`, and get a fully-built Tensor in the appropriate field of the model. https://github.com/flywhl/cyantic --- Example: If you write a blueprint like @blueprint(Tensor) class NormalTensor(Blueprint[Tensor]): mean:…