Pydantic model base classes and custom type handling, JSON schema generation, etc. covering a variety of common scenarios without much config
Project description
sartorial
Tailoring custom types to fit Pydantic models, including JSON schema generation and on-the-fly model generation with custom types using JSON Schema's "format" key, allowing lossless serialization/deserialiation of arbitrary models. Contains simple JSON encoding/decoding for most types and the ability to specify them for new types with an interface mixin.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sartorial-0.5.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for sartorial-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dce0fba40c753a821c13b31ef29dda3bf172e7ca2240cd3c1ad17ceb4e8a6de1 |
|
MD5 | 2b002657a76cdff4682e44f324faa94b |
|
BLAKE2b-256 | 9f74bba6652bf2cfc40e778d85a96a84777dee94e02ce887741d7cb09da9b928 |