{ "info": { "author": "Kiven", "author_email": "kiven.mr@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Takayi\nType hints for python 2.X.\n\n`takayi` means `high` in japanese.\n\n## Usage\n\n```python\nfrom takayi.parser import Parser, typehints\n\nparser = Parser()\n\n# ==================================================\n@typehints(parser)\ndef get_sum(x, y):\n # type: (int, int) -> int\n return x + y\n\n_sum = get_sum(1, 2) # result should be 3\n\n# takayi.exc.ParameterTypeError: Expect => [, ], Actually => [, ]\n_err_sum = get_sum(1, 'hello')\n\n\n# ==================================================\n@typehints(parser)\ndef test(x, y=1):\n # type: (int, y: int) -> int\n return x + y\n\nassert test(1, y=10) == 11\n\n\n# ==================================================\nclass Node(object): pass\n\nnode = Node()\n\n\n@typehints(parser, attach_cls=Node)\ndef get_node():\n # type: () -> Node\n return node\n```\n\n## TODO\n\n- [x] Support kwargs type check\n- [ ] More types. FYI: [pep484](https://www.python.org/dev/peps/pep-0484/)\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/MrKiven/Takayi", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "takayi", "package_url": "https://pypi.org/project/takayi/", "platform": "", "project_url": "https://pypi.org/project/takayi/", "project_urls": { "Homepage": "https://github.com/MrKiven/Takayi" }, "release_url": "https://pypi.org/project/takayi/0.3.3/", "requires_dist": null, "requires_python": "", "summary": "Type hints for python 2.x", "version": "0.3.3" }, "last_serial": 2640359, "releases": { "0.3.3": [ { "comment_text": "", "digests": { "md5": "45f54eb3cba0608cb44ec906e8e8c0ea", "sha256": "69c0318b81f1efc223844bf49b10a28f8b7b65103e69229466cfc2e0925a6225" }, "downloads": -1, "filename": "takayi-0.3.3-py2-none-any.whl", "has_sig": false, "md5_digest": "45f54eb3cba0608cb44ec906e8e8c0ea", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7478, "upload_time": "2017-02-14T07:45:39", "url": "https://files.pythonhosted.org/packages/9c/28/3c0f8a92e60c430b3c00f163cbe3fee502bf3739bc5ea9bcb42a5381707e/takayi-0.3.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "123183496f88e4c7b7f089a47e36a298", "sha256": "962f840929a64461801b1201d3f8a4654a064adda6937e5853cab9e945114dda" }, "downloads": -1, "filename": "takayi-0.3.3.tar.gz", "has_sig": false, "md5_digest": "123183496f88e4c7b7f089a47e36a298", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4732, "upload_time": "2017-02-14T07:45:36", "url": "https://files.pythonhosted.org/packages/61/8d/552c797dc30ccbf94714e1e46b3bfd60037ba0628da76551319e395881e9/takayi-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "45f54eb3cba0608cb44ec906e8e8c0ea", "sha256": "69c0318b81f1efc223844bf49b10a28f8b7b65103e69229466cfc2e0925a6225" }, "downloads": -1, "filename": "takayi-0.3.3-py2-none-any.whl", "has_sig": false, "md5_digest": "45f54eb3cba0608cb44ec906e8e8c0ea", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7478, "upload_time": "2017-02-14T07:45:39", "url": "https://files.pythonhosted.org/packages/9c/28/3c0f8a92e60c430b3c00f163cbe3fee502bf3739bc5ea9bcb42a5381707e/takayi-0.3.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "123183496f88e4c7b7f089a47e36a298", "sha256": "962f840929a64461801b1201d3f8a4654a064adda6937e5853cab9e945114dda" }, "downloads": -1, "filename": "takayi-0.3.3.tar.gz", "has_sig": false, "md5_digest": "123183496f88e4c7b7f089a47e36a298", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4732, "upload_time": "2017-02-14T07:45:36", "url": "https://files.pythonhosted.org/packages/61/8d/552c797dc30ccbf94714e1e46b3bfd60037ba0628da76551319e395881e9/takayi-0.3.3.tar.gz" } ] }