Skip to main content

JSON-Schema converter for colander

Project description

Convert colander schema to jsonschema compatible dictionary.

Inspired by “Audrey“‘s colanderutil.py

Install

from PyPI:

pip install colander_jsonschema

from source:

python setup.py install

Running

In your source:

import json
from colander_jsonschema import convert

converted = convert(YourColanderSchema())
with open('some/path.json') as fp:
    json.dump(converted, fp)

TODO: create useful interfaces

Planned Features

  • auto-discover schemas
  • setuptools integration

Change History

0.2 - 2014-10-06

  • python3 support

0.1 - 2014-10-04

  • 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

colander_jsonschema-0.2.tar.gz (6.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page