Skip to main content

Wrap jsonschema in python classes

Project description

Classy Json

Classy json is the best friend to invite to the party. He knows how to check all the other json that comes in and class them up.

Quick Start

pip install classyjson

Create your objects with jsonschema definitions.

from classyjson import ClassyObject

class Config(ClassyObject):
    schema = {
        "properties": {
            "version": {"type": "string"},
            "verbosity": {"type": "integer"},
            "items": {"type": "array"}
        }
    }


config = Config({
    "version": "v1.0",
    "verbosity": 1,
    "items": [
        1, 2, 3
    ]
})

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

classyjson-0.1.2.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

classyjson-0.1.2-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

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