Skip to main content

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sartorial-0.5.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file sartorial-0.5.0.tar.gz.

File metadata

  • Download URL: sartorial-0.5.0.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

Hashes for sartorial-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fce091fca94650e6036eb2bda35ec6088c90d4001a0f1e68e565104b8150de52
MD5 feaf1a6decf1398fecd8efd6694abacf
BLAKE2b-256 64fcd1ae2943a86e49e2bc637617020c5a1748d83ba8752c482f721776fa9a83

See more details on using hashes here.

File details

Details for the file sartorial-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: sartorial-0.5.0-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

Hashes for sartorial-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dce0fba40c753a821c13b31ef29dda3bf172e7ca2240cd3c1ad17ceb4e8a6de1
MD5 2b002657a76cdff4682e44f324faa94b
BLAKE2b-256 9f74bba6652bf2cfc40e778d85a96a84777dee94e02ce887741d7cb09da9b928

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page