{ "info": { "author": "Dmitry Dvoinikov", "author_email": "dmitry@targeted.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "typecheck3\n===\n\nAn easy-to-use Python 3 runtime typechecker.\n\nUsage\n---\n\nThe typical usage for this decorator would be something like this:\n\n @typecheck\n def foo(i: int) -> bool:\n return a > 0\n\n @typecheck\n def to_int(*, s: by_regex(\"^[0-9]+$\")) -> int:\n return int(s)\n\n @typecheck\n def set_debug_level(self, level: optional(one_of(1, 2, 3)) = 2):\n self._level = level\n\nThis recipe is extensible with callable predicates, such as\n\n is_even = lambda x: x % 2 == 0\n\n @typecheck\n def multiply_by_2(i: int) -> is_even:\n return i * 2\n\nCredits\n---\n\nThe code was written by Dmitri Dvoinikov and maintained by Esteban Ordano\n(@eordano on twitter).\n\nOriginal link:\n\nhttp://code.activestate.com/recipes/572161/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://code.activestate.com/recipes/572161/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "typecheck3", "package_url": "https://pypi.org/project/typecheck3/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/typecheck3/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://code.activestate.com/recipes/572161/" }, "release_url": "https://pypi.org/project/typecheck3/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A Python 3 easy to use runtime typechecker", "version": "0.1.0" }, "last_serial": 1025078, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9c136a6cdb0ad97200d03554f128b8f0", "sha256": "6dc777b12402f45e0a0bd355dbce455976618afbc5f3d235affe8d9f393cc08e" }, "downloads": -1, "filename": "typecheck3-0.1.0-py3.3.egg", "has_sig": true, "md5_digest": "9c136a6cdb0ad97200d03554f128b8f0", "packagetype": "bdist_egg", "python_version": "3.3", "requires_python": null, "size": 1385, "upload_time": "2014-03-10T15:45:11", "url": "https://files.pythonhosted.org/packages/87/35/2f4f5eeea4ac99348e549e380989b3be8d5c37751690236e693ed2082a70/typecheck3-0.1.0-py3.3.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c136a6cdb0ad97200d03554f128b8f0", "sha256": "6dc777b12402f45e0a0bd355dbce455976618afbc5f3d235affe8d9f393cc08e" }, "downloads": -1, "filename": "typecheck3-0.1.0-py3.3.egg", "has_sig": true, "md5_digest": "9c136a6cdb0ad97200d03554f128b8f0", "packagetype": "bdist_egg", "python_version": "3.3", "requires_python": null, "size": 1385, "upload_time": "2014-03-10T15:45:11", "url": "https://files.pythonhosted.org/packages/87/35/2f4f5eeea4ac99348e549e380989b3be8d5c37751690236e693ed2082a70/typecheck3-0.1.0-py3.3.egg" } ] }