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 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