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

Uploaded Source

File details

Details for the file colander_jsonschema-0.2.tar.gz.

File metadata

File hashes

Hashes for colander_jsonschema-0.2.tar.gz
Algorithm Hash digest
SHA256 bb0bdd0f6e0dd2e5a1cd0a16615f033b6c5944079363a13dc5cb9df9eddc0305
MD5 ce0814d00ebbceca52af3a25594b7f16
BLAKE2b-256 3e0f83450cd0a7b659735a89b9344f222b5141359362400daca042a620f9552f

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