{ "info": { "author": "nrbontha", "author_email": "nrbontha@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# Pandas DataFrame Validator\n\n`pd-validator` is a pandas wrapper library for validating DataFrames against a user-defined schema. \n\n```\n>>> import pandas as pd\n>>> from pd_validator import Schema\n>>> from pd_validator import Report\n\n>>> df = pd.read_csv('data.csv')\n>>> df\n col_1 col_2 \n A B \n 1 BC \n 2 D\n NaN A\n\n>>> rules = {'col_1': {'dtype': int, \n 'length': 1, \n 'range': [0,1], \n 'required': True, \n 'codes': False, \n 'regex': False},\n 'col_2': {'dtype': str,\n 'length': 1,\n 'range': False,\n 'required': False,\n 'codes': ['A', 'B', 'C'],\n 'regex': False}\n }\n\n>>> schema = Schema(rules=rules)\n\n>>> report = Report(df=df, schema=schema())\n>>> report()\n col_1 col_2 inval_line inval_col inval_val err_msg\n 1 BC 2 col_2 BC Invalid length: 1 char max\n 1 BC 2 col_2 BC Invalid code: ['A', 'B', 'C'] required\n 2 D 3 col_2 D Invalid code: ['A', 'B', 'C'] required\n A B 1 col_1 A Invalid dtype: int required\n A B 1 col_1 A Invalid range: [0, 1] required\n 2 D 3 col_1 2 Invalid range: [0, 1] required\n NaN A 4 col_1 NaN Missing value: col_1 required\n\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nrbontha/pd-validator", "keywords": "pandas,data,validation,analysis", "license": "", "maintainer": "", "maintainer_email": "", "name": "pd-validator", "package_url": "https://pypi.org/project/pd-validator/", "platform": "", "project_url": "https://pypi.org/project/pd-validator/", "project_urls": { "Homepage": "https://github.com/nrbontha/pd-validator" }, "release_url": "https://pypi.org/project/pd-validator/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "pandas DataFrame validation library", "version": "1.0.0" }, "last_serial": 3940767, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "693c2e753ff56cd720b994756afc9bc6", "sha256": "3227429530368f5fd9a63906f22038c60f0a68bddc6567338187f78e19fc2a64" }, "downloads": -1, "filename": "pd_validator-1.0.0-py2.7.egg", "has_sig": false, "md5_digest": "693c2e753ff56cd720b994756afc9bc6", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 13142, "upload_time": "2018-06-07T19:08:19", "url": "https://files.pythonhosted.org/packages/6e/8d/910e6c34cce792e4a3c7b84bd8e341eae4e1cef0715e41e015c82c01220b/pd_validator-1.0.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e488283b0bee030a6be99894b150c3b6", "sha256": "abbce9bef7dee5d2b935e3c8db764cd2312649d9d1f35a790c7f539de0ed5310" }, "downloads": -1, "filename": "pd_validator-1.0.0-py3.5.egg", "has_sig": false, "md5_digest": "e488283b0bee030a6be99894b150c3b6", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 13602, "upload_time": "2018-06-07T19:08:20", "url": "https://files.pythonhosted.org/packages/24/73/8ae127b12247bdd41fe7da1d519ad649b6f56f23e33f20252a33377729d4/pd_validator-1.0.0-py3.5.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "693c2e753ff56cd720b994756afc9bc6", "sha256": "3227429530368f5fd9a63906f22038c60f0a68bddc6567338187f78e19fc2a64" }, "downloads": -1, "filename": "pd_validator-1.0.0-py2.7.egg", "has_sig": false, "md5_digest": "693c2e753ff56cd720b994756afc9bc6", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 13142, "upload_time": "2018-06-07T19:08:19", "url": "https://files.pythonhosted.org/packages/6e/8d/910e6c34cce792e4a3c7b84bd8e341eae4e1cef0715e41e015c82c01220b/pd_validator-1.0.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e488283b0bee030a6be99894b150c3b6", "sha256": "abbce9bef7dee5d2b935e3c8db764cd2312649d9d1f35a790c7f539de0ed5310" }, "downloads": -1, "filename": "pd_validator-1.0.0-py3.5.egg", "has_sig": false, "md5_digest": "e488283b0bee030a6be99894b150c3b6", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 13602, "upload_time": "2018-06-07T19:08:20", "url": "https://files.pythonhosted.org/packages/24/73/8ae127b12247bdd41fe7da1d519ad649b6f56f23e33f20252a33377729d4/pd_validator-1.0.0-py3.5.egg" } ] }