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.7.0.tar.gz (8.2 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.7.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sartorial-0.7.0.tar.gz
Algorithm Hash digest
SHA256 1c17895e1b2448a3f5848b0d2ce13ba0ccdf40dbc906a975d93f9cb9ef895af2
MD5 c2c97d08f2b881d158e29a2807355daa
BLAKE2b-256 585e022f4019073f65402d9f1c37484ee2368970bae713feb39f85329845b6a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sartorial-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d052b930d6e8d962688b333aac45e9f174036aecb8b9c0520151bcf2f5eede1
MD5 f43604fe770578feb66a6618efab5172
BLAKE2b-256 7bf33426dc61b45e073f27e91b95dcedb3279dbda4443bcbaa06b3685197a5d3

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