{ "info": { "author": "Anand Tripathi", "author_email": "anand.tripathi507@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# function_validator\nFunction Validator library comes with a req_validator decorator that validates the function keyword argument against its datatype, keyword name, required and logs the keyerror that you provide in the error description.\n\n\n\nInstallation Instruction!\n===================\n\n>- Activate your Virtual Environment.\n>- pip install function-validator\n\n----------\n\n**function-validator** is library having req_validator decorator that validates the request parameters.\n\n# Usage\n\n 1. Import function logger library\n\t - `from function_validator import req_validator`\n\n# Example\n\n```python\nfrom function_validator import req_validator\n\n@req_validator(param_name=\"age\", err_description=\"int not found\", req=True, var_type=int)\n@req_validator(param_name=\"name\", err_description=\"string not found\", req=True, var_type=basestring)\n@req_validator(param_name=\"quality\", err_description=\"dict not found\", req=True, var_type=dict)\n@req_validator(param_name=\"friend_list\", err_description=\"list not found\", req=True, var_type=list)\ndef test_function(**kwargs):\n print kwargs\n\n\nif __name__ == '__main__':\n test_function(age = 23, name = \"Anand\", quality = {\"height\": 172}, friend_list = [\"anand\"])\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/anandtripathi5/function_validator", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "function-validator", "package_url": "https://pypi.org/project/function-validator/", "platform": "", "project_url": "https://pypi.org/project/function-validator/", "project_urls": { "Homepage": "https://github.com/anandtripathi5/function_validator" }, "release_url": "https://pypi.org/project/function-validator/0.1/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.1" }, "last_serial": 3327661, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5b00ef46a1ab15ba3fbe13e45edc3fac", "sha256": "0c2bd2a105f15c7d60ab94cf89f831af5c3cbd289fb921dbc2fec9f6dc48987c" }, "downloads": -1, "filename": "function_validator-0.1.tar.gz", "has_sig": false, "md5_digest": "5b00ef46a1ab15ba3fbe13e45edc3fac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1799, "upload_time": "2017-11-13T06:14:42", "url": "https://files.pythonhosted.org/packages/e6/53/263da09d33110624e54f5cf84282cbb16aae549c4703bdca08f1bf68960a/function_validator-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b00ef46a1ab15ba3fbe13e45edc3fac", "sha256": "0c2bd2a105f15c7d60ab94cf89f831af5c3cbd289fb921dbc2fec9f6dc48987c" }, "downloads": -1, "filename": "function_validator-0.1.tar.gz", "has_sig": false, "md5_digest": "5b00ef46a1ab15ba3fbe13e45edc3fac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1799, "upload_time": "2017-11-13T06:14:42", "url": "https://files.pythonhosted.org/packages/e6/53/263da09d33110624e54f5cf84282cbb16aae549c4703bdca08f1bf68960a/function_validator-0.1.tar.gz" } ] }