{ "info": { "author": "Rakesh Vasudevan", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "# Complaince\nA python function parameter and return type-checking decorator\n\nBoth the parameters types and return type(optional to check for return type)\ncan be done using a single decorator. \n\nEach parameter can have multiple possible types , mentioned in a tuple\n\nInstallation\n============\n\n```bash\n pip install complaince\n```\n\nExamples\n========\nWhen plainly checking parameter types\n\n```python\n @param_check((int,float),(int,float))\n def myfunc(a, b):\n```\nThis indicates the parameters a,b can be either int or float\n\n```python\n @param_check((int,),(int,))\n def myfunc(a, b):\n```\nIn this case both a and b have to be int only (tuple definition is a must )\n\nThere is are two optional parameters:\n\n1. level - Key-Value pair indicates warning message to stderr or throw an exception (0 - warning , 1 - exception error) Default\n is warning i.e 0\n\n2. ret - Key-Value pair indicating possible return types, in this case too\n value is a tuple\n\n```python\n @param_check((int,float),(int,float), level = 1, ret = (int,float))\n def myfunc(a, b)\n```\nIn the above example we will throw an exception if the parameters, return value do not match\nrequired types. Return value can be either an in or float\n\nCompatability\n=============\nRequires python 2.6 or higher\nWorks with python 3.0 and higher", "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/vrakesh/Complaince", "keywords": null, "license": "'Apache'", "maintainer": null, "maintainer_email": null, "name": "complaince", "package_url": "https://pypi.org/project/complaince/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/complaince/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/vrakesh/Complaince" }, "release_url": "https://pypi.org/project/complaince/1.0.2.0b0.dev2/", "requires_dist": null, "requires_python": null, "summary": "A python function parameter and return type-checking decorator", "version": "1.0.2.0b0.dev2" }, "last_serial": 1703912, "releases": { "1.0.0.0b1.dev1": [ { "comment_text": "", "digests": { "md5": "1170a03bb2c170192c28750fa18e2e16", "sha256": "25f91c4ee4c500e35042cef12c64a84366d09555b15d27c9a9561abf883bf7ab" }, "downloads": -1, "filename": "complaince-1.0.0.0b1.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1170a03bb2c170192c28750fa18e2e16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5003, "upload_time": "2015-09-01T21:53:54", "url": "https://files.pythonhosted.org/packages/2b/20/c305a2a9aa6cbcbc350b370a9c81babefde398fe10be377e2d0a4f2411cf/complaince-1.0.0.0b1.dev1-py2.py3-none-any.whl" } ], "1.0.1.0b1.dev1": [ { "comment_text": "", "digests": { "md5": "8561f35c3ab51d43b3e08aeb352318a9", "sha256": "4644e0ab0e09dc5466f94bc29a2a5bf460604a0d0ee8e96a26ae4352810c152e" }, "downloads": -1, "filename": "complaince-1.0.1.0b1.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8561f35c3ab51d43b3e08aeb352318a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4994, "upload_time": "2015-09-01T22:11:07", "url": "https://files.pythonhosted.org/packages/ee/8d/ebdc744f2e07e3e2ab401f3abdcccac44bf6a41aca29786b17f111f3f939/complaince-1.0.1.0b1.dev1-py2.py3-none-any.whl" } ], "1.0.2.0b0.dev2": [ { "comment_text": "", "digests": { "md5": "5b66eea3328a20453b68af4e9962b4bf", "sha256": "1822d507ff109bc11ff91bd7f5536df3935688c50d6d091caf62eac0b0b4bfc1" }, "downloads": -1, "filename": "complaince-1.0.2.0b0.dev2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5b66eea3328a20453b68af4e9962b4bf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4976, "upload_time": "2015-09-01T23:46:56", "url": "https://files.pythonhosted.org/packages/20/f0/c663a12627dff420147dccd24a82a8f5ed4ae0596f0256ea7a1f7a3175c4/complaince-1.0.2.0b0.dev2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b66eea3328a20453b68af4e9962b4bf", "sha256": "1822d507ff109bc11ff91bd7f5536df3935688c50d6d091caf62eac0b0b4bfc1" }, "downloads": -1, "filename": "complaince-1.0.2.0b0.dev2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5b66eea3328a20453b68af4e9962b4bf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4976, "upload_time": "2015-09-01T23:46:56", "url": "https://files.pythonhosted.org/packages/20/f0/c663a12627dff420147dccd24a82a8f5ed4ae0596f0256ea7a1f7a3175c4/complaince-1.0.2.0b0.dev2-py2.py3-none-any.whl" } ] }