{ "info": { "author": "Manuel Krebber", "author_email": "admin@wheerd.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "multiset\n========\n\nThis package provides a multiset_ implementation for python.\n\n|pypi| |coverage| |build| |docs|\n\nOverview\n--------\n\nA multiset is similar to the builtin set_, but it allows an element to occur multiple times.\nIt is an unordered collection of element which have to be hashable just like in a set_.\nIt supports the same methods and operations as set_ does, e.g. membership test, union, intersection, and\n(symmetric) difference::\n\n >>> set1 = Multiset('aab')\n >>> set2 = Multiset('abc')\n >>> sorted(set1 | set2)\n ['a', 'a', 'b', 'c']\n\nMultisets can be used in combination with sets_::\n\n >>> Multiset('aab') >= {'a', 'b'}\n True\n\nMultisets are mutable::\n\n >>> set1.update('bc')\n >>> sorted(set1)\n ['a', 'a', 'b', 'b', 'c']\n\nThere is an immutable version similar to the frozenset_ which is also hashable::\n\n >>> set1 = FrozenMultiset('abc')\n >>> set2 = FrozenMultiset('abc')\n >>> hash(set1) == hash(set2)\n True\n >>> set1 is set2\n False\n\nThe implementation is based on a dict_ that maps the elements to their multiplicity in the multiset.\nHence, some dictionary operations are supported.\n\nIn contrast to the `collections.Counter`_ from the standard library, it has proper support for set\noperations and only allows positive counts. Also, elements with a zero multiplicity are automatically\nremoved from the multiset.\n\nInstallation\n------------\n\nInstalling `multiset` is simple with `pip `_::\n\n $ pip install multiset\n\nDocumentation\n-------------\n\nThe documentation is available at `Read the Docs`_.\n\n.. _`Read the Docs`: http://multiset.readthedocs.io/\n\nAPI Documentation\n.................\n\nIf you are looking for information on a particular method of the Multiset class, have a look at the\n`API Documentation`_. It is automatically generated from the docstrings.\n\n.. _`API Documentation`: http://multiset.readthedocs.io/en/latest/api.html\n\nLicense\n-------\n\nLicensed under the MIT_ license.\n\n\n.. _multiset: https://en.wikipedia.org/wiki/Multiset\n.. _set: https://docs.python.org/3.5/library/stdtypes.html#set-types-set-frozenset\n.. _sets: set_\n.. _frozenset: set_\n.. _dict: https://docs.python.org/3.5/library/stdtypes.html#mapping-types-dict\n.. _`collections.Counter`: https://docs.python.org/3.5/library/collections.html#collections.Counter\n.. _MIT: https://opensource.org/licenses/MIT\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/multiset.svg?style=flat-square&label=latest%20stable%20version\n :target: https://pypi.python.org/pypi/multiset\n :alt: Latest version released on PyPi\n\n.. |coverage| image:: https://coveralls.io/repos/github/wheerd/multiset/badge.svg?branch=master\n :target: https://coveralls.io/github/wheerd/multiset?branch=master\n :alt: Test coverage\n\n.. |build| image:: https://travis-ci.org/wheerd/multiset.svg?branch=master\n :target: https://travis-ci.org/wheerd/multiset\n :alt: Build status of the master branch\n\n.. |docs| image:: https://readthedocs.org/projects/multiset/badge/?version=latest\n :target: http://multiset.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n", "description_content_type": "", "docs_url": "https://pythonhosted.org/multiset/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wheerd/multiset", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "multiset", "package_url": "https://pypi.org/project/multiset/", "platform": "", "project_url": "https://pypi.org/project/multiset/", "project_urls": { "Homepage": "https://github.com/wheerd/multiset" }, "release_url": "https://pypi.org/project/multiset/2.1.1/", "requires_dist": null, "requires_python": "", "summary": "An implementation of a multiset.", "version": "2.1.1" }, "last_serial": 3762918, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9b9af8d16a795909125ebc76e06c9dc3", "sha256": "7f9a26776dea7f90df3ee43587f5008f3bf8392d962396023d4613ba6d2c0e08" }, "downloads": -1, "filename": "multiset-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9b9af8d16a795909125ebc76e06c9dc3", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6767, "upload_time": "2016-10-15T08:55:24", "url": "https://files.pythonhosted.org/packages/b8/78/4abae52cc3173cfb0e46897fa4fee3258e630432061b090a70b3c54c32fc/multiset-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "08786dd817a9c9043a5c82ea91b7a8d7", "sha256": "c18ca312e11628960b66a79c767d8169edd8dfc4fdca275981eb0407e2d1358a" }, "downloads": -1, "filename": "multiset-0.1.zip", "has_sig": false, "md5_digest": "08786dd817a9c9043a5c82ea91b7a8d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19152, "upload_time": "2016-10-15T08:55:09", "url": "https://files.pythonhosted.org/packages/c9/b5/923d444c3bb7145ff4c191b808099c73c7a1c9065bbdf06c09f8d19d67d3/multiset-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "772e737734b629db3a6ca2a58f7adc43", "sha256": "cb83e18eef6db13a9f52ef739c458eee63fbacea09c2e3ef131b0290eb6d51b3" }, "downloads": -1, "filename": "multiset-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "772e737734b629db3a6ca2a58f7adc43", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 9005, "upload_time": "2016-10-17T18:47:21", "url": "https://files.pythonhosted.org/packages/b4/5a/84ef25475325a616635137dd3a44d534c319637e005b1dd06cbfd2f13152/multiset-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ac56d0f1811e84bc7d23d9e6905891f", "sha256": "a7c21481ffda084544549d334a4ac02af485c94d72617305332588456d179677" }, "downloads": -1, "filename": "multiset-0.2.tar.gz", "has_sig": false, "md5_digest": "1ac56d0f1811e84bc7d23d9e6905891f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28116, "upload_time": "2016-10-17T18:45:10", "url": "https://files.pythonhosted.org/packages/a5/28/bd4b8295178822dc7f14a1936b3f1baf6e7ef98be72b52fc37e4577292a2/multiset-0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "75be8433f25e485b2a2daae90f2aafd7", "sha256": "f24890cf1db3d3334128eafb207264f5128a2471979f9b95b2e85f8302226692" }, "downloads": -1, "filename": "multiset-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "75be8433f25e485b2a2daae90f2aafd7", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 9404, "upload_time": "2016-10-19T09:33:35", "url": "https://files.pythonhosted.org/packages/d8/e4/27f0f20eafdda9eca9eb4c22a13e2adccad9714f8f37dc6adeb1808527f5/multiset-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61bdeb4fec430102ff739d42432e8ed5", "sha256": "6ad94af6dd308b9b26a31a859bb2c0dc4965ef6d81f322b072a07adeb7661651" }, "downloads": -1, "filename": "multiset-1.0.0.tar.gz", "has_sig": false, "md5_digest": "61bdeb4fec430102ff739d42432e8ed5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29559, "upload_time": "2016-10-19T09:32:23", "url": "https://files.pythonhosted.org/packages/a6/94/f60bfe45ef0adc2b81a485998a26600e4c68f56a0190e18935ea736bc59c/multiset-1.0.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "121e130dfdf607c598ffbbc960f8c304", "sha256": "b0e535dc45904f89d6191e164c3393a688839199f50c12b6f46f1af83d02991b" }, "downloads": -1, "filename": "multiset-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "121e130dfdf607c598ffbbc960f8c304", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 10368, "upload_time": "2017-02-08T14:44:04", "url": "https://files.pythonhosted.org/packages/dd/cc/53836f4986b4856c86c88408470e3d4abfb39694df6b2660742f6b1fa9c1/multiset-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c1f93e62e7c086adf35ac2987efdef7", "sha256": "058963c93ec42282cb288648f36d9ac40c832d5f0fcf25686524be1c8c32946e" }, "downloads": -1, "filename": "multiset-2.0.0.tar.gz", "has_sig": false, "md5_digest": "3c1f93e62e7c086adf35ac2987efdef7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31825, "upload_time": "2017-02-08T14:44:02", "url": "https://files.pythonhosted.org/packages/ac/44/bfb47ba0108014f1f1f70501d42488493a888c83a9c65bdc9983b032bd19/multiset-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "13e3b3ff332c7fb404a9ac2b6376a016", "sha256": "c9a762b5c3bb6e6d403b6ed35a8b622dd6e6435b74ad77922584ea714ee09516" }, "downloads": -1, "filename": "multiset-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "13e3b3ff332c7fb404a9ac2b6376a016", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 10559, "upload_time": "2017-06-16T14:11:52", "url": "https://files.pythonhosted.org/packages/94/8a/91628cd2e5c9d4c7d1a6db877ec0eec1eedabd28e5d32de9769828bfb8d1/multiset-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "924795bc8ecf232e8713158d26f602f9", "sha256": "2e667522c07dd9ccb4a2bf86910327a25ff2f6b1150fd420bd3ab6c62d88d8fe" }, "downloads": -1, "filename": "multiset-2.0.1.tar.gz", "has_sig": false, "md5_digest": "924795bc8ecf232e8713158d26f602f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32465, "upload_time": "2017-06-16T14:11:56", "url": "https://files.pythonhosted.org/packages/d1/e4/855a57ea8b1ce240f8ebd04621d910eedec040818f52f0075eb4891aac68/multiset-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "5132e0aeb1a613b10a2f4ba5f33897b7", "sha256": "993fe6afb3e520b5b5cee892dc080fa9a868273e08c54e377ba272caeae4361c" }, "downloads": -1, "filename": "multiset-2.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5132e0aeb1a613b10a2f4ba5f33897b7", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 10757, "upload_time": "2017-07-26T09:46:19", "url": "https://files.pythonhosted.org/packages/0d/77/2b54b57320b251ae2e3c9e60dcc0742488d821438e3dea8ee85bec1ac865/multiset-2.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bde32b8c80ddac3c4cd7364617c3ca9d", "sha256": "5379c845c76c1679a928a3528155713cd89ca9ee690a660d9bd408e78370b55d" }, "downloads": -1, "filename": "multiset-2.0.2.tar.gz", "has_sig": false, "md5_digest": "bde32b8c80ddac3c4cd7364617c3ca9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32653, "upload_time": "2017-07-26T09:46:18", "url": "https://files.pythonhosted.org/packages/1d/e9/ae384fa78dd355e487bab545300140bd4ff99552b56e64c2ba4bd7b1ced6/multiset-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "398a601dc910f240341a4ec35c53bd2d", "sha256": "5749130195d2519eb37bcd3a8ca993c7d284cdbeed66b9b5b9f611c0e173b0db" }, "downloads": -1, "filename": "multiset-2.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "398a601dc910f240341a4ec35c53bd2d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 10793, "upload_time": "2017-12-05T14:09:07", "url": "https://files.pythonhosted.org/packages/83/d5/63be17bc0d47377cf6be126f1cf8abd110ec3efbec8ffd872597ba45cc03/multiset-2.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6557689eaee1261b9b4eeffa713bdab7", "sha256": "dce874df364e4dfeda36bc93a55f1ed98753a09324641acf93d134084bf0d3a2" }, "downloads": -1, "filename": "multiset-2.0.3.tar.gz", "has_sig": false, "md5_digest": "6557689eaee1261b9b4eeffa713bdab7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32885, "upload_time": "2017-12-05T14:09:06", "url": "https://files.pythonhosted.org/packages/a9/80/a030cd04c5284d0c945e5a07615ce9e3eaff39be4dae4c3f9157d495a010/multiset-2.0.3.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "3d978c185238b07b73321b808c736f57", "sha256": "4f86178b3bfbd4c978fdfa5034249947b3710525cfc232bec6cb765ab6747e2d" }, "downloads": -1, "filename": "multiset-2.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3d978c185238b07b73321b808c736f57", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8791, "upload_time": "2018-04-13T19:25:24", "url": "https://files.pythonhosted.org/packages/a8/12/813a649f5bc9801865dc6cda95b8f169f784d996322db192907ebe399064/multiset-2.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91089ae03de9a505da2948002671e67b", "sha256": "4801569c08bfcecfe7b0927b17f079c90f8607aca8fecaf42ded92b737162bc7" }, "downloads": -1, "filename": "multiset-2.1.1.tar.gz", "has_sig": false, "md5_digest": "91089ae03de9a505da2948002671e67b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33155, "upload_time": "2018-04-13T19:25:22", "url": "https://files.pythonhosted.org/packages/be/95/abc1b7f8cd58654eb39c5d6097017807f01939afa25f0f6e3c2c1ee09eaa/multiset-2.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3d978c185238b07b73321b808c736f57", "sha256": "4f86178b3bfbd4c978fdfa5034249947b3710525cfc232bec6cb765ab6747e2d" }, "downloads": -1, "filename": "multiset-2.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3d978c185238b07b73321b808c736f57", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8791, "upload_time": "2018-04-13T19:25:24", "url": "https://files.pythonhosted.org/packages/a8/12/813a649f5bc9801865dc6cda95b8f169f784d996322db192907ebe399064/multiset-2.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91089ae03de9a505da2948002671e67b", "sha256": "4801569c08bfcecfe7b0927b17f079c90f8607aca8fecaf42ded92b737162bc7" }, "downloads": -1, "filename": "multiset-2.1.1.tar.gz", "has_sig": false, "md5_digest": "91089ae03de9a505da2948002671e67b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33155, "upload_time": "2018-04-13T19:25:22", "url": "https://files.pythonhosted.org/packages/be/95/abc1b7f8cd58654eb39c5d6097017807f01939afa25f0f6e3c2c1ee09eaa/multiset-2.1.1.tar.gz" } ] }