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
Release history Release notifications | RSS feed
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.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for classyjson-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cb116ef0255a09274ff6d49b70ad9d27aa24b15bfb12b1bc9d43b5a32ab4c9d |
|
MD5 | b9e4faba0087ddf2366bf8b6ec095834 |
|
BLAKE2b-256 | 8b4db45a7c0e6cb65948f4f026808d9e2b35c9b99ba23510cf1778de4dd4c8d6 |