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
]
})
Metadata
Release files for classyjson 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| classyjson-0.1.2.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| classyjson-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / classyjson-0.1.2.tar.gz
| Download URL | classyjson-0.1.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bfa6738d5289ea3b4a52db7351a3f483e22abba57bd765b060850aff62ba499
|
|
BLAKE2b-256 checksum How to use checksums |
de813afdd29effd6a377a83836377bb86d01419d2c543d5a13a2cec1a32ee447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / classyjson-0.1.2-py3-none-any.whl
| Download URL | classyjson-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
242b57b97cd9c4110155d78e0c704f11c7538a85c2b273cbf97b7bcb8f828f1c
|
|
BLAKE2b-256 checksum How to use checksums |
357b0a8cb311829e5f1ff2cb7920202a187c44e1a55f22861f432fb68648194b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|