json_schema


Namejson_schema JSON
Version 0.3 PyPI version JSON
download
home_pagehttp://lericson.blogg.se/code/category/json_schema.html
SummaryJSON schema definition and validation library
upload_time2008-08-05 03:11:31
maintainerNone
docs_urlNone
authorLudvig Ericson
requires_pythonNone
licenseUNKNOWN
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `json_schema` is a JSON-based schema validation package.

JSON-based means that its feature-set is adjusted to JSON, but it doesn't
require JSON data: any Python objects are fine, as long as they're of the
primary Python types.

Let's start off with an example::

    from json_schema import Schema, AnyInteger

    my_schema = Schema([u"set-temp", {u"degrees": AnyInteger}])

    if my_schema.validate([u"set-temp", {u"degrees": 10}]):
        print "Valid!"

It's a very declarative way of saying how your schema looks. With the architechture
that `json_schema` is built on, you can customize pretty much anything.
            

Raw data

            {
    "_id": null,
    "home_page": "http://lericson.blogg.se/code/category/json_schema.html",
    "name": "json_schema",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Ludvig Ericson",
    "author_email": "ludvig@blogg.se",
    "download_url": "https://files.pythonhosted.org/packages/2a/04/855eecfdd379ff774ce86770808c6663ad4fdf14c43ed4e6fd7156aa5cf9/json_schema-0.3.tar.gz",
    "platform": "UNKNOWN",
    "description": "`json_schema` is a JSON-based schema validation package.\n\nJSON-based means that its feature-set is adjusted to JSON, but it doesn't\nrequire JSON data: any Python objects are fine, as long as they're of the\nprimary Python types.\n\nLet's start off with an example::\n\n    from json_schema import Schema, AnyInteger\n\n    my_schema = Schema([u\"set-temp\", {u\"degrees\": AnyInteger}])\n\n    if my_schema.validate([u\"set-temp\", {u\"degrees\": 10}]):\n        print \"Valid!\"\n\nIt's a very declarative way of saying how your schema looks. With the architechture\nthat `json_schema` is built on, you can customize pretty much anything.",
    "bugtrack_url": null,
    "license": "UNKNOWN",
    "summary": "JSON schema definition and validation library",
    "version": "0.3",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "http://lericson.blogg.se/code/category/json_schema.html"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a04855eecfdd379ff774ce86770808c6663ad4fdf14c43ed4e6fd7156aa5cf9",
                "md5": "59e75cb6b7f192ea01507512a7e7ede8",
                "sha256": "a164efbb405f535615e58aff191b55fbfdad61d2ff0e7bfce6acf086358ca4b3"
            },
            "downloads": -1,
            "filename": "json_schema-0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "59e75cb6b7f192ea01507512a7e7ede8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5425,
            "upload_time": "2008-08-05T03:11:31",
            "upload_time_iso_8601": "2008-08-05T03:11:31Z",
            "url": "https://files.pythonhosted.org/packages/2a/04/855eecfdd379ff774ce86770808c6663ad4fdf14c43ed4e6fd7156aa5cf9/json_schema-0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2008-08-05 03:11:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "json_schema"
}
        
Elapsed time: 0.53262s