Skip to main content

Generates boilerplate for data objects.

Project description

Actions Status codecov

Draughts

Incoming requests, outgoing queries, and messages being passed around often contain data that needs be normalized to account for things like missing data, types, or default values. This is a simple tool for generating boilerplate for data objects.

Notes:

  • Tries to be inplace, the dict you start with should still exist with the structure+type corrections applied.
  • Let IDEs check type annotations and attribute spelling.
  • Let you annotate fields with metadata that other systems may need in order to process the document properly.
  • Properties and methods are copied in.

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

draughts-0.2.10.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distributions

draughts-0.2.10-cp39-cp39-manylinux2010_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

draughts-0.2.10-cp39-cp39-manylinux1_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.9

draughts-0.2.10-cp38-cp38-manylinux2010_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

draughts-0.2.10-cp38-cp38-manylinux1_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8

draughts-0.2.10-cp37-cp37m-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

draughts-0.2.10-cp37-cp37m-manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m

draughts-0.2.10-cp36-cp36m-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

draughts-0.2.10-cp36-cp36m-manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m

Supported by

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