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.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

classyjson-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file classyjson-0.1.1.tar.gz.

File metadata

  • Download URL: classyjson-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 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

Hashes for classyjson-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3283de998adbb1e31133cf97f5d9fd29c5445e9449cbf0703fc7fade9faf7dc4
MD5 b487756d11e1669ba7d236c50c50fecc
BLAKE2b-256 7baa2e519eada8e0eda97b76202364321b8481e449c72a24ce43182eb817a92e

See more details on using hashes here.

File details

Details for the file classyjson-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: classyjson-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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

Hashes for classyjson-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7cb116ef0255a09274ff6d49b70ad9d27aa24b15bfb12b1bc9d43b5a32ab4c9d
MD5 b9e4faba0087ddf2366bf8b6ec095834
BLAKE2b-256 8b4db45a7c0e6cb65948f4f026808d9e2b35c9b99ba23510cf1778de4dd4c8d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page