{ "info": { "author": "Zachary Voase", "author_email": "zack@meat.io", "bugtrack_url": null, "classifiers": [], "description": "CRoaring.py: Fast, compact integer bitmap sets, based on CRoaring\n=================================================================\n\n`Roaring bitmaps `__ are fast, compressed,\nand portable bitmaps, used to store unique sorted integer sets. These\nbitmaps offer better real-world space complexity and performance than\ntypical hash sets (such as Python's built-in ``set``), and can be\nserialized into a portable format for storage and interop with the\nC/C++, Java and Go libraries.\n\nThis library makes the\n`CRoaring `__ implementation\navailable in Python 2.7 and 3.5+. It uses\n`CFFI `__, so it works on both\nCPython and PyPy. The full Python ``set`` interface is implemented.\nComprehensive tests are included.\n\nInstallation\n------------\n\n::\n\n pip install croaring\n\nThe CRoaring source is included with the Python library, so you don't\nneed to install it from elsewhere (though you may need a C compiler\navailable if a binary package is unavailable for your architecture).\n\nUsage\n-----\n\nInstantiate a ``croaring.RoaringBitmap()``, and use it just like a\nnormal ``set``:\n\n::\n\n >>> import croaring\n >>> bitmap = croaring.RoaringBitmap()\n >>> bitmap\n RoaringBitmap([])\n >>> bitmap.add(1)\n >>> bitmap.add(4572)\n >>> bitmap.add(326)\n >>> bitmap\n RoaringBitmap([1, 326, 4572])\n\nYou can use either binary operators (``|``, ``&``, ``^`` and ``-``) or\ntheir English names (``union``, ``intersection``,\n``symmetric_difference`` and ``difference``):\n\n::\n\n >>> bitmap | RoaringBitmap([50, 95])\n RoaringBitmap([1, 50, 95, 326, 4572])\n >>> bitmap & RoaringBitmap([200, 326])\n RoaringBitmap([326])\n >>> bitmap ^ RoaringBitmap([200, 326])\n RoaringBitmap([1, 200, 4572])\n\nSince the bitmaps are ordered, indexing (including negative) is\nsupported:\n\n::\n\n >>> bitmap[1]\n 326\n >>> bitmap[-1]\n 4572\n\nFinally, you can construct a bitmap from a range, similar to the\narguments to Python's built-in ``range``:\n\n::\n\n >>> RoaringBitmap.range(10)\n RoaringBitmap([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])\n >>> RoaringBitmap.range(2, 10)\n RoaringBitmap([2, 3, 4, 5, 6, 7, 8, 9])\n >>> RoaringBitmap.range(2, 10, 3)\n RoaringBitmap([2, 5, 8])\n\nLicense\n-------\n\nCRoaring is licensed under the Apache License v2.0:\n\n Copyright 2016 The CRoaring authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\"); you\n may not use this file except in compliance with the License. You may\n obtain a copy of the License at\n\n ::\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied. See the License for the specific language governing\n permissions and limitations under the License.\n\nAll other code is released under the Unlicense:\n\n This is free and unencumbered software released into the public\n domain.\n\n Anyone is free to copy, modify, publish, use, compile, sell, or\n distribute this software, either in source code form or as a\n compiled binary, for any purpose, commercial or non-commercial, and\n by any means.\n\n In jurisdictions that recognize copyright laws, the author or\n authors of this software dedicate any and all copyright interest in\n the software to the public domain. We make this dedication for the\n benefit of the public at large and to the detriment of our heirs and\n successors. We intend this dedication to be an overt act of\n relinquishment in perpetuity of all present and future rights to\n this software under copyright law.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY\n CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n For more information, please refer to http://unlicense.org/\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zacharyvoase/croaring.py", "keywords": "", "license": "UNLICENSE", "maintainer": "", "maintainer_email": "", "name": "croaring", "package_url": "https://pypi.org/project/croaring/", "platform": "", "project_url": "https://pypi.org/project/croaring/", "project_urls": { "Homepage": "https://github.com/zacharyvoase/croaring.py" }, "release_url": "https://pypi.org/project/croaring/0.0.2/", "requires_dist": [ "cffi (>=1.4.0)", "six (>=1.10.0)" ], "requires_python": "", "summary": "Compressed integer sets based on Roaring bitmaps.", "version": "0.0.2" }, "last_serial": 3113465, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e10402756af56b27f710fd300c7bb29f", "sha256": "ff6f14f312af58080a00888b8ecdd01927cb6e75e84a4cc774e6f3a5b6706ed2" }, "downloads": -1, "filename": "croaring-0.0.1-cp27-cp27m-macosx_10_13_x86_64.whl", "has_sig": false, "md5_digest": "e10402756af56b27f710fd300c7bb29f", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 105564, "upload_time": "2017-08-21T02:09:21", "url": "https://files.pythonhosted.org/packages/df/9d/03cfaf43e5b808192dec7b8f9101447f4d1e733b0abe10b069f0668e26a1/croaring-0.0.1-cp27-cp27m-macosx_10_13_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "388ceecf6159719939e5b4a827948b48", "sha256": "500f88e7db5d9006703dc7ca2d985ee1a9ea4a17f9a0bca2018141a574babec1" }, "downloads": -1, "filename": "croaring-0.0.1-cp36-cp36m-macosx_10_13_x86_64.whl", "has_sig": false, "md5_digest": "388ceecf6159719939e5b4a827948b48", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 107322, "upload_time": "2017-08-21T02:09:23", "url": "https://files.pythonhosted.org/packages/5d/e7/de9bd107d2a1418a4d74f46fe046b9c804f6ec08bcdcfb8067ff0d99437b/croaring-0.0.1-cp36-cp36m-macosx_10_13_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "dbf289df09822470114c836bfa06e759", "sha256": "fd150946104d2015a00eeb592c65547654ee1654f9257d559f1d7d78b28c2ae7" }, "downloads": -1, "filename": "croaring-0.0.1.tar.gz", "has_sig": false, "md5_digest": "dbf289df09822470114c836bfa06e759", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 97766, "upload_time": "2017-08-21T02:09:24", "url": "https://files.pythonhosted.org/packages/db/3a/2118d6f0311f3626b2579802baf779494b817eb505800158c04629bee184/croaring-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b7d7663f3a2d5307be7ba119717bc02c", "sha256": "b4d4c93983b5399e6672f82560297c4f128bf472f657ba0d20c40abd97d270e3" }, "downloads": -1, "filename": "croaring-0.0.2-cp27-cp27m-macosx_10_13_x86_64.whl", "has_sig": false, "md5_digest": "b7d7663f3a2d5307be7ba119717bc02c", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 105627, "upload_time": "2017-08-22T02:21:00", "url": "https://files.pythonhosted.org/packages/5a/45/0ee887443ab9827c621edb30d04000258000a7d94df3488bb115748e8656/croaring-0.0.2-cp27-cp27m-macosx_10_13_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "6b80fe21c8235359472f1b4073fd7968", "sha256": "c0600e80cc75756d6565d01d5e24effa83ae9ccd5c5ec193c786aa354e26296e" }, "downloads": -1, "filename": "croaring-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl", "has_sig": false, "md5_digest": "6b80fe21c8235359472f1b4073fd7968", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 107384, "upload_time": "2017-08-22T02:21:02", "url": "https://files.pythonhosted.org/packages/44/e1/5661fabb684156785e56bbdf7c967f5795a93917eb1a0498b27621295c7b/croaring-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "cda6d79cd11cffe53b4c0039bb22b302", "sha256": "6fe9ecabaca21b83a2ed177f4561b6145d50bb453dae804b9a2f3f5e1ec2d24a" }, "downloads": -1, "filename": "croaring-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cda6d79cd11cffe53b4c0039bb22b302", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 98080, "upload_time": "2017-08-22T02:21:03", "url": "https://files.pythonhosted.org/packages/b1/eb/cdfb47739048613ae778479063cbc4fb9f907ac00b11c9a006bb103d0786/croaring-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7d7663f3a2d5307be7ba119717bc02c", "sha256": "b4d4c93983b5399e6672f82560297c4f128bf472f657ba0d20c40abd97d270e3" }, "downloads": -1, "filename": "croaring-0.0.2-cp27-cp27m-macosx_10_13_x86_64.whl", "has_sig": false, "md5_digest": "b7d7663f3a2d5307be7ba119717bc02c", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 105627, "upload_time": "2017-08-22T02:21:00", "url": "https://files.pythonhosted.org/packages/5a/45/0ee887443ab9827c621edb30d04000258000a7d94df3488bb115748e8656/croaring-0.0.2-cp27-cp27m-macosx_10_13_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "6b80fe21c8235359472f1b4073fd7968", "sha256": "c0600e80cc75756d6565d01d5e24effa83ae9ccd5c5ec193c786aa354e26296e" }, "downloads": -1, "filename": "croaring-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl", "has_sig": false, "md5_digest": "6b80fe21c8235359472f1b4073fd7968", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 107384, "upload_time": "2017-08-22T02:21:02", "url": "https://files.pythonhosted.org/packages/44/e1/5661fabb684156785e56bbdf7c967f5795a93917eb1a0498b27621295c7b/croaring-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "cda6d79cd11cffe53b4c0039bb22b302", "sha256": "6fe9ecabaca21b83a2ed177f4561b6145d50bb453dae804b9a2f3f5e1ec2d24a" }, "downloads": -1, "filename": "croaring-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cda6d79cd11cffe53b4c0039bb22b302", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 98080, "upload_time": "2017-08-22T02:21:03", "url": "https://files.pythonhosted.org/packages/b1/eb/cdfb47739048613ae778479063cbc4fb9f907ac00b11c9a006bb103d0786/croaring-0.0.2.tar.gz" } ] }