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.7.1.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file sartorial-0.7.1.tar.gz
.
File metadata
- Download URL: sartorial-0.7.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb3d6071c2a63086a35eb5ea52eff851f8e3d32442d98440eb01fa69b6fecb2 |
|
MD5 | 1da9830499a8029bbd4902dce99a76ab |
|
BLAKE2b-256 | db29379fc7c85a7316c02a972ec64084fc10a2025278d5e9e5a1fda0cc321ab0 |
File details
Details for the file sartorial-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: sartorial-0.7.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3cc15c5b995396886a77d170004c57cd7d3fd02c6eb7486bfb43f350ae082fc |
|
MD5 | 1e747dac7b8ff8ce2d503924b9b163ff |
|
BLAKE2b-256 | 97687039b5d29602e4fb9066b43c713cc300b6ffeef8a3af6405479ebc15a021 |