{ "info": { "author": "Richard Ambler", "author_email": "rambler@ibwya.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Mathematics" ], "description": ".. image:: https://bitbucket.org/ram6ler/python_trotter/wiki/trotter_py.png\n\nWelcome to trotter, a set of Python 3 classes for representing arrangements\ncommonly encountered in combinatorics.\n\nClasses have been defined according to whether order is important and \nwhether items may be reused.\n\n+------------+---------------+-------------+\n|Class |Order Important|Reuse Allowed|\n+============+===============+=============+\n|Amalgams |Yes |Yes |\n+------------+---------------+-------------+\n|Permutations|Yes |No |\n+------------+---------------+-------------+\n|Selections |No |Yes |\n+------------+---------------+-------------+\n|Combinations|No |No |\n+------------+---------------+-------------+\n\nAlso: Subsets and Compounds classes exist to represent combinations and permutations respectively of unspecified length.\n\nInstances of these classes are indexable pseudo-lists containing all possible arrangements. \nSince the number of possible arrangements can grow very quickly with the number of items \navailable and the number of items taken at a time, instances do not actually store all \narrangements but are rather containers of mappings between integers and arrangements. This \nmakes it possible to create instances that \"contain\" very large numbers of arrangements.\n \nFor more information, please see the `trotter wiki `_ .\n\nAn example session:\n\n::\n >>> # Import the Combinations class.\n ... from trotter import Combinations\n >>> \n >>> # A list of words.\n ... someWords = [\"the\", \"parrot\", \"is\", \"not\", \"pining\"]\n >>>\n >>> # A representation of 3-combinations of these words.\n ... c = Combinations(3, someWords)\n >>>\n >>> # Exactly what is c?\n ... print(c)\n Indexable pseudo-list containing 10 3-combinations of ['the', 'parrot', 'is', 'not', 'pining'].\n >>> \n >>> # How many 3-combinations are there, again?\n ... len(c)\n 10\n >>> # Let's see them!\n ... for combo in c: \n ... print(combo)\n ... \n ['the', 'parrot', 'is']\n ['the', 'parrot', 'not']\n ['the', 'parrot', 'pining']\n ['the', 'is', 'not']\n ['the', 'is', 'pining']\n ['the', 'not', 'pining']\n ['parrot', 'is', 'not']\n ['parrot', 'is', 'pining']\n ['parrot', 'not', 'pining']\n ['is', 'not', 'pining']", "description_content_type": null, "docs_url": null, "download_url": "https://bitbucket.org/ram6ler/python_trotter/get/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/ram6ler/python_trotter", "keywords": "combinations,permutations,combinatorics,amalgams,selections,subsets,compounds", "license": "", "maintainer": "", "maintainer_email": "", "name": "trotter", "package_url": "https://pypi.org/project/trotter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/trotter/", "project_urls": { "Download": "https://bitbucket.org/ram6ler/python_trotter/get/master.zip", "Homepage": "https://bitbucket.org/ram6ler/python_trotter" }, "release_url": "https://pypi.org/project/trotter/0.8.0/", "requires_dist": null, "requires_python": "", "summary": "A set of classes that map integers to particular combinations, permutations and subsets of items and vice versa.", "version": "0.8.0" }, "last_serial": 1951091, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "9d9aa091acb675299f58dc4e306e4ba5", "sha256": "35285a41f0c339e70427fb669968f2bf918610867a08ebf95f42f239fba53a41" }, "downloads": -1, "filename": "trotter-0.5.1.tar.gz", "has_sig": false, "md5_digest": "9d9aa091acb675299f58dc4e306e4ba5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3795, "upload_time": "2015-01-26T12:33:18", "url": "https://files.pythonhosted.org/packages/9d/96/4bd88f413279c59be2f4fdaae608e5d5cd25d2fd541301d3e341aa969595/trotter-0.5.1.tar.gz" } ], "0.5.1": [], "0.8.0": [ { "comment_text": "", "digests": { "md5": "567478dc28a6ce24e95d8196532cf137", "sha256": "42196fe1c3cc7fabdbdaa0200286f1b3d8113d1fd402a89574c4ae6cb11b5cae" }, "downloads": -1, "filename": "trotter-0.8.0.tar.gz", "has_sig": false, "md5_digest": "567478dc28a6ce24e95d8196532cf137", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5500, "upload_time": "2016-02-11T12:44:05", "url": "https://files.pythonhosted.org/packages/f7/68/96bf5833b0055d8f06786e0936de7e4abb81ec10c647efd70ac2b26a05fe/trotter-0.8.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "567478dc28a6ce24e95d8196532cf137", "sha256": "42196fe1c3cc7fabdbdaa0200286f1b3d8113d1fd402a89574c4ae6cb11b5cae" }, "downloads": -1, "filename": "trotter-0.8.0.tar.gz", "has_sig": false, "md5_digest": "567478dc28a6ce24e95d8196532cf137", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5500, "upload_time": "2016-02-11T12:44:05", "url": "https://files.pythonhosted.org/packages/f7/68/96bf5833b0055d8f06786e0936de7e4abb81ec10c647efd70ac2b26a05fe/trotter-0.8.0.tar.gz" } ] }