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.4.0.tar.gz (7.8 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.4.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sartorial-0.4.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for sartorial-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b22c60915f2d1b2ae6767358403b34d5ccab7829c71e077616a9a4257af3bd8e
MD5 647928fafe61967b1fd4fcf5f25798a7
BLAKE2b-256 936e5db65db5835b6aae3126e2c75b4dcacb840dae5127313ee6cecac3db622b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sartorial-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e4d53a49bb93eb2ddb830d390f11f316c112dc121bbd2367746ab2a642bcd4f
MD5 eff05f873de4f97e21cb2f923b720ea5
BLAKE2b-256 7b35d8ca3a0158dcbce2c7bdb788a9e7bfc6ecd308cb82b457fe722ac893875a

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