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.2.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file classyjson-0.1.2.tar.gz
.
File metadata
- Download URL: classyjson-0.1.2.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bfa6738d5289ea3b4a52db7351a3f483e22abba57bd765b060850aff62ba499 |
|
MD5 | 14153aad2d05ffa269ed4545b0d2518b |
|
BLAKE2b-256 | de813afdd29effd6a377a83836377bb86d01419d2c543d5a13a2cec1a32ee447 |
File details
Details for the file classyjson-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: classyjson-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242b57b97cd9c4110155d78e0c704f11c7538a85c2b273cbf97b7bcb8f828f1c |
|
MD5 | 0c8da46775732a1dd9b842f8192a426e |
|
BLAKE2b-256 | 357b0a8cb311829e5f1ff2cb7920202a187c44e1a55f22861f432fb68648194b |