{ "info": { "author": "Vladimir Keleshev", "author_email": "vladimir@keleshev.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Utilities" ], "description": "Schema validation just got Pythonic\n===============================================================================\n\n**schema** is a library for validating Python data structures, such as those\nobtained from config-files, forms, external services or command-line\nparsing, converted from JSON/YAML (or something else) to Python data-types.\n\n\n.. image:: https://secure.travis-ci.org/keleshev/schema.svg?branch=master\n :target: https://travis-ci.org/keleshev/schema\n\n.. image:: https://img.shields.io/codecov/c/github/keleshev/schema.svg\n :target: http://codecov.io/github/keleshev/schema\n\nExample\n----------------------------------------------------------------------------\n\nHere is a quick example to get a feeling of **schema**, validating a list of\nentries with personal information:\n\n.. code:: python\n\n >>> from schema import Schema, And, Use, Optional\n\n >>> schema = Schema([{'name': And(str, len),\n ... 'age': And(Use(int), lambda n: 18 <= n <= 99),\n ... Optional('gender'): And(str, Use(str.lower),\n ... lambda s: s in ('squid', 'kid'))}])\n\n >>> data = [{'name': 'Sue', 'age': '28', 'gender': 'Squid'},\n ... {'name': 'Sam', 'age': '42'},\n ... {'name': 'Sacha', 'age': '20', 'gender': 'KID'}]\n\n >>> validated = schema.validate(data)\n\n >>> assert validated == [{'name': 'Sue', 'age': 28, 'gender': 'squid'},\n ... {'name': 'Sam', 'age': 42},\n ... {'name': 'Sacha', 'age' : 20, 'gender': 'kid'}]\n\n\nIf data is valid, ``Schema.validate`` will return the validated data\n(optionally converted with `Use` calls, see below).\n\nIf data is invalid, ``Schema`` will raise ``SchemaError`` exception.\nIf you just want to check that the data is valid, ``schema.is_valid(data)`` will\nreturn ``True`` or ``False``.\n\n\nInstallation\n-------------------------------------------------------------------------------\n\nUse `pip `_ or easy_install::\n\n pip install schema\n\nAlternatively, you can just drop ``schema.py`` file into your project\u2014it is\nself-contained.\n\n- **schema** is tested with Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7 and PyPy.\n- **schema** follows `semantic versioning `_.\n\nHow ``Schema`` validates data\n-------------------------------------------------------------------------------\n\nTypes\n~~~~~\n\nIf ``Schema(...)`` encounters a type (such as ``int``, ``str``, ``object``,\netc.), it will check if the corresponding piece of data is an instance of that type,\notherwise it will raise ``SchemaError``.\n\n.. code:: python\n\n >>> from schema import Schema\n\n >>> Schema(int).validate(123)\n 123\n\n >>> Schema(int).validate('123')\n Traceback (most recent call last):\n ...\n SchemaUnexpectedTypeError: '123' should be instance of 'int'\n\n >>> Schema(object).validate('hai')\n 'hai'\n\nCallables\n~~~~~~~~~\n\nIf ``Schema(...)`` encounters a callable (function, class, or object with\n``__call__`` method) it will call it, and if its return value evaluates to\n``True`` it will continue validating, else\u2014it will raise ``SchemaError``.\n\n.. code:: python\n\n >>> import os\n\n >>> Schema(os.path.exists).validate('./')\n './'\n\n >>> Schema(os.path.exists).validate('./non-existent/')\n Traceback (most recent call last):\n ...\n SchemaError: exists('./non-existent/') should evaluate to True\n\n >>> Schema(lambda n: n > 0).validate(123)\n 123\n\n >>> Schema(lambda n: n > 0).validate(-12)\n Traceback (most recent call last):\n ...\n SchemaError: (-12) should evaluate to True\n\n\"Validatables\"\n~~~~~~~~~~~~~~\n\nIf ``Schema(...)`` encounters an object with method ``validate`` it will run\nthis method on corresponding data as ``data = obj.validate(data)``. This method\nmay raise ``SchemaError`` exception, which will tell ``Schema`` that that piece\nof data is invalid, otherwise\u2014it will continue validating.\n\nAn example of \"validatable\" is ``Regex``, that tries to match a string or a\nbuffer with the given regular expression (itself as a string, buffer or\ncompiled regex ``SRE_Pattern``):\n\n.. code:: python\n\n >>> from schema import Regex\n >>> import re\n\n >>> Regex(r'^foo').validate('foobar')\n 'foobar'\n\n >>> Regex(r'^[A-Z]+$', flags=re.I).validate('those-dashes-dont-match')\n Traceback (most recent call last):\n ...\n SchemaError: Regex('^[A-Z]+$', flags=re.IGNORECASE) does not match 'those-dashes-dont-match'\n\nFor a more general case, you can use ``Use`` for creating such objects.\n``Use`` helps to use a function or type to convert a value while validating it:\n\n.. code:: python\n\n >>> from schema import Use\n\n >>> Schema(Use(int)).validate('123')\n 123\n\n >>> Schema(Use(lambda f: open(f, 'a'))).validate('LICENSE-MIT')\n \n\nDropping the details, ``Use`` is basically:\n\n.. code:: python\n\n class Use(object):\n\n def __init__(self, callable_):\n self._callable = callable_\n\n def validate(self, data):\n try:\n return self._callable(data)\n except Exception as e:\n raise SchemaError('%r raised %r' % (self._callable.__name__, e))\n\n\nSometimes you need to transform and validate part of data, but keep original data unchanged.\n``Const`` helps to keep your data safe:\n\n.. code:: python\n\n >> from schema import Use, Const, And, Schema\n\n >> from datetime import datetime\n\n >> is_future = lambda date: datetime.now() > date\n\n >> to_json = lambda v: {\"timestamp\": v}\n\n >> Schema(And(Const(And(Use(datetime.fromtimestamp), is_future)), Use(to_json))).validate(1234567890)\n {\"timestamp\": 1234567890}\n\nNow you can write your own validation-aware classes and data types.\n\nLists, similar containers\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf ``Schema(...)`` encounters an instance of ``list``, ``tuple``, ``set`` or\n``frozenset``, it will validate contents of corresponding data container\nagainst schemas listed inside that container:\n\n\n.. code:: python\n\n >>> Schema([1, 0]).validate([1, 1, 0, 1])\n [1, 1, 0, 1]\n\n >>> Schema((int, float)).validate((5, 7, 8, 'not int or float here'))\n Traceback (most recent call last):\n ...\n SchemaError: Or(, ) did not validate 'not int or float here'\n 'not int or float here' should be instance of 'float'\n\nDictionaries\n~~~~~~~~~~~~\n\nIf ``Schema(...)`` encounters an instance of ``dict``, it will validate data\nkey-value pairs:\n\n.. code:: python\n\n >>> d = Schema({'name': str,\n ... 'age': lambda n: 18 <= n <= 99}).validate({'name': 'Sue', 'age': 28})\n\n >>> assert d == {'name': 'Sue', 'age': 28}\n\nYou can specify keys as schemas too:\n\n.. code:: python\n\n >>> schema = Schema({str: int, # string keys should have integer values\n ... int: None}) # int keys should be always None\n\n >>> data = schema.validate({'key1': 1, 'key2': 2,\n ... 10: None, 20: None})\n\n >>> schema.validate({'key1': 1,\n ... 10: 'not None here'})\n Traceback (most recent call last):\n ...\n SchemaError: Key '10' error:\n None does not match 'not None here'\n\nThis is useful if you want to check certain key-values, but don't care\nabout others:\n\n.. code:: python\n\n >>> schema = Schema({'': int,\n ... '': Use(open),\n ... str: object}) # don't care about other str keys\n\n >>> data = schema.validate({'': 10,\n ... '': 'README.rst',\n ... '--verbose': True})\n\nYou can mark a key as optional as follows:\n\n.. code:: python\n\n >>> from schema import Optional\n >>> Schema({'name': str,\n ... Optional('occupation'): str}).validate({'name': 'Sam'})\n {'name': 'Sam'}\n\n``Optional`` keys can also carry a ``default``, to be used when no key in the\ndata matches:\n\n.. code:: python\n\n >>> from schema import Optional\n >>> Schema({Optional('color', default='blue'): str,\n ... str: str}).validate({'texture': 'furry'}\n ... ) == {'color': 'blue', 'texture': 'furry'}\n True\n\nDefaults are used verbatim, not passed through any validators specified in the\nvalue.\n\ndefault can also be a callable:\n\n.. code:: python\n\n >>> from schema import Schema, Optional\n >>> Schema({Optional('data', default=dict): {}}).validate({}) == {'data': {}}\n True\n\nAlso, a caveat: If you specify types, **schema** won't validate the empty dict:\n\n.. code:: python\n\n >>> Schema({int:int}).is_valid({})\n False\n\nTo do that, you need ``Schema(Or({int:int}, {}))``. This is unlike what happens with\nlists, where ``Schema([int]).is_valid([])`` will return True.\n\n\n**schema** has classes ``And`` and ``Or`` that help validating several schemas\nfor the same data:\n\n.. code:: python\n\n >>> from schema import And, Or\n\n >>> Schema({'age': And(int, lambda n: 0 < n < 99)}).validate({'age': 7})\n {'age': 7}\n\n >>> Schema({'password': And(str, lambda s: len(s) > 6)}).validate({'password': 'hai'})\n Traceback (most recent call last):\n ...\n SchemaError: Key 'password' error:\n ('hai') should evaluate to True\n\n >>> Schema(And(Or(int, float), lambda x: x > 0)).validate(3.1415)\n 3.1415\n\nIn a dictionary, you can also combine two keys in a \"one or the other\" manner. To do\nso, use the `Or` class as a key:\n\n.. code:: python\n\n >>> from schema import Or, Schema\n >>> schema = Schema({\n ... Or(\"key1\", \"key2\", only_one=True): str\n ... })\n\n >>> schema.validate({\"key1\": \"test\"}) # Ok\n {'key1': 'test'}\n\n >>> schema.validate({\"key1\": \"test\", \"key2\": \"test\"}) # SchemaError\n Traceback (most recent call last):\n ...\n SchemaOnlyOneAllowedError: There are multiple keys present from the Or('key1', 'key2') condition\n\nHooks\n~~~~~~~~~~\nYou can define hooks which are functions that are executed whenever a valid key:value is found. \nThe `Forbidden` class is an example of this.\n\nYou can mark a key as forbidden as follows:\n\n.. code:: python\n\n >>> from schema import Forbidden\n >>> Schema({Forbidden('age'): object}).validate({'age': 50})\n Traceback (most recent call last):\n ...\n SchemaForbiddenKeyError: Forbidden key encountered: 'age' in {'age': 50}\n\nA few things are worth noting. First, the value paired with the forbidden\nkey determines whether it will be rejected:\n\n.. code:: python\n\n >>> Schema({Forbidden('age'): str, 'age': int}).validate({'age': 50})\n {'age': 50}\n\nNote: if we hadn't supplied the 'age' key here, the call would have failed too, but with\nSchemaWrongKeyError, not SchemaForbiddenKeyError.\n\nSecond, Forbidden has a higher priority than standard keys, and consequently than Optional.\nThis means we can do that:\n\n.. code:: python\n\n >>> Schema({Forbidden('age'): object, Optional(str): object}).validate({'age': 50})\n Traceback (most recent call last):\n ...\n SchemaForbiddenKeyError: Forbidden key encountered: 'age' in {'age': 50}\n\nYou can also define your own hooks. The following hook will call `_my_function` if `key` is encountered.\n\n.. code:: python\n\n from schema import Hook\n def _my_function(key, scope, error):\n print(key, scope, error)\n\n Hook(\"key\", handler=_my_function)\n\nHere's an example where a `Deprecated` class is added to log warnings whenever a key is encountered:\n\n.. code:: python\n\n from schema import Hook, Schema\n class Deprecated(Hook):\n def __init__(self, *args, **kwargs):\n kwargs[\"handler\"] = lambda key, *args: logging.warn(f\"`{key}` is deprecated. \" + (self._error or \"\"))\n super(Deprecated, self).__init__(*args, **kwargs)\n\n Schema({Deprecated(\"test\", \"custom error message.\"): object}, ignore_extra_keys=True).validate({\"test\": \"value\"})\n ...\n WARNING: `test` is deprecated. custom error message.\n\nExtra Keys\n~~~~~~~~~~\n\nThe ``Schema(...)`` parameter ``ignore_extra_keys`` causes validation to ignore extra keys in a dictionary, and also to not return them after validating.\n\n.. code:: python\n\n >>> schema = Schema({'name': str}, ignore_extra_keys=True)\n >>> schema.validate({'name': 'Sam', 'age': '42'})\n {'name': 'Sam'}\n\nIf you would like any extra keys returned, use ``object: object`` as one of the key/value pairs, which will match any key and any value.\nOtherwise, extra keys will raise a ``SchemaError``.\n\nUser-friendly error reporting\n-------------------------------------------------------------------------------\n\nYou can pass a keyword argument ``error`` to any of validatable classes\n(such as ``Schema``, ``And``, ``Or``, ``Regex``, ``Use``) to report this error\ninstead of a built-in one.\n\n.. code:: python\n\n >>> Schema(Use(int, error='Invalid year')).validate('XVII')\n Traceback (most recent call last):\n ...\n SchemaError: Invalid year\n\nYou can see all errors that occurred by accessing exception's ``exc.autos``\nfor auto-generated error messages, and ``exc.errors`` for errors\nwhich had ``error`` text passed to them.\n\nYou can exit with ``sys.exit(exc.code)`` if you want to show the messages\nto the user without traceback. ``error`` messages are given precedence in that\ncase.\n\nA JSON API example\n-------------------------------------------------------------------------------\n\nHere is a quick example: validation of\n`create a gist `_\nrequest from github API.\n\n.. code:: python\n\n >>> gist = '''{\"description\": \"the description for this gist\",\n ... \"public\": true,\n ... \"files\": {\n ... \"file1.txt\": {\"content\": \"String file contents\"},\n ... \"other.txt\": {\"content\": \"Another file contents\"}}}'''\n\n >>> from schema import Schema, And, Use, Optional\n\n >>> import json\n\n >>> gist_schema = Schema(And(Use(json.loads), # first convert from JSON\n ... # use basestring since json returns unicode\n ... {Optional('description'): basestring,\n ... 'public': bool,\n ... 'files': {basestring: {'content': basestring}}}))\n\n >>> gist = gist_schema.validate(gist)\n\n # gist:\n {u'description': u'the description for this gist',\n u'files': {u'file1.txt': {u'content': u'String file contents'},\n u'other.txt': {u'content': u'Another file contents'}},\n u'public': True}\n\nUsing **schema** with `docopt `_\n-------------------------------------------------------------------------------\n\nAssume you are using **docopt** with the following usage-pattern:\n\n Usage: my_program.py [--count=N] ...\n\nand you would like to validate that ```` are readable, and that\n```` exists, and that ``--count`` is either integer from 0 to 5, or\n``None``.\n\nAssuming **docopt** returns the following dict:\n\n.. code:: python\n\n >>> args = {'': ['LICENSE-MIT', 'setup.py'],\n ... '': '../',\n ... '--count': '3'}\n\nthis is how you validate it using ``schema``:\n\n.. code:: python\n\n >>> from schema import Schema, And, Or, Use\n >>> import os\n\n >>> s = Schema({'': [Use(open)],\n ... '': os.path.exists,\n ... '--count': Or(None, And(Use(int), lambda n: 0 < n < 5))})\n\n >>> args = s.validate(args)\n\n >>> args['']\n [, ]\n\n >>> args['']\n '../'\n\n >>> args['--count']\n 3\n\nAs you can see, **schema** validated data successfully, opened files and\nconverted ``'3'`` to ``int``.\n\nJSON schema\n-----------\n\nYou can also generate standard `draft-07 JSON schema `_ from a dict ``Schema``.\nThis can be used to add word completion, validation, and documentation directly in code editors.\nThe output schema can also be used with JSON schema compatible libraries.\n\nJSON: Generating\n~~~~~~~~~~~~~~~~\n\nJust define your schema normally and call ``.json_schema()`` on it. The output is a Python dict, you need to dump it to JSON.\n\n.. code:: python\n\n >>> from schema import Optional, Schema\n >>> import json\n >>> s = Schema({\"test\": str,\n ... \"nested\": {Optional(\"other\"): str}\n ... })\n >>> json_schema = json.dumps(s.json_schema(\"https://example.com/my-schema.json\"))\n\n # json_schema\n {\n \"type\":\"object\",\n \"properties\": {\n \"test\": {\"type\": \"string\"},\n \"nested\": {\n \"type\":\"object\",\n \"properties\": {\n \"other\": {\"type\": \"string\"}\n },\n \"required\": [],\n \"additionalProperties\": false\n }\n },\n \"required\":[\n \"test\",\n \"nested\"\n ],\n \"additionalProperties\":false,\n \"$id\":\"https://example.com/my-schema.json\",\n \"$schema\":\"http://json-schema.org/draft-07/schema#\"\n }\n\nYou can add descriptions for the schema elements using the ``Literal`` object instead of a string. The main schema can also have a description.\n\nThese will appear in IDEs to help your users write a configuration.\n\n.. code:: python\n\n >>> from schema import Literal, Schema\n >>> import json\n >>> s = Schema({Literal(\"project_name\", description=\"Names must be unique\"): str}, description=\"Project schema\")\n >>> json_schema = json.dumps(s.json_schema(\"https://example.com/my-schema.json\"), indent=4)\n\n # json_schema\n {\n \"type\": \"object\",\n \"properties\": {\n \"project_name\": {\n \"description\": \"Names must be unique\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"project_name\"\n ],\n \"additionalProperties\": false,\n \"$id\": \"https://example.com/my-schema.json\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"description\": \"Project schema\"\n }\n\n\nJSON: Supported validations\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe main schema must be a dict. i.e. ``Schema({\"test\": str})`` works but ``Schema(str)`` does not.\nThe following examples will assume the main schema is a dict.\n\nThe resulting JSON schema is not guaranteed to accept the same objects as the library would accept, since some validations are not implemented or\nhave no JSON schema equivalent. This is the case of the ``Use`` and ``Hook`` objects for example.\n\nImplemented\n'''''''''''\n\n`Object properties `_\n Use a dict literal. The dict keys are the JSON schema properties.\n\n Example:\n\n ``Schema({\"test\": str})``\n\n becomes\n\n ``{'type': 'object', 'properties': {'test': {'type': 'string'}}, 'required': ['test'], 'additionalProperties': False}``.\n\n Please note that attributes are required by default. To create optional attributes use ``Optional``, like so:\n\n ``Schema({Optional(\"test\"): str})``\n\n becomes\n\n ``{'type': 'object', 'properties': {'test': {'type': 'string'}}, 'required': [], 'additionalProperties': False}``\n\nTypes\n Use the Python type name directly. It will be converted to the JSON name:\n\n - ``str`` -> `string `_\n - ``int`` -> `integer `_\n - ``float`` -> `number `_\n - ``bool`` -> `boolean `_\n - ``list`` -> `array `_\n - ``dict`` -> `object `_\n\n Example:\n\n ``Schema(float)``\n\n becomes\n\n ``{\"type\": \"number\"}``\n\n`Array items `_\n Surround a schema with ``[]``.\n\n Example:\n\n ``Schema([str])`` means an array of string and becomes:\n\n ``{'type': 'array', 'items': {'type': 'string'}}``\n\n`Enumerated values `_\n List the accepted values.\n\n Example:\n\n ``Schema([1, 2, 3])`` becomes\n\n ``{\"enum\": [1, 2, 3]}``\n\n`Constant values `_\n Use the value itself.\n\n Example:\n\n ``Schema(\"name\")`` becomes\n\n ``{\"const\": \"name\"}``\n\n`Regular expressions `_\n Use ``Regex``.\n\n Example:\n\n ``Regex(\"^v\\d+\")`` becomes\n\n ``{'type': 'string', 'pattern': '^v\\\\d+'}``\n\n`Annotations (title and description) `_\n You can use the ``name`` and ``description`` parameters of the ``Schema`` object init method.\n\n To add description to keys, replace a str with a ``Literal`` object.\n\n Example:\n\n ``Schema({Literal(\"test\", description=\"A description\"): str})``\n\n is equivalent to\n\n ``Schema({\"test\": str})``\n\n with the description added to the resulting JSON schema.\n\n`Combining schemas with allOf `_\n Use ``And``\n\n Example:\n\n ``Schema(And(str, \"value\")``\n\n becomes\n\n ``{\"allOf\": [{\"type\": \"string\"}, {\"const\": \"value\"}]}``\n\n Note that this example is not really useful in the real world, since ``const`` already implies the type.\n\n`Combining schemas with anyOf `_\n Use ``Or``\n\n Example:\n\n ``Schema(Or(str, int))``\n\n becomes\n\n ``{\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"integer\"}]}``\n\n\nNot implemented\n'''''''''''''''\n\nThe following JSON schema validations cannot be generated from this library.\n\n- `String length `_\n However, those can be implemented using ``Regex``\n- `String format `_\n However, those can be implemented using ``Regex``\n- `Object dependencies `_\n- `Array length `_\n- `Array uniqueness `_\n- `Numeric multiples `_\n- `Numeric ranges `_\n- `Property Names `_\n Not implemented. We suggest listing the possible keys instead. As a tip, you can use ``Or`` as a dict key.\n\n Example:\n\n ``Schema({Or(\"name1\", \"name2\"): str})``\n- `Annotations (default and examples) `_\n- `Combining schemas with oneOf `_\n- `Not `_\n- `Object size `_\n\n\nJSON: Minimizing output size\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nExplicit Reuse\n''''''''''''''\n\nIf your JSON schema is big and has a lot of repetition, it can be made simpler and smaller by defining Schema objects as reference.\nThese references will be placed in a \"definitions\" section in the main schema.\n\n`You can look at the JSON schema documentation for more information `_\n\n.. code:: python\n\n >>> from schema import Optional, Schema\n >>> import json\n >>> s = Schema({\"test\": str,\n ... \"nested\": Schema({Optional(\"other\"): str}, name=\"nested\", as_reference=True)\n ... })\n >>> json_schema = json.dumps(s.json_schema(\"https://example.com/my-schema.json\"), indent=4)\n\n # json_schema\n {\n \"type\": \"object\",\n \"properties\": {\n \"test\": {\n \"type\": \"string\"\n },\n \"nested\": {\n \"$ref\": \"#/definitions/nested\"\n }\n },\n \"required\": [\n \"test\",\n \"nested\"\n ],\n \"additionalProperties\": false,\n \"$id\": \"https://example.com/my-schema.json\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"definitions\": {\n \"nested\": {\n \"type\": \"object\",\n \"properties\": {\n \"other\": {\n \"type\": \"string\"\n }\n },\n \"required\": [],\n \"additionalProperties\": false\n }\n }\n }\n\nThis becomes really useful when using the same object several times\n\n.. code:: python\n\n >>> from schema import Optional, Or, Schema\n >>> import json\n >>> language_configuration = Schema({\"autocomplete\": bool, \"stop_words\": [str]}, name=\"language\", as_reference=True)\n >>> s = Schema({Or(\"ar\", \"cs\", \"de\", \"el\", \"eu\", \"en\", \"es\", \"fr\"): language_configuration})\n >>> json_schema = json.dumps(s.json_schema(\"https://example.com/my-schema.json\"), indent=4)\n\n # json_schema\n {\n \"type\": \"object\",\n \"properties\": {\n \"ar\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"cs\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"de\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"el\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"eu\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"en\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"es\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"fr\": {\n \"$ref\": \"#/definitions/language\"\n }\n },\n \"required\": [],\n \"additionalProperties\": false,\n \"$id\": \"https://example.com/my-schema.json\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"definitions\": {\n \"language\": {\n \"type\": \"object\",\n \"properties\": {\n \"autocomplete\": {\n \"type\": \"boolean\"\n },\n \"stop_words\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\n \"autocomplete\",\n \"stop_words\"\n ],\n \"additionalProperties\": false\n }\n }\n }\n\nAutomatic reuse\n'''''''''''''''\n\nIf you want to minimize the output size without using names explicitly, you can have the library generate hashes of parts of the output JSON\nschema and use them as references throughout.\n\nEnable this behaviour by providing the parameter ``use_refs`` to the json_schema method.\n\nBe aware that this method is less often compatible with IDEs and JSON schema libraries.\nIt produces a JSON schema that is more difficult to read by humans.\n\n.. code:: python\n\n >>> from schema import Optional, Or, Schema\n >>> import json\n >>> language_configuration = Schema({\"autocomplete\": bool, \"stop_words\": [str]})\n >>> s = Schema({Or(\"ar\", \"cs\", \"de\", \"el\", \"eu\", \"en\", \"es\", \"fr\"): language_configuration})\n >>> json_schema = json.dumps(s.json_schema(\"https://example.com/my-schema.json\", use_refs=True), indent=4)\n\n # json_schema\n {\n \"type\": \"object\",\n \"properties\": {\n \"ar\": {\n \"type\": \"object\",\n \"properties\": {\n \"autocomplete\": {\n \"type\": \"boolean\",\n \"$id\": \"#6456104181059880193\"\n },\n \"stop_words\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"$id\": \"#1856069563381977338\"\n }\n }\n },\n \"required\": [\n \"autocomplete\",\n \"stop_words\"\n ],\n \"additionalProperties\": false\n },\n \"cs\": {\n \"type\": \"object\",\n \"properties\": {\n \"autocomplete\": {\n \"$ref\": \"#6456104181059880193\"\n },\n \"stop_words\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#1856069563381977338\"\n },\n \"$id\": \"#-5377945144312515805\"\n }\n },\n \"required\": [\n \"autocomplete\",\n \"stop_words\"\n ],\n \"additionalProperties\": false\n },\n \"de\": {\n \"type\": \"object\",\n \"properties\": {\n \"autocomplete\": {\n \"$ref\": \"#6456104181059880193\"\n },\n \"stop_words\": {\n \"$ref\": \"#-5377945144312515805\"\n }\n },\n \"required\": [\n \"autocomplete\",\n \"stop_words\"\n ],\n \"additionalProperties\": false,\n \"$id\": \"#-8142886105174600858\"\n },\n \"el\": {\n \"$ref\": \"#-8142886105174600858\"\n },\n \"eu\": {\n \"$ref\": \"#-8142886105174600858\"\n },\n \"en\": {\n \"$ref\": \"#-8142886105174600858\"\n },\n \"es\": {\n \"$ref\": \"#-8142886105174600858\"\n },\n \"fr\": {\n \"$ref\": \"#-8142886105174600858\"\n }\n },\n \"required\": [],\n \"additionalProperties\": false,\n \"$id\": \"https://example.com/my-schema.json\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n }\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/keleshev/schema", "keywords": "schema json validation", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "schema", "package_url": "https://pypi.org/project/schema/", "platform": "", "project_url": "https://pypi.org/project/schema/", "project_urls": { "Homepage": "https://github.com/keleshev/schema" }, "release_url": "https://pypi.org/project/schema/0.7.1/", "requires_dist": [ "contextlib2 (==0.5.5)" ], "requires_python": "", "summary": "Simple data validation library", "version": "0.7.1" }, "last_serial": 5804754, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fe9af7ab3411b86c83808c1394199932", "sha256": "a134cc1fa6ef8508c2bdd4e17b191c2d5c8fd0bd1a5c14b90c3c9c4cf7aab7e3" }, "downloads": -1, "filename": "schema-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fe9af7ab3411b86c83808c1394199932", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2232, "upload_time": "2012-08-22T18:12:39", "url": "https://files.pythonhosted.org/packages/14/f6/d23bacaec50218b4cbaa24337d33c4379f20717bab8925308e6ec59cdbf6/schema-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5347f96d72607ad2e5eb168eb71d682a", "sha256": "fb9dcee5513ce43daf2789078d4b3995bef3ab3f7962476c9301ed60a30c5535" }, "downloads": -1, "filename": "schema-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5347f96d72607ad2e5eb168eb71d682a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2236, "upload_time": "2012-08-22T18:15:49", "url": "https://files.pythonhosted.org/packages/e2/17/c215cf631dcc88427aefbfd18a68c890f34027d8863aa3d98a6e977d7e51/schema-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "96c3de3ff4c0caaf93653aa82c49ac6e", "sha256": "25636aa9f474379e2d7848ab5890b3708675396a44522ecb9977a87a16399af2" }, "downloads": -1, "filename": "schema-0.1.2.tar.gz", "has_sig": false, "md5_digest": "96c3de3ff4c0caaf93653aa82c49ac6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6428, "upload_time": "2013-03-06T19:34:11", "url": "https://files.pythonhosted.org/packages/46/a8/3ac6240f1b85ea799498e42b94d5bdfd25dae9be8761dd1af74900b9971b/schema-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "673e88f70ad9227acd96a2ee682fd4a0", "sha256": "d9aa5b6cd03b400393ec2ebe9dcecf6c6bde4f0dde66a4062130b45cead74364" }, "downloads": -1, "filename": "schema-0.1.3.tar.gz", "has_sig": false, "md5_digest": "673e88f70ad9227acd96a2ee682fd4a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7370, "upload_time": "2013-03-06T19:37:09", "url": "https://files.pythonhosted.org/packages/66/f2/28c858199597f66d97ae8044a6529db94b451e7a08febe10575ae418d9f8/schema-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "504755c50bf4b4ddbe4188cd2c5753f7", "sha256": "5c69254520c3a6babfcb86d8b57138d68dc79836705c68aa3ae1560365b912a1" }, "downloads": -1, "filename": "schema-0.1.4.tar.gz", "has_sig": false, "md5_digest": "504755c50bf4b4ddbe4188cd2c5753f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7036, "upload_time": "2013-03-06T21:12:48", "url": "https://files.pythonhosted.org/packages/49/57/80a79c4ca31c9ee337f1af07c1d1c39b244916faa8972016f539406f2879/schema-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "45738bf995f462f3856501fe613fd6f7", "sha256": "71ed44da72522cc588e4a093430729c866339a436bdbbc0ef051dd83e83b5d65" }, "downloads": -1, "filename": "schema-0.2.0.tar.gz", "has_sig": false, "md5_digest": "45738bf995f462f3856501fe613fd6f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7422, "upload_time": "2013-03-29T17:33:52", "url": "https://files.pythonhosted.org/packages/48/0d/3820843affe37cc785ead7576365133cb3148d3033b5d13733c0ea66ce1d/schema-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "3ad751c878232b93896378ea001c5610", "sha256": "2e1ac5e56ac00282a8e286f35ca1b94647266a3a40b33a1e2e0bb6ee785d51c0" }, "downloads": -1, "filename": "schema-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3ad751c878232b93896378ea001c5610", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7574, "upload_time": "2014-04-12T21:57:20", "url": "https://files.pythonhosted.org/packages/f5/32/0ac81ef41e3dc5a59c7167721298d87f7f939e4e134e3e0538739f06ec5c/schema-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "241d4f8211ebab33bc28be90a300cb58", "sha256": "0b9e883edb898971125112f1737d403ffd777513caf69a44b3b0765239797c18" }, "downloads": -1, "filename": "schema-0.3.1.tar.gz", "has_sig": false, "md5_digest": "241d4f8211ebab33bc28be90a300cb58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7586, "upload_time": "2014-04-28T20:12:19", "url": "https://files.pythonhosted.org/packages/0c/1f/1bb243c03e7109f18256b0485c6a1c400019a76d023f36983c99232c0141/schema-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "cfabca802f206176e87888f716ee6baf", "sha256": "63f3ed23f3c383203bdac0c9a4c1fa823a507c3bfcd555954367a20a1c294973" }, "downloads": -1, "filename": "schema-0.4.0.tar.gz", "has_sig": false, "md5_digest": "cfabca802f206176e87888f716ee6baf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9550, "upload_time": "2015-10-26T15:41:39", "url": "https://files.pythonhosted.org/packages/b0/41/68972daad372fff3a2381e0416ff704faf524b2974e01d1c4fc997b4fb39/schema-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "cf1885ccdec0cc8b0620dda48dcab150", "sha256": "09ab80b331c6d181dbd6194709c971ae9a18aa9c560d05cd8dfe18083c91d187" }, "downloads": -1, "filename": "schema-0.5.0-py2-none-any.whl", "has_sig": false, "md5_digest": "cf1885ccdec0cc8b0620dda48dcab150", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11696, "upload_time": "2016-05-03T11:35:36", "url": "https://files.pythonhosted.org/packages/90/87/1fdc78673b12648442393142ca877c055fc9ec333e3905639eb86b56e51c/schema-0.5.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cee375ebfa54f1c4a218438b3b1c6803", "sha256": "fa982e925cfe56ce036b5776aff6179621cae5994b9066d17a33143fd5ddf883" }, "downloads": -1, "filename": "schema-0.5.0.tar.gz", "has_sig": false, "md5_digest": "cee375ebfa54f1c4a218438b3b1c6803", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8765, "upload_time": "2016-05-03T11:35:18", "url": "https://files.pythonhosted.org/packages/4b/eb/fadd6bc4967fded31495ea70aebd3bdc90b83e3944d08bfd841039062f83/schema-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "7c84b045ed0c1de2246f1ec08dfdc003", "sha256": "07c63e4e78b697b4670a2107fd8c1b04b44229317326314cd1289911fbf13575" }, "downloads": -1, "filename": "schema-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7c84b045ed0c1de2246f1ec08dfdc003", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12165, "upload_time": "2016-07-18T16:37:23", "url": "https://files.pythonhosted.org/packages/e9/83/be9dd5c71118c836fd9bfee552f5c8e4a429b3e6f9b115907440b5c66f9d/schema-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "98b1ec0420e3d0fbca73818ba12cf840", "sha256": "5bc84e7e17ffe9f917081871b7734b1eccd408a8a2b2ed09f672474e667b76f8" }, "downloads": -1, "filename": "schema-0.6.0.tar.gz", "has_sig": false, "md5_digest": "98b1ec0420e3d0fbca73818ba12cf840", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9208, "upload_time": "2016-07-18T16:37:21", "url": "https://files.pythonhosted.org/packages/7b/95/a5b484a388b1a8319857bad256ba8e961c322d7126f0da99101ee0c78470/schema-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "f7dfe22011ad35cbaec51c72e0c6b055", "sha256": "ca1666c20df343920d93265debdf1b36247b20db2170d989e3e00878136d1d4c" }, "downloads": -1, "filename": "schema-0.6.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f7dfe22011ad35cbaec51c72e0c6b055", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12200, "upload_time": "2016-07-27T11:21:03", "url": "https://files.pythonhosted.org/packages/56/1f/6016d15f441e4d21670499811f9b7842f1a8eddb3881d75440f4461e507f/schema-0.6.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1057e0c06272fbcfe1ee1a596a318704", "sha256": "f529f8f6b2912a8839b713cfaeeaa3fea5f5e61d562b41afb9dfb83a7f8f4491" }, "downloads": -1, "filename": "schema-0.6.1.tar.gz", "has_sig": false, "md5_digest": "1057e0c06272fbcfe1ee1a596a318704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9250, "upload_time": "2016-07-27T11:21:06", "url": "https://files.pythonhosted.org/packages/9d/d2/982acb5a782a085a55c29e0476d206b22ac00eed27985623fc7a40c5dc05/schema-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "c4cd26221c032e2646e566fbe00b961e", "sha256": "057eff1563eab2cff82e4aceac25712eacbc315ad30fa441418efced7752d5c7" }, "downloads": -1, "filename": "schema-0.6.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c4cd26221c032e2646e566fbe00b961e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12291, "upload_time": "2016-07-27T16:57:15", "url": "https://files.pythonhosted.org/packages/60/2a/c4921b4f23f95d2d94d8f7a77554e62deb596cee6a4ad68aef65866beaf4/schema-0.6.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac1b359c31e9b37fbe9333902f6bdf76", "sha256": "958f25b80a811072df7c660b0b09d822c5dd553c1a87e6aff1f47ca538153a2f" }, "downloads": -1, "filename": "schema-0.6.2.tar.gz", "has_sig": false, "md5_digest": "ac1b359c31e9b37fbe9333902f6bdf76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9309, "upload_time": "2016-07-27T16:57:18", "url": "https://files.pythonhosted.org/packages/9b/3c/5924163d693f156684e1502df0b408512e18c70d7fa80244496fafdb5988/schema-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "c6e8d9ab71305f3e94b2c795393b3a4a", "sha256": "a58ce2482e8ce9c45dfe30cfc9b20762f0380c610d2f74fc6113ff4ca4c5c298" }, "downloads": -1, "filename": "schema-0.6.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c6e8d9ab71305f3e94b2c795393b3a4a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13151, "upload_time": "2016-09-19T13:00:41", "url": "https://files.pythonhosted.org/packages/15/76/701c6b0bb5f9f88956b8af792a67f65a00fa39d4f6d3885537053f5ae9d7/schema-0.6.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15231ecf22d1965938d14838671eb2e7", "sha256": "41ecf42e4b8b050c6046a659475aa55d7c104290acc74313774ba8c6c59b18bf" }, "downloads": -1, "filename": "schema-0.6.3.tar.gz", "has_sig": false, "md5_digest": "15231ecf22d1965938d14838671eb2e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13045, "upload_time": "2016-09-19T13:00:44", "url": "https://files.pythonhosted.org/packages/de/e7/607d417f3364e3b0998d20b05ece93914c5b83b7a904941cc18e7b43d738/schema-0.6.3.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "be6c695e4e3f8886ac74c1ac48e306a6", "sha256": "f66440699b4809fb79f87158f917ec6f43a2967c78f03188072743377fec5b33" }, "downloads": -1, "filename": "schema-0.6.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "be6c695e4e3f8886ac74c1ac48e306a6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13130, "upload_time": "2016-09-19T14:23:39", "url": "https://files.pythonhosted.org/packages/6d/fe/1c3f8fb99f50f3fc9304bf6065a40bc68786767c55ce7cb30dbf1f8aa1b5/schema-0.6.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04d1ed71742160ef591732c4cbf276a6", "sha256": "4bde47585a771d9ebe64e138b1fed5298ced9596e91cb2337f03310c57c34bfa" }, "downloads": -1, "filename": "schema-0.6.4.tar.gz", "has_sig": false, "md5_digest": "04d1ed71742160ef591732c4cbf276a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13040, "upload_time": "2016-09-19T14:23:36", "url": "https://files.pythonhosted.org/packages/78/e6/ebf9e3091ee332d7b9d9fdd006a39f19a176f6f0e834eb766b71b64018dc/schema-0.6.4.tar.gz" } ], "0.6.5": [ { "comment_text": "", "digests": { "md5": "7ce86886314d8a260412862fcdb90504", "sha256": "d9c2a189e541c26ebd846156110fd6a14827efd0e4710f33a8ab2ef0f05f0d63" }, "downloads": -1, "filename": "schema-0.6.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7ce86886314d8a260412862fcdb90504", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12907, "upload_time": "2016-09-26T11:25:32", "url": "https://files.pythonhosted.org/packages/af/be/3e2d5254cabb0bd1e18f7c16babd38363acc96d4d704120e247f1614ceca/schema-0.6.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "49966546df976a664b8b2be2764aa83a", "sha256": "b7494da450ce247fe8c7f2a8f9a73fbe5f1a634f64f734ce62aaba0708d76f0f" }, "downloads": -1, "filename": "schema-0.6.5.tar.gz", "has_sig": false, "md5_digest": "49966546df976a664b8b2be2764aa83a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16642, "upload_time": "2016-09-26T11:25:29", "url": "https://files.pythonhosted.org/packages/2b/4a/b611e3dc7638c416be86c3bf179bbb9a9abb418f82b3fe32a4c5713c8993/schema-0.6.5.tar.gz" } ], "0.6.6": [ { "comment_text": "", "digests": { "md5": "5dff2ff6d6dd9c804857c10d8d9adbcb", "sha256": "0e1b5453ea462a10744c612bc8989e2a058609beac7deba9edbac8c5b1a2e2b0" }, "downloads": -1, "filename": "schema-0.6.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5dff2ff6d6dd9c804857c10d8d9adbcb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13085, "upload_time": "2017-04-26T09:27:45", "url": "https://files.pythonhosted.org/packages/7b/46/657c4b2a4dbfd353df49cf39edf5955cd10a63a5111751e7e80d2676398d/schema-0.6.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0da19403e5e2abd49e323b0c076dde18", "sha256": "758b59ffc654d3794f6edd6e67db948f26164ddcd3cd7dde8bbeefc4934482d3" }, "downloads": -1, "filename": "schema-0.6.6.tar.gz", "has_sig": false, "md5_digest": "0da19403e5e2abd49e323b0c076dde18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13490, "upload_time": "2017-04-26T09:27:48", "url": "https://files.pythonhosted.org/packages/05/5c/25b7fccf722d579d1368415db031dbefedbbddac125363f7827af6aa5ece/schema-0.6.6.tar.gz" } ], "0.6.7": [ { "comment_text": "", "digests": { "md5": "4c55ae24291636ea1e1484f982a3ac11", "sha256": "a058daf5d926e4ece9f13c4c2366a836143ca7913ef053c5023c569e00175b2a" }, "downloads": -1, "filename": "schema-0.6.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4c55ae24291636ea1e1484f982a3ac11", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14409, "upload_time": "2018-01-09T02:04:35", "url": "https://files.pythonhosted.org/packages/5d/42/32c059aa876eb16521a292e634d18f25408b2441862ff823f59af273d720/schema-0.6.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba3e431118bb00ec522d516658de5c83", "sha256": "410f44cb025384959d20deef00b4e1595397fa30959947a4f0d92e9c84616f35" }, "downloads": -1, "filename": "schema-0.6.7.tar.gz", "has_sig": false, "md5_digest": "ba3e431118bb00ec522d516658de5c83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18746, "upload_time": "2018-01-09T02:04:37", "url": "https://files.pythonhosted.org/packages/ad/fd/07c85c70803465df171340d88b12b7f41f5181777053a5cd8d75ce2f4b89/schema-0.6.7.tar.gz" } ], "0.6.8": [ { "comment_text": "", "digests": { "md5": "59d7b1ff57c70161a1c92537029734b7", "sha256": "d994b0dc4966000037b26898df638e3e2a694cc73636cb2050e652614a350687" }, "downloads": -1, "filename": "schema-0.6.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "59d7b1ff57c70161a1c92537029734b7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14558, "upload_time": "2018-06-14T14:39:50", "url": "https://files.pythonhosted.org/packages/7b/6e/2b6b764a9a3d3aa366a857f4c5f34d27de4fca54c2b9b88f93ccf2821353/schema-0.6.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e83cdd1b88300ed0b34d106492cd647b", "sha256": "fa1a53fe5f3b6929725a4e81688c250f46838e25d8c1885a10a590c8c01a7b74" }, "downloads": -1, "filename": "schema-0.6.8.tar.gz", "has_sig": false, "md5_digest": "e83cdd1b88300ed0b34d106492cd647b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18970, "upload_time": "2018-06-14T14:39:52", "url": "https://files.pythonhosted.org/packages/aa/2a/367594933a260273dea8cb38bbfe194681fdb66895e6bf41844049d3ff70/schema-0.6.8.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "cd24aba1437a1e0b4433bcffe77c0e3f", "sha256": "5b0e0f47923164190513db2e91b9ab1941162b2dc400cc9b1803c2abab579e62" }, "downloads": -1, "filename": "schema-0.7.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cd24aba1437a1e0b4433bcffe77c0e3f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12870, "upload_time": "2019-02-25T22:43:25", "url": "https://files.pythonhosted.org/packages/74/f5/a14c01bcc9dbf99fd164fe2c55229569456f991a162daf62d3275714d241/schema-0.7.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ca4806d1b216db566415934e48ab7cdf", "sha256": "44add3ef9016c85ac4b0291b45286a657d0df309b31528ca8d0a9c6d0aa68186" }, "downloads": -1, "filename": "schema-0.7.0.tar.gz", "has_sig": false, "md5_digest": "ca4806d1b216db566415934e48ab7cdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19407, "upload_time": "2019-02-25T22:43:27", "url": "https://files.pythonhosted.org/packages/a5/ac/29e4a4d5be1fc8ba1a840853dbec1ab242f6e0bdd09fedb21e8383999fd3/schema-0.7.0.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "196635ef117c9d99f2ff7a0be577c3eb", "sha256": "10b550886f5ff402e1fdef85bd7be761b0e09a35a43633311807a57a5bc4db50" }, "downloads": -1, "filename": "schema-0.7.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "196635ef117c9d99f2ff7a0be577c3eb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16807, "upload_time": "2019-09-09T17:39:49", "url": "https://files.pythonhosted.org/packages/45/ae/a7e3cc8b885e681cbfee89d8d43dbc0168dbd033e2b2745eda6223477467/schema-0.7.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9fad55165c77baf47ea1bf254cc1f8ca", "sha256": "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959" }, "downloads": -1, "filename": "schema-0.7.1.tar.gz", "has_sig": false, "md5_digest": "9fad55165c77baf47ea1bf254cc1f8ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38957, "upload_time": "2019-09-09T17:39:52", "url": "https://files.pythonhosted.org/packages/f7/95/db0f50583e47d8b8cf346599880734de980a9f4bf040a0b5fb236e891c71/schema-0.7.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "196635ef117c9d99f2ff7a0be577c3eb", "sha256": "10b550886f5ff402e1fdef85bd7be761b0e09a35a43633311807a57a5bc4db50" }, "downloads": -1, "filename": "schema-0.7.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "196635ef117c9d99f2ff7a0be577c3eb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16807, "upload_time": "2019-09-09T17:39:49", "url": "https://files.pythonhosted.org/packages/45/ae/a7e3cc8b885e681cbfee89d8d43dbc0168dbd033e2b2745eda6223477467/schema-0.7.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9fad55165c77baf47ea1bf254cc1f8ca", "sha256": "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959" }, "downloads": -1, "filename": "schema-0.7.1.tar.gz", "has_sig": false, "md5_digest": "9fad55165c77baf47ea1bf254cc1f8ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38957, "upload_time": "2019-09-09T17:39:52", "url": "https://files.pythonhosted.org/packages/f7/95/db0f50583e47d8b8cf346599880734de980a9f4bf040a0b5fb236e891c71/schema-0.7.1.tar.gz" } ] }