{ "info": { "author": "Matthew Rocklin", "author_email": "mrocklin@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Multiple Dispatch\n=================\n\n|Build Status| |Coverage Status| |Version Status|\n\nA relatively sane approach to multiple dispatch in Python.\n\nThis implementation of multiple dispatch is efficient, mostly complete,\nperforms static analysis to avoid conflicts, and provides optional namespace\nsupport. It looks good too.\n\nSee the documentation at https://multiple-dispatch.readthedocs.io/\n\n\nExample\n-------\n\n.. code-block:: python\n\n >>> from multipledispatch import dispatch\n\n >>> @dispatch(int, int)\n ... def add(x, y):\n ... return x + y\n\n >>> @dispatch(object, object)\n ... def add(x, y):\n ... return \"%s + %s\" % (x, y)\n\n >>> add(1, 2)\n 3\n\n >>> add(1, 'hello')\n '1 + hello'\n\nWhat this does\n--------------\n\n- Dispatches on all non-keyword arguments\n\n- Supports inheritance\n\n- Supports instance methods\n\n- Supports union types, e.g. ``(int, float)``\n\n- Supports builtin abstract classes, e.g. ``Iterator, Number, ...``\n\n- Caches for fast repeated lookup\n\n- Identifies possible ambiguities at function definition time\n\n- Provides hints to resolve ambiguities when they occur\n\n- Supports namespaces with optional keyword arguments\n\n- Supports variadic dispatch\n\nWhat this doesn't do\n--------------------\n\n- Diagonal dispatch\n\n.. code-block:: python\n\n a = arbitrary_type()\n @dispatch(a, a)\n def are_same_type(x, y):\n return True\n\n- Efficient update: The addition of a new signature requires a full resolve of\n the whole function. This becomes troublesome after you get to a few hundred\n type signatures.\n\n\nInstallation and Dependencies\n-----------------------------\n\n``multipledispatch`` is on the Python Package Index (PyPI):\n\n::\n\n pip install multipledispatch\n\nor\n\n::\n\n easy_install multipledispatch\n\n\n``multipledispatch`` supports Python 2.6+ and Python 3.2+ with a common\ncodebase. It is pure Python and requires only the small `six\n`_ library as a dependency.\n\nIt is, in short, a light weight dependency.\n\n\nLicense\n-------\n\nNew BSD. See `License file`_.\n\n\nLinks\n-----\n\n- `Five-minute Multimethods in Python by Guido`_\n- `multimethods package on PyPI`_\n- `singledispatch in Python 3.4's functools`_\n- `Clojure Protocols`_\n- `Julia methods docs`_\n- `Karpinksi notebook: *The Design Impact of Multiple Dispatch*`_\n- `Wikipedia article`_\n- `PEP 3124 - *Overloading, Generic Functions, Interfaces, and Adaptation*`_\n\n\n.. _`Five-minute Multimethods in Python by Guido`:\n http://www.artima.com/weblogs/viewpost.jsp?thread=101605\n.. _`multimethods package on PyPI`:\n https://pypi.python.org/pypi/multimethods\n.. _`singledispatch in Python 3.4's functools`:\n http://docs.python.org/3.4/library/functools.html#functools.singledispatch\n.. _`Clojure Protocols`:\n http://clojure.org/protocols\n.. _`Julia methods docs`:\n https://julia.readthedocs.io/en/latest/manual/methods/\n.. _`Karpinksi notebook: *The Design Impact of Multiple Dispatch*`:\n http://nbviewer.ipython.org/gist/StefanKarpinski/b8fe9dbb36c1427b9f22\n.. _`Wikipedia article`:\n http://en.wikipedia.org/wiki/Multiple_dispatch\n.. _`PEP 3124 - *Overloading, Generic Functions, Interfaces, and Adaptation*`:\n http://legacy.python.org/dev/peps/pep-3124/\n\n.. |Build Status| image:: https://travis-ci.org/mrocklin/multipledispatch.png\n :target: https://travis-ci.org/mrocklin/multipledispatch\n.. |Version Status| image:: https://pypip.in/v/multipledispatch/badge.png\n :target: https://img.shields.io/pypi/v/multipledispatch.svg\n.. |Coverage Status| image:: https://coveralls.io/repos/mrocklin/multipledispatch/badge.png\n :target: https://coveralls.io/r/mrocklin/multipledispatch\n.. _License file: https://github.com/mrocklin/multipledispatch/blob/master/LICENSE.txt\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mrocklin/multipledispatch/", "keywords": "dispatch", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "multipledispatch", "package_url": "https://pypi.org/project/multipledispatch/", "platform": "", "project_url": "https://pypi.org/project/multipledispatch/", "project_urls": { "Homepage": "http://github.com/mrocklin/multipledispatch/" }, "release_url": "https://pypi.org/project/multipledispatch/0.6.0/", "requires_dist": [ "six" ], "requires_python": "", "summary": "Multiple dispatch", "version": "0.6.0" }, "last_serial": 4150005, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cfb7070b34f1b22ec5fc552c586ffe7a", "sha256": "3a834641b72342ed8c64f3cd8c7b66e02430c359d9d36994f11956befd4db260" }, "downloads": -1, "filename": "multipledispatch-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cfb7070b34f1b22ec5fc552c586ffe7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2388, "upload_time": "2014-02-19T02:10:59", "url": "https://files.pythonhosted.org/packages/7a/c7/b3f9a4fdc095b6367017ae9b340548c271fb47f3e9c94f88cd729e38d8ee/multipledispatch-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bc70a66ba53d1d31f2859594528f810d", "sha256": "73d0255ce49303df5ab9290ea9b1a54e341879693cef87c12955f227978bb70a" }, "downloads": -1, "filename": "multipledispatch-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bc70a66ba53d1d31f2859594528f810d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5458, "upload_time": "2014-02-23T19:33:31", "url": "https://files.pythonhosted.org/packages/40/d1/3c4a3f7de71e260ab5116a17a948a92a33be2c108c8d7218693e8e93bd94/multipledispatch-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "3d34f44ea92179d061651d6fad0db23a", "sha256": "11640902f2028ee05d1522620a66f5c881aa11effa1e6aa6c5148671a570fba3" }, "downloads": -1, "filename": "multipledispatch-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3d34f44ea92179d061651d6fad0db23a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5677, "upload_time": "2014-02-25T15:14:57", "url": "https://files.pythonhosted.org/packages/4d/d4/a83b6a9fa9090d493a1590a8758974ee4d7c56a00f096e3ebb1f5dbc42bc/multipledispatch-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "f33d84c390187ce1597c6e826dcbb094", "sha256": "ed85e4d6d782cecee416ed5591633c457ea33d74c806c1176a425b3ad45a618d" }, "downloads": -1, "filename": "multipledispatch-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f33d84c390187ce1597c6e826dcbb094", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6055, "upload_time": "2014-03-28T19:04:31", "url": "https://files.pythonhosted.org/packages/07/de/213ebbd682e3534ba5ba34e5380f7e884729985a348f8c5444e2244d1450/multipledispatch-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "e2f34dd664582dc7bad2a7e7bfd4b003", "sha256": "6d7c420bb62ed2ccdbe8082c5a7d90a03320611efba65b84503e7a44f072bf24" }, "downloads": -1, "filename": "multipledispatch-0.4.1.tar.gz", "has_sig": false, "md5_digest": "e2f34dd664582dc7bad2a7e7bfd4b003", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6487, "upload_time": "2014-05-18T19:13:32", "url": "https://files.pythonhosted.org/packages/17/dd/5b9b8262d60a27929cece1d061894fbb7a3f4661472d225ffb9f5dae144b/multipledispatch-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "8cdd7be5a46f0fc88905c5c3e8057283", "sha256": "cf8585bd1b07ca9d494632a2759f0b73c64b3c350b67e7b7be1fdc2e4a075fc0" }, "downloads": -1, "filename": "multipledispatch-0.4.2.tar.gz", "has_sig": false, "md5_digest": "8cdd7be5a46f0fc88905c5c3e8057283", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6537, "upload_time": "2014-05-20T15:44:15", "url": "https://files.pythonhosted.org/packages/20/8d/8aa67ee161b29d7e7fd6d2a2a23560ccc5b88879957b166ceb6ac339d167/multipledispatch-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "d8cacdec61af23d7196f728c869f6afb", "sha256": "9d8c20ffe7f3530c9b49529ab56ec65a4759c42e19f005693bc8a188c7427255" }, "downloads": -1, "filename": "multipledispatch-0.4.3.tar.gz", "has_sig": false, "md5_digest": "d8cacdec61af23d7196f728c869f6afb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6591, "upload_time": "2014-05-21T21:55:24", "url": "https://files.pythonhosted.org/packages/bb/ee/33b8ce5248cfbd31b75d779c3f8d3b671db015b6eaf83244acd5bf553791/multipledispatch-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "3b7189570c1479e93f19765c13e3da88", "sha256": "891f0786937536ac84d1f60bbafe4c365eafedc4d9eb3a20dd5d4b907f953614" }, "downloads": -1, "filename": "multipledispatch-0.4.4.tar.gz", "has_sig": false, "md5_digest": "3b7189570c1479e93f19765c13e3da88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6851, "upload_time": "2014-07-02T17:34:01", "url": "https://files.pythonhosted.org/packages/f3/03/698f91095a2c4a745a5da46972942d329dbcf5e5584d4af9fe65a7554fac/multipledispatch-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "121f4dbcb676e193d62c6d18994ae0cd", "sha256": "aeb5974860656de5ea488c641a86adcb965b354d1bcddf8c0a07713619ee0237" }, "downloads": -1, "filename": "multipledispatch-0.4.5.tar.gz", "has_sig": false, "md5_digest": "121f4dbcb676e193d62c6d18994ae0cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6912, "upload_time": "2014-07-31T14:09:16", "url": "https://files.pythonhosted.org/packages/48/35/1872b05e183df33b2360715cbdf9234c0e4b9d07fa4bb0a343a5343684a9/multipledispatch-0.4.5.tar.gz" } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "0c31e8e4cbcb62e954592ccd98c057b8", "sha256": "9974135f46af8f22096f0517afede26a9b2e015aed9e154c4f5e3173a447162c" }, "downloads": -1, "filename": "multipledispatch-0.4.6.tar.gz", "has_sig": false, "md5_digest": "0c31e8e4cbcb62e954592ccd98c057b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7066, "upload_time": "2014-08-27T21:07:01", "url": "https://files.pythonhosted.org/packages/ad/66/942782061db31ea90b293c65f8fec2c5f8b4d7e89c38dc0a5598afbb7b03/multipledispatch-0.4.6.tar.gz" } ], "0.4.7": [ { "comment_text": "", "digests": { "md5": "066debedb9e316b2b30c394babb3f8fd", "sha256": "401bb875cdbd85359f01029e60ef7610bf1172b5052474285daf4102b109496d" }, "downloads": -1, "filename": "multipledispatch-0.4.7.tar.gz", "has_sig": false, "md5_digest": "066debedb9e316b2b30c394babb3f8fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7234, "upload_time": "2014-09-01T20:58:08", "url": "https://files.pythonhosted.org/packages/5d/49/1126b975b71b836c8ab1017f4b03f7734f88fc182fed33a664ea7a54b5a5/multipledispatch-0.4.7.tar.gz" } ], "0.4.8": [ { "comment_text": "", "digests": { "md5": "f0eb0c527cdbe788ca7dcd1511bc49a9", "sha256": "07d41fb3ed25e8424536e48a8566f88a0f9926ca4b6174bff6aa16c98251b92e" }, "downloads": -1, "filename": "multipledispatch-0.4.8.tar.gz", "has_sig": false, "md5_digest": "f0eb0c527cdbe788ca7dcd1511bc49a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7393, "upload_time": "2015-07-08T21:46:55", "url": "https://files.pythonhosted.org/packages/ff/03/31f284e8b9ae2793ada14b62489292db89a4ce814ea19c90770236a933b5/multipledispatch-0.4.8.tar.gz" } ], "0.4.9": [ { "comment_text": "", "digests": { "md5": "a8c43e04920ca95d7258ef659356a6f1", "sha256": "e3be277f524f1fdcd2d6a23056e7f3101744f340327e88595afdc5af6d91de5b" }, "downloads": -1, "filename": "multipledispatch-0.4.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a8c43e04920ca95d7258ef659356a6f1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8445, "upload_time": "2016-10-12T13:16:43", "url": "https://files.pythonhosted.org/packages/4c/b2/43d4944b102c8e8d1f2491dca85fea52982ee5dcf27312df1ef9ee7efb82/multipledispatch-0.4.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1fff336c53339fe9f1360fbddb3fc10d", "sha256": "bda6abb8188d9abb429bd17ed15bc7433f77f1b05a78cfff761711ed81daa7a2" }, "downloads": -1, "filename": "multipledispatch-0.4.9.tar.gz", "has_sig": false, "md5_digest": "1fff336c53339fe9f1360fbddb3fc10d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7541, "upload_time": "2016-10-12T13:16:47", "url": "https://files.pythonhosted.org/packages/ec/70/4f8fd16e32033a7c78446659dc0bdbc71bec6db322cba0e2c1c8ba85d4ba/multipledispatch-0.4.9.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "a8a9e99c71461eaf48833db93601959d", "sha256": "58803e7a748ccf551ea2a7886183248093f5f78df48c71417401f17d63208dfa" }, "downloads": -1, "filename": "multipledispatch-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a8a9e99c71461eaf48833db93601959d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11954, "upload_time": "2018-03-02T01:44:06", "url": "https://files.pythonhosted.org/packages/d1/0d/0d51971308af74de1a3a66e52cb518cb14c3fa9b0c6736105eacf77d2d09/multipledispatch-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b8c232adee3f1d855d5a339082613c4", "sha256": "9e92d63efad2c9b68562175d9148d8cb32d04bf5557991190e643749bf4ed954" }, "downloads": -1, "filename": "multipledispatch-0.5.0.tar.gz", "has_sig": false, "md5_digest": "0b8c232adee3f1d855d5a339082613c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8946, "upload_time": "2018-03-02T01:44:07", "url": "https://files.pythonhosted.org/packages/01/0c/05cc7bc52832bb4c2edebe9c871d51fe0d54c021e32ad4f7e977e9c85f6a/multipledispatch-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "a5dfd81714e5406820d429b6d8566b04", "sha256": "407e6d8c5fa27075968ba07c4db3ef5f02bea4e871e959570eeb69ee39a6565b" }, "downloads": -1, "filename": "multipledispatch-0.6.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a5dfd81714e5406820d429b6d8566b04", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11902, "upload_time": "2018-08-08T18:03:39", "url": "https://files.pythonhosted.org/packages/3d/a3/3638c2232eb513a9f876bb96e2e400f18d2f5bdc2e7abe84194c8bd38c2d/multipledispatch-0.6.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1970cb68506a6a5bfd1ebf6ae9bd054b", "sha256": "a55c512128fb3f7c2efd2533f2550accb93c35f1045242ef74645fc92a2c3cba" }, "downloads": -1, "filename": "multipledispatch-0.6.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1970cb68506a6a5bfd1ebf6ae9bd054b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11899, "upload_time": "2018-08-08T18:00:52", "url": "https://files.pythonhosted.org/packages/89/79/429ecef45fd5e4504f7474d4c3c3c4668c267be3370e4c2fd33e61506833/multipledispatch-0.6.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9516c48d9eb7afecb0927f8ed5a7709f", "sha256": "a7ab1451fd0bf9b92cab3edbd7b205622fb767aeefb4fb536c2e3de9e0a38bea" }, "downloads": -1, "filename": "multipledispatch-0.6.0.tar.gz", "has_sig": false, "md5_digest": "9516c48d9eb7afecb0927f8ed5a7709f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10294, "upload_time": "2018-08-08T18:00:53", "url": "https://files.pythonhosted.org/packages/37/86/76c69eb0dac361c83e2e3952051bec40bd2f488127f5479d6222b5853f04/multipledispatch-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5dfd81714e5406820d429b6d8566b04", "sha256": "407e6d8c5fa27075968ba07c4db3ef5f02bea4e871e959570eeb69ee39a6565b" }, "downloads": -1, "filename": "multipledispatch-0.6.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a5dfd81714e5406820d429b6d8566b04", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11902, "upload_time": "2018-08-08T18:03:39", "url": "https://files.pythonhosted.org/packages/3d/a3/3638c2232eb513a9f876bb96e2e400f18d2f5bdc2e7abe84194c8bd38c2d/multipledispatch-0.6.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1970cb68506a6a5bfd1ebf6ae9bd054b", "sha256": "a55c512128fb3f7c2efd2533f2550accb93c35f1045242ef74645fc92a2c3cba" }, "downloads": -1, "filename": "multipledispatch-0.6.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1970cb68506a6a5bfd1ebf6ae9bd054b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11899, "upload_time": "2018-08-08T18:00:52", "url": "https://files.pythonhosted.org/packages/89/79/429ecef45fd5e4504f7474d4c3c3c4668c267be3370e4c2fd33e61506833/multipledispatch-0.6.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9516c48d9eb7afecb0927f8ed5a7709f", "sha256": "a7ab1451fd0bf9b92cab3edbd7b205622fb767aeefb4fb536c2e3de9e0a38bea" }, "downloads": -1, "filename": "multipledispatch-0.6.0.tar.gz", "has_sig": false, "md5_digest": "9516c48d9eb7afecb0927f8ed5a7709f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10294, "upload_time": "2018-08-08T18:00:53", "url": "https://files.pythonhosted.org/packages/37/86/76c69eb0dac361c83e2e3952051bec40bd2f488127f5479d6222b5853f04/multipledispatch-0.6.0.tar.gz" } ] }