{ "info": { "author": "Stefan Drees", "author_email": "stefan@drees.name", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: MacOS X", "Environment :: Other Environment", "Environment :: Win32 (MS Windows)", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Education", "Topic :: Scientific/Engineering", "Topic :: Utilities" ], "description": "==============\nPartition Sets\n==============\n\nPartition Sets provides a consolidated set of recipes gently provided by other\nusers over the years and under the MIT license. I modified these slightly so\nthat they now equally work under python2 and python3. All bugs are mine ;-)\n\nYou may find it useful for tasks involving small sets and also multi sets/bags.\n\nInstall\n=======\n\nA simple ``pip install PartitionSets`` should suffice.\n\n\nUsage\n=====\n\nTypical usage in python code might look like this::\n\n #!/usr/bin/env python\n\n from __future__ import print_function\n from partitionsets import ordered_set\n from partitionsets import partition\n\n a_list = 'red green yellow blue'.split(\" \")\n an_oset = ordered_set.OrderedSet(a_list)\n a_partition = partition.Partition(ordered_set)\n for a_part in a_partition:\n print (a_part)\n\n\nThe sript ``partition_sets.py`` inside the bin folder may offer useful commands.\nFor usage info run it with the ``-h`` help option::\n\n $> partition_sets.py -h\n usage: partition_sets.py [-h] [-q | -v] [-o OUT_FILENAME] [-T {text,csv,json}]\n [-b] [-m]\n element [element ...]\n\n partitioning of small sets with 25 or less members\n\n positional arguments:\n element define set as list of elements separated by spaces\n\n optional arguments:\n -h, --help show this help message and exit\n -q, --quiet\n -v, --verbosity increase output verbosity\n -o OUT_FILENAME, --out-filename OUT_FILENAME\n out file name if specified, else all sent to stdout\n -T {text,csv,json}, --type {text,csv,json}\n type of output (format), defaults to text\n -b, --bell-numbers export the Bell numbers known by package\n -m, --multi-set handle elements as being par tof a multiset or bag\n\n\n\nNotes\n=====\n\nNote this implementation works only for sets with 25 members or less.\n\nThis constraint is considered quite reasonable, as the method (constructing an\ninteger index) for larger numbers starts to overflow. Remember: The number of\npartitions very steeply rises with each additional member considerably ...\n\n\nThanks also to\n==============\n\nThis package merely wraps up several recipes (and comments) gently provided\nunder the MIT license through several people. Those I noticed have been noted below.\nAny missing names are my fault. In case I get notified, I will try\nto update, add or remove items in below lists accordingly.\n\nPartition\n---------\n\n* Anton Vredegoor\n\n* Chris Haulk\n\nOrderedSet\n----------\n\n* Don Sawatzky\n\n* Emil Wall\n\n* Raymond Hettinger\n\nMisc\n----\n\nFor further reference please see the comments of the module files.\n\nReferences\n==========\n\n[A0001101]: \"Bell or exponential numbers: ways of placing n labeled balls\n into n indistinguishable boxes.\" at http://oeis.org/A000110\n\n[BellNumber]: Wikipedia entry Bell_number\n at http://en.wikipedia.org/wiki/Bell_number\n\n[OEIS]: Wikipedia entry On-Line_Encyclopedia_of_Integer_Sequences at\n http://en.wikipedia.org/wiki/On-Line_Encyclopedia_of_Integer_Sequences\n\n[Flake8]: https://pypi.python.org/pypi/flake8\n\n[OrdSetImplPy]: http://code.activestate.com/recipes/576694/ (mixed with\n the simplified code from Don Sawatzky's comment, which is sufficient\n for this task)\n\n[PartImplPy]: http://code.activestate.com/recipes/577211/ (r1)\n\n[PartOfASet_WP]: Wikipedia entry Partition_of_a_set at\n http://en.wikipedia.org/wiki/Partition_of_a_set\n\n[PyLint]: https://pypi.python.org/pypi/pylint", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/PartitionSets/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "PartitionSets", "package_url": "https://pypi.org/project/PartitionSets/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PartitionSets/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/PartitionSets/" }, "release_url": "https://pypi.org/project/PartitionSets/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Consolidation of existing third party recipes for partitioning of sets and multisets/bags.", "version": "0.1.1" }, "last_serial": 743553, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "8e587128b6c4771124a22587d57463d2", "sha256": "51f0da7c46abb5ffbd27ab3abd6504ceb14c8232ca4cb9bdba98775de59fd59f" }, "downloads": -1, "filename": "PartitionSets-0.1.1.tar.bz2", "has_sig": false, "md5_digest": "8e587128b6c4771124a22587d57463d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8859, "upload_time": "2013-03-04T12:18:36", "url": "https://files.pythonhosted.org/packages/7a/14/4088a186280fff0deaee774fc5b2ef6c745278137b7b110a7c697b929838/PartitionSets-0.1.1.tar.bz2" }, { "comment_text": "", "digests": { "md5": "c3db274c59a856972d32bd3603d5c7d2", "sha256": "f73cd61f258dfd59ee36712824e0f153fb306e5618b86b8bf96938119590e10c" }, "downloads": -1, "filename": "PartitionSets-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c3db274c59a856972d32bd3603d5c7d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8846, "upload_time": "2013-03-04T12:18:28", "url": "https://files.pythonhosted.org/packages/ae/a1/9fd208c60cc8ab07b44b06c9a1867b6be38e9619e4c233400b80b209435e/PartitionSets-0.1.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "0eeeae86b5b6e681eeb44a3518809fbf", "sha256": "a2eb6f398aad4523230c8d7bb48d4649491661e51edb817673d5d370ccfa47e0" }, "downloads": -1, "filename": "PartitionSets-0.1.1.zip", "has_sig": false, "md5_digest": "0eeeae86b5b6e681eeb44a3518809fbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15318, "upload_time": "2013-03-04T12:18:23", "url": "https://files.pythonhosted.org/packages/99/2e/2bcb119ddf834c090e92de37125ad66cb61ef742a3bb05819afcc0be8110/PartitionSets-0.1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e587128b6c4771124a22587d57463d2", "sha256": "51f0da7c46abb5ffbd27ab3abd6504ceb14c8232ca4cb9bdba98775de59fd59f" }, "downloads": -1, "filename": "PartitionSets-0.1.1.tar.bz2", "has_sig": false, "md5_digest": "8e587128b6c4771124a22587d57463d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8859, "upload_time": "2013-03-04T12:18:36", "url": "https://files.pythonhosted.org/packages/7a/14/4088a186280fff0deaee774fc5b2ef6c745278137b7b110a7c697b929838/PartitionSets-0.1.1.tar.bz2" }, { "comment_text": "", "digests": { "md5": "c3db274c59a856972d32bd3603d5c7d2", "sha256": "f73cd61f258dfd59ee36712824e0f153fb306e5618b86b8bf96938119590e10c" }, "downloads": -1, "filename": "PartitionSets-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c3db274c59a856972d32bd3603d5c7d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8846, "upload_time": "2013-03-04T12:18:28", "url": "https://files.pythonhosted.org/packages/ae/a1/9fd208c60cc8ab07b44b06c9a1867b6be38e9619e4c233400b80b209435e/PartitionSets-0.1.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "0eeeae86b5b6e681eeb44a3518809fbf", "sha256": "a2eb6f398aad4523230c8d7bb48d4649491661e51edb817673d5d370ccfa47e0" }, "downloads": -1, "filename": "PartitionSets-0.1.1.zip", "has_sig": false, "md5_digest": "0eeeae86b5b6e681eeb44a3518809fbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15318, "upload_time": "2013-03-04T12:18:23", "url": "https://files.pythonhosted.org/packages/99/2e/2bcb119ddf834c090e92de37125ad66cb61ef742a3bb05819afcc0be8110/PartitionSets-0.1.1.zip" } ] }