Skip to main content

Python library for working with JSON and JSON schema.

Project description

Python library for working with JSON and JSON schema.

Changelog

0.0.3 (2020-02-26)

  • EnumProperty now returns its values as a frozen-set to avoid copy operation.

  • Optional properties can now have default values for if they’re not specified.

  • Additional methods/options for introspecting/altering properties.

0.0.2 (2020-02-21)

  • Added the ability to create a JSONObject property directly from the class.

  • Properties can now be reused between JSON objects, as long as the attribute name stays the same.

  • ConstantProperty and EnumProperty can now report their values.

  • StaticJSONValidator can now cache schema/validators for unhashable objects.

  • Pretty serialisation.

  • Can query the optionality of a property.

  • Can specify initial values by attribute name.

  • Can see if the class OR an instance has a property (instances include additional properties).

  • Iterating over properties now only iterates over the names, and can be done on the class or an instance, as above.

  • Sub-types can pass programmatic properties in __init_subclass__.

0.0.1 (2020-02-20)

  • Initial release

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

wai.json-0.0.3.tar.gz (25.4 kB view details)

Uploaded Source

File details

Details for the file wai.json-0.0.3.tar.gz.

File metadata

  • Download URL: wai.json-0.0.3.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9

File hashes

Hashes for wai.json-0.0.3.tar.gz
Algorithm Hash digest
SHA256 13e63eb02de8b66607d2f6afcc957b4a88aaf2ac64a360bccbf1cd11df0b09e4
MD5 9daae91f05aecc7a9370f13a05e42c91
BLAKE2b-256 5cb6f8b015ee46ab3a6d08dceb64e9c4cb7797eb0c0fa50de683e583cbf97632

See more details on using hashes here.

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