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
20082026
-
▲ 4
Cyantic – an extensible builder pattern for Pydanticstory by PaulHoule · 2025-01-31 · 0 comments
-
…`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:…
comment by rorytbyrne · 2025-01-09 · in Show HN: Cyantic – build complex objects from simple blueprints with pydantic -
▲ 2
Show HN: Cyantic – build complex objects from simple blueprints with pydanticstory by rorytbyrne · 2025-01-09 · 1 comment