{ "info": { "author": "Anton Dries", "author_email": "anton.dries@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "`tupledict`: a multi-key dictionary\n===================================\n\nUsage\n-----\n\nThe ``tupledict.TupleDict`` class provides all the functionality of a regular dictionary.\n\nIn addition you can use tuple-based keys:\n\n``` python\nd = TupleDict()\n\nd[1,2,3] = 123\nd[1,2,4] = 124\nd[2,3,4] = 234\nd[3,3,4] = 334\n```\nAll keys should have the same length otherwise a `KeyError` will be raised. When setting values, keys should not contain `None` values.\n\nTo retrieve values you can use `None` as a wildcard character.\n``` python\nd[1,2,3] -> 123\nd[1,None,None] -> [123, 124]\nd[1,None,3] -> [123]\n```\nWhen a wildcard is used the dictionary returns a list of values. When no wildcard is used the result is a single item.\n\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2019 Anton Dries\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tupledict", "package_url": "https://pypi.org/project/tupledict/", "platform": "", "project_url": "https://pypi.org/project/tupledict/", "project_urls": null, "release_url": "https://pypi.org/project/tupledict/1.1/", "requires_dist": null, "requires_python": ">=3.5", "summary": "A multi-key dictionary with wildcard lookup.", "version": "1.1" }, "last_serial": 4915776, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "93fe7cdc5b1e96ee34cb3edde7567c42", "sha256": "a8f6816b67391d4316c33d3289db8f669bc0c891b1cbb4c56d1f9c94608bf66c" }, "downloads": -1, "filename": "tupledict-1.0.tar.gz", "has_sig": false, "md5_digest": "93fe7cdc5b1e96ee34cb3edde7567c42", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2876, "upload_time": "2019-03-08T11:04:14", "url": "https://files.pythonhosted.org/packages/ff/7a/d76e2f2504246ad5909417babbd0cbad0310f56392def1948a095c275822/tupledict-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "9dbe6a1d3d01b4e3d08edf05de181cb8", "sha256": "210903b6f0c3f56a532a164c0148040e9115ec3cb1c05517ecbe5d448a994e09" }, "downloads": -1, "filename": "tupledict-1.1.tar.gz", "has_sig": false, "md5_digest": "9dbe6a1d3d01b4e3d08edf05de181cb8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3279, "upload_time": "2019-03-08T14:40:58", "url": "https://files.pythonhosted.org/packages/b1/d6/124545e6e28a09d4f76eb39504aad2191ecb9b9e637f5a75b04e3230081a/tupledict-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9dbe6a1d3d01b4e3d08edf05de181cb8", "sha256": "210903b6f0c3f56a532a164c0148040e9115ec3cb1c05517ecbe5d448a994e09" }, "downloads": -1, "filename": "tupledict-1.1.tar.gz", "has_sig": false, "md5_digest": "9dbe6a1d3d01b4e3d08edf05de181cb8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3279, "upload_time": "2019-03-08T14:40:58", "url": "https://files.pythonhosted.org/packages/b1/d6/124545e6e28a09d4f76eb39504aad2191ecb9b9e637f5a75b04e3230081a/tupledict-1.1.tar.gz" } ] }