{ "info": { "author": "Avinash Kak", "author_email": "kak@purdue.edu", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "\n\n\n\nConsult the module API page at\n\n https://engineering.purdue.edu/kak/dist/BitVector-3.4.9.html\n\nfor all information related to this module, including \ninformation regarding the latest changes to the code. The \npage at the URL shown above lists all of the module\nfunctionality you can invoke in your own code.\n\nWith regard to the basic purpose of the module, it defines\nthe BitVector class as a memory-efficient packed\nrepresentation for bit arrays. The class comes with a large\nnumber of methods for using the representation in diverse\napplications such as computer security, computer vision,\netc.\n\n**Version 3.4.9** includes significantly faster implementations \nfor concatenating and extending bitvectors.\n\n**Version 3.4.8** fixes a bug in the slice assignment logic\nin the implementation of __setitem__().\n\nThe class is provided with the following operators/methods:\n\n- __add__\n- __and__\n- __contains__\n- __eq__, __ne__, __lt__, __le__, __gt__, __ge__\n- __getitem__\n- __iadd__\n- __int__\n- __invert__\n- __iter__\n- __len__\n- __lshift__\n- __or__\n- __rshift__\n- __setitem__\n- __str__\n- __xor__\n- close_file_object\n- count_bits \n- count_bits_sparse (faster for sparse bit vectors) \n- deep_copy\n- divide_into_two\n- gcd (for greatest common divisor)\n- gen_random_bits \n- get_bitvector_in_ascii\n- get_bitvector_in_hex\n- gf_divide_by_modulus (for modular divisions in GF(2^n))\n- gf_MI (for multiplicative inverse in GF(2^n))\n- gf_multiply (for multiplications in GF(2))\n- gf_multiply_modular (for multiplications in GF(2^n))\n- hamming_distance\n- int_val (for returning the integer value) \n- is_power_of_2\n- is_power_of_2_sparse (faster for sparse bit vectors)\n- jaccard_distance\n- jaccard_similarity\n- length \n- min_canonical\n- multiplicative_inverse\n- next_set_bit\n- pad_from_left\n- pad_from_right\n- permute\n- rank_of_bit_set_at_index\n- read_bits_from_file\n- reset\n- reverse\n- runs\n- set_value\n- shift_left (for non-circular left shift)\n- shift_right (for non-circular right shift)\n- test_for_primality\n- unpermute\n- write_to_file\n- write_bits_to_stream_object\n\n ", "description_content_type": "", "docs_url": null, "download_url": "https://engineering.purdue.edu/kak/dist/BitVector-3.4.9.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://engineering.purdue.edu/kak/dist/BitVector-3.4.9.html", "keywords": "bit array", "license": "Python Software Foundation License", "maintainer": "", "maintainer_email": "", "name": "BitVector", "package_url": "https://pypi.org/project/BitVector/", "platform": "All platforms", "project_url": "https://pypi.org/project/BitVector/", "project_urls": { "Download": "https://engineering.purdue.edu/kak/dist/BitVector-3.4.9.tar.gz", "Homepage": "https://engineering.purdue.edu/kak/dist/BitVector-3.4.9.html" }, "release_url": "https://pypi.org/project/BitVector/3.4.9/", "requires_dist": null, "requires_python": "", "summary": "A memory-efficient packed representation for bit arrays in pure Python", "version": "3.4.9" }, "last_serial": 5010313, "releases": { "1.3": [], "1.3.1": [], "1.3.2": [], "1.4": [], "1.4.1": [], "1.5": [], "1.5.1": [], "2.0": [], "2.0.1": [], "2.1": [], "2.2": [], "3.0": [], "3.1": [], "3.1.1": [], "3.2": [], "3.3": [], "3.3.1": [], "3.3.2": [], "3.4": [], "3.4.1": [ { "comment_text": "", "digests": { "md5": "e4de0cdf3864facbdc8471dec71c355e", "sha256": "862b05aa16f7f991853e64179370025cea5bf6a1e10af8ec8c08261dcffeb074" }, "downloads": -1, "filename": "BitVector-3.4.1.tar.gz", "has_sig": false, "md5_digest": "e4de0cdf3864facbdc8471dec71c355e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 154260, "upload_time": "2015-10-28T20:47:26", "url": "https://files.pythonhosted.org/packages/06/07/d1b49a07b43c79f013f7628e7b8eb06fb115bb51337a050885ccef5e5ef7/BitVector-3.4.1.tar.gz" } ], "3.4.2": [ { "comment_text": "", "digests": { "md5": "b63d17462e684236ad94feceed644f08", "sha256": "b3be4defdb274e5f7e94d15edff88e481a50de0b555a7fe712e54e483a6aca43" }, "downloads": -1, "filename": "BitVector-3.4.2.tar.gz", "has_sig": false, "md5_digest": "b63d17462e684236ad94feceed644f08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 154629, "upload_time": "2015-10-28T20:45:40", "url": "https://files.pythonhosted.org/packages/22/22/8052d300ece426d4fad534cbabb4d7d2367e8fdc07b02f87357a4b2c2d12/BitVector-3.4.2.tar.gz" } ], "3.4.3": [ { "comment_text": "", "digests": { "md5": "97872271c94b0436083eabd7dc9f7fcc", "sha256": "01aed073ac5424b498dd9d4f9ffe9ea361a9a75a3991e6928c055f0fe2884a92" }, "downloads": -1, "filename": "BitVector-3.4.3.tar.gz", "has_sig": false, "md5_digest": "97872271c94b0436083eabd7dc9f7fcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121277, "upload_time": "2015-10-28T20:44:05", "url": "https://files.pythonhosted.org/packages/4c/3c/5abe8ef47b6ebf01ed6a3e8ea71e684715b3f0e069ff303f925223bca799/BitVector-3.4.3.tar.gz" } ], "3.4.4": [ { "comment_text": "", "digests": { "md5": "832b368cd8e4928a1f3b1aa58ac80aa6", "sha256": "e528ec6e03bcabe6d7e10d4a13459d644dd6577b73e225f7a686bd1902734186" }, "downloads": -1, "filename": "BitVector-3.4.4.tar.gz", "has_sig": false, "md5_digest": "832b368cd8e4928a1f3b1aa58ac80aa6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121822, "upload_time": "2015-10-27T18:54:09", "url": "https://files.pythonhosted.org/packages/ca/49/f226996a597d61c1e670f3e70605fd187678ebe035b7b7fa543b94b09679/BitVector-3.4.4.tar.gz" } ], "3.4.5": [ { "comment_text": "", "digests": { "md5": "921cbfad82d0282a3b5aa52eb0f59887", "sha256": "fc19539b0c8d9dd221a6d48b226e58d4abcb3f385829b5c869f64e291cf9a959" }, "downloads": -1, "filename": "BitVector-3.4.5.tar.gz", "has_sig": false, "md5_digest": "921cbfad82d0282a3b5aa52eb0f59887", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 124046, "upload_time": "2016-11-06T11:25:35", "url": "https://files.pythonhosted.org/packages/f5/2c/59725326eb00789e88bb1bf946dbd3ff45e08757704ebd2033a22b355d4c/BitVector-3.4.5.tar.gz" } ], "3.4.6": [ { "comment_text": "", "digests": { "md5": "cb9a16eb3629f91fa51976b20a0a34af", "sha256": "2dc160d433eafb154eb3e2b5d419417fe9a819070e58ada685c1c14e3485841e" }, "downloads": -1, "filename": "BitVector-3.4.6.tar.gz", "has_sig": false, "md5_digest": "cb9a16eb3629f91fa51976b20a0a34af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 125137, "upload_time": "2017-01-19T00:41:15", "url": "https://files.pythonhosted.org/packages/de/02/d2c06481a1c226fe2d2006af8ae6cea2a5aa38a3fbf4411472c449c3426d/BitVector-3.4.6.tar.gz" } ], "3.4.7": [ { "comment_text": "", "digests": { "md5": "ce44277088866b1dbebdbec9fcf5157b", "sha256": "daedd1081ed7040684ca97f5749947ef7b86eaabae27e7a9b69bfd613d22751a" }, "downloads": -1, "filename": "BitVector-3.4.7.tar.gz", "has_sig": false, "md5_digest": "ce44277088866b1dbebdbec9fcf5157b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 125013, "upload_time": "2017-01-26T06:19:47", "url": "https://files.pythonhosted.org/packages/91/18/6253795e84bbfeb18c7b75c2cdca1d8e895b501347fcde749d72fff4a195/BitVector-3.4.7.tar.gz" } ], "3.4.8": [ { "comment_text": "", "digests": { "md5": "903bc30f0b8d25dd28d3e02f7161c81e", "sha256": "c636d81495a15c3ccd8c3c1497d90deaf7fdcf60aa8cfc91e60a771796ba7f72" }, "downloads": -1, "filename": "BitVector-3.4.8.tar.gz", "has_sig": false, "md5_digest": "903bc30f0b8d25dd28d3e02f7161c81e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126947, "upload_time": "2018-03-21T15:47:32", "url": "https://files.pythonhosted.org/packages/36/85/d2b52e436c696c8426c1f855d831610e0605afeee9b256730206ea20cce4/BitVector-3.4.8.tar.gz" } ], "3.4.9": [ { "comment_text": "", "digests": { "md5": "82052e59f99ce424898203ca2a143ef5", "sha256": "a5e94cbb4804213b1f0c32d84517cd8f0bb8c689b5eb8055d351632e220a5edd" }, "downloads": -1, "filename": "BitVector-3.4.9.tar.gz", "has_sig": false, "md5_digest": "82052e59f99ce424898203ca2a143ef5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 128306, "upload_time": "2019-03-31T20:21:13", "url": "https://files.pythonhosted.org/packages/a4/0f/a6f3074ea26e292a4d716e4b2486ddefb0e011b97e7de7fe355b4018562a/BitVector-3.4.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "82052e59f99ce424898203ca2a143ef5", "sha256": "a5e94cbb4804213b1f0c32d84517cd8f0bb8c689b5eb8055d351632e220a5edd" }, "downloads": -1, "filename": "BitVector-3.4.9.tar.gz", "has_sig": false, "md5_digest": "82052e59f99ce424898203ca2a143ef5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 128306, "upload_time": "2019-03-31T20:21:13", "url": "https://files.pythonhosted.org/packages/a4/0f/a6f3074ea26e292a4d716e4b2486ddefb0e011b97e7de7fe355b4018562a/BitVector-3.4.9.tar.gz" } ] }