{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "pyrx with error messages\n====\n\nPython implementation of the [Rx schema and validation system](http://rx.codesimply.com/)\n\nFork of [pyrx](https://github.com/uniphil/pyrx) with added error messages. Most of the readme is also taken from there, just with updated usage instuctions.\n\n\nForked\n------\n\nForked from the main [rx github repo](https://github.com/rjbs/rx) Nov 25 '13\nbecause the python implementation deserves its own place and testing and stuff.\n\nThe copyright line of the license for the rx repository reads:\n\n The contents of the Rx repository are copyright (C) 2008, Ricardo SIGNES.\n\nThe license itself is GPL2: https://github.com/rjbs/rx/blob/master/LICENSE\n\n\nRequirements\n------------\n\n* No external dependencies\n* Python2.7\n\n\nUsage\n-----\n\n```python\nimport pyrx\n\nrx = pyrx.Factory({\"register_core_types\": True})\n\nschema_src = {\n \"type\": \"//rec\",\n \"required\": {\n \"a\": \"//str\",\n \"b\": \"//int\",\n },\n \"optional\": {\n \"c\": \"//bool\",\n },\n}\n\nschema = rx.make_schema(schema_src)\n\nschema.check({\"a\": \"a string\", \"b\": 2}).valid # returns True\nschema.check({\"a\": \"a string\", \"b\": \"another string\"}).valid # returns False\nschema.check({\"a\": \"a string\", \"b\": \"another string\"}).message # returns an error message\n\n```\n\n\nTesting\n-------\n\npy.test test/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/advancedtelematic/pyrx", "keywords": null, "license": "GPLv2", "maintainer": null, "maintainer_email": null, "name": "pyrx-ats", "package_url": "https://pypi.org/project/pyrx-ats/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyrx-ats/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/advancedtelematic/pyrx" }, "release_url": "https://pypi.org/project/pyrx-ats/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "Rx schema and validation system, with added error messages", "version": "0.3.1" }, "last_serial": 1626486, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "56ab3ad74572c8f615e6f3738634aab1", "sha256": "e1d42b31b351d104d65d3d844c1ac8065367ec5adf05823775e3a15793bf2bb2" }, "downloads": -1, "filename": "pyrx-ats-0.3.0.tar.gz", "has_sig": false, "md5_digest": "56ab3ad74572c8f615e6f3738634aab1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6656, "upload_time": "2015-06-24T08:12:12", "url": "https://files.pythonhosted.org/packages/e6/86/e00081ee635bcdc10548bbdfe87cf8c7e7fb33a44553601e2f3db02fbe84/pyrx-ats-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "2bd38f13945481ab0e61c25574e1c41a", "sha256": "7e02733de305886472f4a9fb718355973ddd878e7af80d10f855b435114f805a" }, "downloads": -1, "filename": "pyrx-ats-0.3.1.tar.gz", "has_sig": false, "md5_digest": "2bd38f13945481ab0e61c25574e1c41a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6666, "upload_time": "2015-07-09T15:00:49", "url": "https://files.pythonhosted.org/packages/d7/fb/54ca6e0a8fb983bc376d1333328b99e0f429ef5524aac9a47967d85fdd90/pyrx-ats-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2bd38f13945481ab0e61c25574e1c41a", "sha256": "7e02733de305886472f4a9fb718355973ddd878e7af80d10f855b435114f805a" }, "downloads": -1, "filename": "pyrx-ats-0.3.1.tar.gz", "has_sig": false, "md5_digest": "2bd38f13945481ab0e61c25574e1c41a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6666, "upload_time": "2015-07-09T15:00:49", "url": "https://files.pythonhosted.org/packages/d7/fb/54ca6e0a8fb983bc376d1333328b99e0f429ef5524aac9a47967d85fdd90/pyrx-ats-0.3.1.tar.gz" } ] }