{"id":15013014,"url":"https://github.com/jpmckinney/validictory","last_synced_at":"2025-12-12T00:40:57.127Z","repository":{"id":997635,"uuid":"808385","full_name":"jpmckinney/validictory","owner":"jpmckinney","description":"🎓 deprecated general purpose python data validator","archived":false,"fork":false,"pushed_at":"2024-02-15T19:44:50.000Z","size":391,"stargazers_count":239,"open_issues_count":3,"forks_count":57,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-05-01T22:37:52.918Z","etag":null,"topics":["jsonschema","python","validation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpmckinney.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.txt","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-07-30T21:40:15.000Z","updated_at":"2024-06-18T15:28:00.371Z","dependencies_parsed_at":"2024-06-18T15:27:55.474Z","dependency_job_id":"ac17cd22-a2f5-4052-9da7-9ff47550eb75","html_url":"https://github.com/jpmckinney/validictory","commit_stats":null,"previous_names":["jpmckinney/validictory","jamesturk/validictory"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmckinney%2Fvalidictory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmckinney%2Fvalidictory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmckinney%2Fvalidictory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmckinney%2Fvalidictory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmckinney","download_url":"https://codeload.github.com/jpmckinney/validictory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jsonschema","python","validation"],"created_at":"2024-09-24T19:43:36.198Z","updated_at":"2025-12-12T00:40:57.089Z","avatar_url":"https://github.com/jpmckinney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========\r\nvalidictory\r\n===========\r\n\r\n:warning: **:warning: As of 2018 this library is deprecated, please consider using jsonschema (https://pypi.python.org/pypi/jsonschema) instead.**\r\n\r\n\r\n.. image:: https://travis-ci.org/jamesturk/validictory.svg?branch=master\r\n    :target: https://travis-ci.org/jamesturk/validictory\r\n\r\n.. image:: https://coveralls.io/repos/jamesturk/validictory/badge.png?branch=master\r\n    :target: https://coveralls.io/r/jamesturk/validictory\r\n\r\n.. image:: https://img.shields.io/pypi/v/validictory.svg\r\n    :target: https://pypi.python.org/pypi/validictory\r\n\r\n.. image:: https://readthedocs.org/projects/validictory/badge/?version=latest\r\n    :target: https://readthedocs.org/projects/validictory/?badge=latest\r\n    :alt: Documentation Status\r\n\r\n\r\nA general purpose Python data validator.\r\n\r\nSchema format based on JSON Schema Proposal (http://json-schema.org)\r\n\r\nContains code derived from jsonschema, by Ian Lewis and Yusuke Muraoka.\r\n\r\nUsage\r\n=====\r\n\r\nJSON documents and schema must first be loaded into a Python dictionary type\r\nbefore it can be validated.\r\n\r\nParsing a simple JSON document::\r\n\r\n    \u003e\u003e\u003e import validictory\r\n    \u003e\u003e\u003e\r\n    \u003e\u003e\u003e validictory.validate(\"something\", {\"type\":\"string\"})\r\n\r\nParsing a more complex JSON document::\r\n\r\n    \u003e\u003e\u003e import json\r\n    \u003e\u003e\u003e import validictory\r\n    \u003e\u003e\u003e\r\n    \u003e\u003e\u003e data = json.loads('[\"foo\", {\"bar\":[\"baz\", null, 1.0, 2]}]')\r\n    \u003e\u003e\u003e schema = {\r\n    ...   \"type\":\"array\",\r\n    ...   \"items\":[\r\n    ...     {\"type\":\"string\"},\r\n    ...     {\"type\":\"object\",\r\n    ...      \"properties\":{\r\n    ...        \"bar\":{\r\n    ...          \"items\":[\r\n    ...            {\"type\":\"string\"},\r\n    ...            {\"type\":\"any\"},\r\n    ...            {\"type\":\"number\"},\r\n    ...            {\"type\":\"integer\"}\r\n    ...          ]\r\n    ...        }\r\n    ...      }\r\n    ...    }\r\n    ...   ]\r\n    ... }\r\n    \u003e\u003e\u003e validictory.validate(data,schema)\r\n\r\nCatch ValueErrors to handle validation issues::\r\n\r\n    \u003e\u003e\u003e import validictory\r\n    \u003e\u003e\u003e\r\n    \u003e\u003e\u003e try:\r\n    ...     validictory.validate(\"something\", {\"type\":\"string\",\"minLength\":15})\r\n    ... except ValueError, error:\r\n    ...     print(error)\r\n    ...\r\n    Length of value 'something' for field '_data' must be greater than or equal to 15\r\n\r\nYou can read more in the official documentation at `Read the Docs \u003chttp://validictory.readthedocs.org/en/latest/\u003e`_.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmckinney%2Fvalidictory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmckinney%2Fvalidictory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmckinney%2Fvalidictory/lists"}