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.4.2.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file sartorial-0.4.2.tar.gz
.
File metadata
- Download URL: sartorial-0.4.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf7119c903f32a3e9c36ea0fcdc8f8b5af564e7b92eb9b5056e75a3af301271 |
|
MD5 | 67f2a81eae1a74c00d91511f3067988e |
|
BLAKE2b-256 | 9044c2efefb2462b650780c116ca6ba6a80d72f4aab71a5ebf8c97b8c47ed30a |
File details
Details for the file sartorial-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: sartorial-0.4.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0770ec7619f8cd4efddd854cc8c690616e7be0b046e6cb57a8e19c8959591e78 |
|
MD5 | 56b6f381502508cab2ad986a75767aca |
|
BLAKE2b-256 | 6075604ee5bbab6c77497533e8840a405a7f516e783e7d5ddd3ea6e3a8790732 |