{ "info": { "author": "Tom Cobb", "author_email": "tom.cobb@diamond.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "AnnoTypes\n=========\n\n|build_status| |coverage| |pypi_version|\n\nAdding annotations to Python types while still being compatible with mypy_ and PyCharm_\n\nYou can write things like:\n\n.. code:: python\n\n from annotypes import Anno, WithCallTypes\n\n with Anno(\"The exposure time for the camera\"):\n AExposure = float\n with Anno(\"The full path to the text file to write\"):\n APath = str\n\n class Simple(WithCallTypes):\n def __init__(self, exposure, path=\"/tmp/file.txt\"):\n # type: (AExposure, APath) -> None\n self.exposure = exposure\n self.path = path\n\n\nor the Python3 alternative:\n\n.. code:: python\n\n from annotypes import Anno, WithCallTypes\n\n with Anno(\"The exposure time for the camera\"):\n AExposure = float\n with Anno(\"The full path to the text file to write\"):\n APath = str\n\n class Simple(WithCallTypes):\n def __init__(self, exposure: AExposure, path: APath = \"/tmp/file.txt\"):\n self.exposure = exposure\n self.path = path\n\n\nAnd at runtime see what you should pass to call it and what it will return:\n\n.. code:: pycon\n\n >>> from annotypes.py2_examples.simple import Simple\n >>> list(Simple.call_types)\n ['exposure', 'path']\n >>> Simple.call_types['exposure']\n Anno(name='AExposure', typ=, description='The exposure time for the camera')\n >>> Simple.return_type\n Anno(name='Instance', typ=, description='Class instance')\n\n\nFor more examples see the `Python 2 examples`_ or `Python 3 examples`_.\n\nInstallation\n------------\nTo install the latest release, type::\n\n pip install annotypes\n\nTo install the latest code directly from source, type::\n\n pip install git+git://github.com/dls-controls/annotypes.git\n\n\nChangelog\n---------\n\nSee `CHANGELOG`_\n\nContributing\n------------\n\nSee `CONTRIBUTING`_\n\nLicense\n-------\nAPACHE License. (see `LICENSE`_)\n\n.. |build_status| image:: https://travis-ci.org/dls-controls/annotypes.svg?branch=master\n :target: https://travis-ci.org/dls-controls/annotypes\n :alt: Build Status\n\n.. |coverage| image:: https://codecov.io/gh/dls-controls/annotypes/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/dls-controls/annotypes\n :alt: Test coverage\n\n.. |pypi_version| image:: https://img.shields.io/pypi/v/annotypes.svg\n :target: https://pypi.python.org/pypi/annotypes/\n :alt: Latest PyPI version\n\n.. _mypy:\n http://mypy.readthedocs.io/en/latest/introduction.html\n\n.. _PyCharm:\n https://www.jetbrains.com/help/pycharm/type-hinting-in-pycharm.html\n\n.. _Python 2 examples:\n https://github.com/dls-controls/annotypes/tree/master/annotypes/py2_examples\n\n.. _Python 3 examples:\n https://github.com/dls-controls/annotypes/tree/master/annotypes/py3_examples\n\n.. _CHANGELOG:\n https://github.com/dls-controls/annotypes/blob/master/CHANGELOG.rst\n\n.. _CONTRIBUTING:\n https://github.com/dls-controls/annotypes/blob/master/CONTRIBUTING.rst\n\n.. _LICENSE:\n https://github.com/dls-controls/annotypes/blob/master/LICENSE", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dls-controls/annotypes", "keywords": "", "license": "APACHE", "maintainer": "", "maintainer_email": "", "name": "annotypes", "package_url": "https://pypi.org/project/annotypes/", "platform": "", "project_url": "https://pypi.org/project/annotypes/", "project_urls": { "Homepage": "https://github.com/dls-controls/annotypes" }, "release_url": "https://pypi.org/project/annotypes/0.20/", "requires_dist": null, "requires_python": "", "summary": "Annotating type hints and comments with extra metatdata", "version": "0.20" }, "last_serial": 5476255, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "908e7a1562b8ef2222d5690745ffe9bc", "sha256": "9c5ddf17cffe108957494332e4a00f470933209dcbd6ee873078c5dc53b17f49" }, "downloads": -1, "filename": "annotypes-0.1.tar.gz", "has_sig": false, "md5_digest": "908e7a1562b8ef2222d5690745ffe9bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9171, "upload_time": "2018-01-02T10:07:14", "url": "https://files.pythonhosted.org/packages/5c/eb/af95d12c808e08962bc685eb7f4c33aa513c6573c2e054393d5bced07818/annotypes-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "156c522f7f880295f2cabf34c233c9fe", "sha256": "02ef5d9017c82b0d88e53d8e0c2368262abf4e3d9d30cf84e360556b0463cc62" }, "downloads": -1, "filename": "annotypes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "156c522f7f880295f2cabf34c233c9fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15824, "upload_time": "2018-01-02T13:53:39", "url": "https://files.pythonhosted.org/packages/65/80/0ac8a365ace1f53cdfff514548a278f9eb535bd57e81555f7b6735232961/annotypes-0.1.1.tar.gz" } ], "0.10": [ { "comment_text": "", "digests": { "md5": "6e7b21a255001ec4ae0660da98e6fd2b", "sha256": "b0b366d964dff4e5843d3ff6f0f98edaa81c11cb2cd3267d184be0bbfb1f6441" }, "downloads": -1, "filename": "annotypes-0.10.tar.gz", "has_sig": false, "md5_digest": "6e7b21a255001ec4ae0660da98e6fd2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19863, "upload_time": "2018-12-13T11:45:56", "url": "https://files.pythonhosted.org/packages/0e/b7/3922e415fbcff944232546065b32baf3dbfcf93235a33f94b92339f50015/annotypes-0.10.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "aca51bb269f5d115adb87fdc37a15491", "sha256": "589d41f92522c34310282fdd03806ed755219a4a9ecfa21baedbd1bb35af670a" }, "downloads": -1, "filename": "annotypes-0.11.tar.gz", "has_sig": false, "md5_digest": "aca51bb269f5d115adb87fdc37a15491", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21094, "upload_time": "2019-03-04T13:46:35", "url": "https://files.pythonhosted.org/packages/9c/e7/659bcb23ec7e8709c28fc2793260d3b2d43b23b553e98b3cddb8710b20cc/annotypes-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "7aabb1eb5f8e976d8af7ee84c60a11fd", "sha256": "621de8f851a00ca379c8a12a6767dae1fb71775442815642762569d66b222fb1" }, "downloads": -1, "filename": "annotypes-0.12.tar.gz", "has_sig": false, "md5_digest": "7aabb1eb5f8e976d8af7ee84c60a11fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21217, "upload_time": "2019-03-12T11:10:57", "url": "https://files.pythonhosted.org/packages/06/ac/9393f3248b222422ed6780d75984983c8adbfac24780140127888cef39f7/annotypes-0.12.tar.gz" } ], "0.13": [ { "comment_text": "", "digests": { "md5": "90d9048498335aeaa92890b1a4b185c6", "sha256": "815baf333aed7e4c2c039f90e6650f771fe3d1785fbdc2e8e9388e5bc9e4e61b" }, "downloads": -1, "filename": "annotypes-0.13.tar.gz", "has_sig": false, "md5_digest": "90d9048498335aeaa92890b1a4b185c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22736, "upload_time": "2019-03-20T15:49:56", "url": "https://files.pythonhosted.org/packages/c0/6b/a68cc0a8f8d97e834d5d6eb78cf78691bd862470fded8937ad4f2da4b23f/annotypes-0.13.tar.gz" } ], "0.14": [ { "comment_text": "", "digests": { "md5": "eb2f9e5438ad8449dd7450dba99467ab", "sha256": "2d5abd3463aded1a7f2a4f86bcaac9325d880b4e322aef279f31808472a9e651" }, "downloads": -1, "filename": "annotypes-0.14.tar.gz", "has_sig": false, "md5_digest": "eb2f9e5438ad8449dd7450dba99467ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22771, "upload_time": "2019-03-21T11:36:09", "url": "https://files.pythonhosted.org/packages/21/e5/25019b7ce5ee44c9674a4f02d3b7025062a4983e4c45cc0a134e0c4ee419/annotypes-0.14.tar.gz" } ], "0.15": [ { "comment_text": "", "digests": { "md5": "de4e251e6e8faf493412b7271da18e5b", "sha256": "7aca8507ccb29a5875aab6d9fe403c5f7de1d0442c81f3c2d9000df9b9b6bbc1" }, "downloads": -1, "filename": "annotypes-0.15.tar.gz", "has_sig": false, "md5_digest": "de4e251e6e8faf493412b7271da18e5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22875, "upload_time": "2019-03-21T13:44:23", "url": "https://files.pythonhosted.org/packages/40/da/b799e2845ca94d25cc41eb3c3ae80079cca15ab3cf437a501df2891a06c7/annotypes-0.15.tar.gz" } ], "0.16": [ { "comment_text": "", "digests": { "md5": "5e0db68da4d2b7a8e68b1369265f2c2a", "sha256": "6467752972557aef8785b60503fcd272908242c0fa01014ee3ead2c7916dffcc" }, "downloads": -1, "filename": "annotypes-0.16.tar.gz", "has_sig": false, "md5_digest": "5e0db68da4d2b7a8e68b1369265f2c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23074, "upload_time": "2019-05-02T14:29:38", "url": "https://files.pythonhosted.org/packages/34/44/32cf655d4eec9a1e2020498bcd365164276c9386074a4c5ffb4eedec859e/annotypes-0.16.tar.gz" } ], "0.17": [ { "comment_text": "", "digests": { "md5": "864df65da8c7b8ada1c977f30b937237", "sha256": "c48fb561bf648843af438b25812f56cc0b4a733001ef237d6e0e887b51c9d2b7" }, "downloads": -1, "filename": "annotypes-0.17.tar.gz", "has_sig": false, "md5_digest": "864df65da8c7b8ada1c977f30b937237", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23120, "upload_time": "2019-05-03T16:18:44", "url": "https://files.pythonhosted.org/packages/21/33/1af979fedeefac652683d954a159f4e2d3b1c67ec32eae04ac7346fb4ef0/annotypes-0.17.tar.gz" } ], "0.18": [ { "comment_text": "", "digests": { "md5": "a222e72fcdecd3236515c25aa8c7fce4", "sha256": "83b2c9d58c24efcd069625642bdb11c4ac4c6d85a62d52fd264e55bb76158689" }, "downloads": -1, "filename": "annotypes-0.18.tar.gz", "has_sig": false, "md5_digest": "a222e72fcdecd3236515c25aa8c7fce4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19356, "upload_time": "2019-07-02T06:36:19", "url": "https://files.pythonhosted.org/packages/9f/dc/962b3ef96b5d1806eaf51a7048aeef813d7e4fe4ca4a12fddb95a6a39bdd/annotypes-0.18.tar.gz" } ], "0.19": [ { "comment_text": "", "digests": { "md5": "6f43a02bee15a75988c81c8d225bcbe3", "sha256": "d67e74866f041a9e3901b5784cceecacc47642ec427c83fa14c8cdcc705855e6" }, "downloads": -1, "filename": "annotypes-0.19.tar.gz", "has_sig": false, "md5_digest": "6f43a02bee15a75988c81c8d225bcbe3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19336, "upload_time": "2019-07-02T09:56:00", "url": "https://files.pythonhosted.org/packages/18/02/036f72be0f2d0fc08165ac07e626190e4b2fe3afa8b33ee50583c4843883/annotypes-0.19.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b7ac18fa216711e0f8abc894cacc7b3e", "sha256": "1f7240c61e2466b0b0a553b76d9841a16a82aa8884b56723e1cf413355a1aa82" }, "downloads": -1, "filename": "annotypes-0.2.tar.gz", "has_sig": false, "md5_digest": "b7ac18fa216711e0f8abc894cacc7b3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16200, "upload_time": "2018-01-04T10:01:53", "url": "https://files.pythonhosted.org/packages/23/b9/0927e21d5302706eadfdc3621ae6fb5460f586550669005e03f432d309d6/annotypes-0.2.tar.gz" } ], "0.20": [ { "comment_text": "", "digests": { "md5": "f1a4e19931255535f1f724ddb4ef4378", "sha256": "4a53389e833129807ac369ef42ea0649d3b3e73c3db7bac47938fb0fbae49a81" }, "downloads": -1, "filename": "annotypes-0.20.tar.gz", "has_sig": false, "md5_digest": "f1a4e19931255535f1f724ddb4ef4378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19275, "upload_time": "2019-07-02T10:27:51", "url": "https://files.pythonhosted.org/packages/58/4d/ae1b4c3f954c62d91a6a91c7c70556e7a6fe11f7876a34d02aa932e8c0d6/annotypes-0.20.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "80ea558ea8752be67c51e3dcf1ff301b", "sha256": "dda4792a68d73e1f22ccc99c0ee5b4821906969b2351208162a669f1b32b5800" }, "downloads": -1, "filename": "annotypes-0.3.tar.gz", "has_sig": false, "md5_digest": "80ea558ea8752be67c51e3dcf1ff301b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16472, "upload_time": "2018-01-04T12:24:31", "url": "https://files.pythonhosted.org/packages/36/53/d0db5164c5f78e4fa93948a48426dbf51ef23508da885da6949aedf83668/annotypes-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "3726908f159adfd56b1b9aa6101a2267", "sha256": "2fed515d7a92887a9c9cf9193eb1c5fb708f8d75787b8d27195a5e72e0e8b8d1" }, "downloads": -1, "filename": "annotypes-0.4.tar.gz", "has_sig": false, "md5_digest": "3726908f159adfd56b1b9aa6101a2267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16705, "upload_time": "2018-01-10T09:25:33", "url": "https://files.pythonhosted.org/packages/73/5d/81251d2b3c07d9389302e5dd0ba74a066204c2097d8b775d95df75dce830/annotypes-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "3587aa46d9231451d4afc480681c7f41", "sha256": "bddfd0f762d94d2593b6e1a4dcc25c3322f56bc5388798e6aa92c2b6686f1035" }, "downloads": -1, "filename": "annotypes-0.5.tar.gz", "has_sig": false, "md5_digest": "3587aa46d9231451d4afc480681c7f41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17540, "upload_time": "2018-02-16T14:14:12", "url": "https://files.pythonhosted.org/packages/fe/2f/e42d4596809e7ee5bb8158cab3ad0fbd5ff68005df4954c0651ceab5df32/annotypes-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "1c38c6299f18fd0ce988355738bf93c4", "sha256": "521a975872f5017809be16a7a909e2b1159e32290de8b06005ae79959705995b" }, "downloads": -1, "filename": "annotypes-0.6.tar.gz", "has_sig": false, "md5_digest": "1c38c6299f18fd0ce988355738bf93c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17628, "upload_time": "2018-04-24T09:53:10", "url": "https://files.pythonhosted.org/packages/61/69/3bc438c4bed412964271a99db213fcb0a98053e909782ded77fc730b2a0c/annotypes-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "3e8f99502b3172a33c7cc6acc72d4929", "sha256": "665d64c60435f6e96630362a882065150a2c05d6e443a5df038643e8cee4ac6b" }, "downloads": -1, "filename": "annotypes-0.7.tar.gz", "has_sig": false, "md5_digest": "3e8f99502b3172a33c7cc6acc72d4929", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17660, "upload_time": "2018-04-24T10:04:11", "url": "https://files.pythonhosted.org/packages/8b/52/0c35870799899f908369e5958688183e0af92b3ebcc587c0eaa9dddccbdb/annotypes-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "977f3e4de610d7e075b856018c9000b4", "sha256": "51ef2b84a3f91397503cd496b39e4a8a1302a7a7997687eb7676e1d7e3c723af" }, "downloads": -1, "filename": "annotypes-0.8.tar.gz", "has_sig": false, "md5_digest": "977f3e4de610d7e075b856018c9000b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18023, "upload_time": "2018-04-25T10:06:48", "url": "https://files.pythonhosted.org/packages/41/47/894af3a242958df52b60adad56f29585517f96cd59bf70a56c6890b93a61/annotypes-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "25c7017cb20a98c6878f07daa4d04b5c", "sha256": "c2ed6355e116883ff79b93e20359dda93eb09df8ce8177e35b06879844f272c5" }, "downloads": -1, "filename": "annotypes-0.9.tar.gz", "has_sig": false, "md5_digest": "25c7017cb20a98c6878f07daa4d04b5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18256, "upload_time": "2018-07-03T14:02:37", "url": "https://files.pythonhosted.org/packages/0b/31/e009cb1174e3eccd34d8bef22f540567f671db59898f809d9c22107b089d/annotypes-0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "0437f02cce097e40eecc546ee9ed1b6f", "sha256": "89655d2f187c0ec4a276eca451f9811fc9dee51430e35f72ceca4666e43dcd48" }, "downloads": -1, "filename": "annotypes-0.9.1.tar.gz", "has_sig": false, "md5_digest": "0437f02cce097e40eecc546ee9ed1b6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18320, "upload_time": "2018-10-29T10:42:48", "url": "https://files.pythonhosted.org/packages/6c/3f/f1a22b6094888a3bc4c13a0143ed4bb15acb6a42904704564d83a8d46c75/annotypes-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1a4e19931255535f1f724ddb4ef4378", "sha256": "4a53389e833129807ac369ef42ea0649d3b3e73c3db7bac47938fb0fbae49a81" }, "downloads": -1, "filename": "annotypes-0.20.tar.gz", "has_sig": false, "md5_digest": "f1a4e19931255535f1f724ddb4ef4378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19275, "upload_time": "2019-07-02T10:27:51", "url": "https://files.pythonhosted.org/packages/58/4d/ae1b4c3f954c62d91a6a91c7c70556e7a6fe11f7876a34d02aa932e8c0d6/annotypes-0.20.tar.gz" } ] }