{ "info": { "author": "Zhe He", "author_email": "hezhe88@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Heapq\\_max\n==========\n\nDescription\n-----------\n\nA maxHeap version of heapq module for Python. Similar to heapq, c\nimplementation is used when available to ensure performance.\n\nDependencies\n------------\n\nPython 2 or 3\n\nInstallation\n------------\n\n::\n\n pip install heapq_max\n\nUsage\n-----\n\ntl;dr: same as heapq module except adding '\\_max' to all functions.\n\n::\n\n from heapq_max import *\n\n heap_max = [] # creates an empty heap\n heappush_max(heap_max, item) # pushes a new item on the heap\n item = heappop_max(heap_max) # pops the largest item from the heap\n item = heap_max[0] # largest item on the heap without popping it\n heapify_max(x) # transforms list into a heap, in-place, in linear time\n item = heapreplace_max(heap_max, item) # pops and returns largest item, and\n # adds new item; the heap size is unchanged\n\nLicense\n-------\n\nMIT\n\nHistory\n-------\n0.21\n''''\n\nSmall fix of download URL&README\n\n0.2\n'''\n\nAdd Python 2 support\n\n\n0.1 & 0.11\n'''''''''''\n\nFirst version, only supports Python 3", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/he-zhe/heapq_max/archive/0.21.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/he-zhe/heapq_max", "keywords": "heap,heapq,max heap", "license": "The MIT License (MIT)\nCopyright (c) 2016 Zhe He\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "heapq_max", "package_url": "https://pypi.org/project/heapq_max/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/heapq_max/", "project_urls": { "Download": "https://github.com/he-zhe/heapq_max/archive/0.21.tar.gz", "Homepage": "https://github.com/he-zhe/heapq_max" }, "release_url": "https://pypi.org/project/heapq_max/0.21/", "requires_dist": null, "requires_python": null, "summary": "A max Heap version of heapq module for Python.", "version": "0.21" }, "last_serial": 2250414, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "15d432921d73bca2903d062936dd4a0f", "sha256": "deefd3135c18de947eae73b2b3629ac84f56fa0379369831bd9c668a0aa9c6c1" }, "downloads": -1, "filename": "heapq_max-0.1.zip", "has_sig": false, "md5_digest": "15d432921d73bca2903d062936dd4a0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2740, "upload_time": "2016-07-28T03:13:03", "url": "https://files.pythonhosted.org/packages/8c/a2/cd30b4315b1b8753418db5bb240a172b368b0182135a3333897aa0ce9075/heapq_max-0.1.zip" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "ca60470d2ff5c69744f15364a8ff9d9f", "sha256": "ff8482ee8c3bd3e83da045ea6e7ee880a5d13d50d27fb7d731497b7ab46642ec" }, "downloads": -1, "filename": "heapq_max-0.11.zip", "has_sig": false, "md5_digest": "ca60470d2ff5c69744f15364a8ff9d9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2754, "upload_time": "2016-07-28T03:18:18", "url": "https://files.pythonhosted.org/packages/12/8f/beca78da0b93a17e02240d44daebb029a0ed40315e7dd59108087f3cb76c/heapq_max-0.11.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c2aa9cabf30c7910ecc79497bc1aaf1a", "sha256": "add1969e68cfa0c3cbac51954fb861056126908c3f38b4acb92b385e05e26a8d" }, "downloads": -1, "filename": "heapq_max-0.2.zip", "has_sig": false, "md5_digest": "c2aa9cabf30c7910ecc79497bc1aaf1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4008, "upload_time": "2016-07-28T23:29:47", "url": "https://files.pythonhosted.org/packages/25/73/991fb4442b2a1be6b1f776593199e62cb2c53cb47d8ea5d8b5e248fd3b37/heapq_max-0.2.zip" } ], "0.21": [ { "comment_text": "", "digests": { "md5": "a4dbc1204697859747f632aba7b90586", "sha256": "e7576e0066ea40e337c3eb93810a09ac25b0560d129eee3c56b0743fd110ce06" }, "downloads": -1, "filename": "heapq_max-0.21.zip", "has_sig": false, "md5_digest": "a4dbc1204697859747f632aba7b90586", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6953, "upload_time": "2016-07-29T01:23:53", "url": "https://files.pythonhosted.org/packages/59/fe/9bf1cb20552b7c0e1251f3315d3fce72567fd3217c7893b7a0ed6dc79b48/heapq_max-0.21.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a4dbc1204697859747f632aba7b90586", "sha256": "e7576e0066ea40e337c3eb93810a09ac25b0560d129eee3c56b0743fd110ce06" }, "downloads": -1, "filename": "heapq_max-0.21.zip", "has_sig": false, "md5_digest": "a4dbc1204697859747f632aba7b90586", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6953, "upload_time": "2016-07-29T01:23:53", "url": "https://files.pythonhosted.org/packages/59/fe/9bf1cb20552b7c0e1251f3315d3fce72567fd3217c7893b7a0ed6dc79b48/heapq_max-0.21.zip" } ] }