Skip to main content

C-based extension implementing fast integer bit sets

Project description

https://travis-ci.org/inveniosoftware/intbitset.png?branch=master https://coveralls.io/repos/inveniosoftware/intbitset/badge.png?branch=master https://pypip.in/v/intbitset/badge.png https://pypip.in/d/intbitset/badge.png https://d2weczhvl823v0.cloudfront.net/kaplun/intbitset/trend.png

Installation

intbitset is on PyPI so all you need is:

pip install intbitset

Documentation

Provides an intbitset data object holding unordered sets of unsigned integers with ultra fast set operations, implemented via bit vectors and Python C extension to optimize speed and memory usage.

Emulates the Python built-in set class interface with some additional specific methods such as its own fast dump and load marshalling functions. Uses real bits to optimize memory usage, so may have issues with endianness if you transport serialized bitsets between various machine architectures.

Please note that no bigger than __maxelem__ elements can be added to an intbitset.

>>> x = intbitset([1,2,3])
>>> y = intbitset([3,4,5])
>>> print x & y
intbitset([3])
>>> print x | y
intbitset([1, 2, 3, 4, 5])

Complete documentation is available at <http://intbitset.readthedocs.org> or can be build using Sphinx:

pip install Sphinx
python setup.py build_sphinx

Testing

Running the tests are as simple as:

python setup.py test

or (to also show test coverage)

source run-tests.py

License

Copyright (C) 2013 CERN.

intbitset is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

intbitset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with intbitset; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

In applying this licence, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intbitset-2.1.tar.gz (134.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

intbitset-2.1.linux-x86_64.tar.gz (210.1 kB view details)

Uploaded Source

intbitset-2.1-1.x86_64.rpm (216.6 kB view details)

Uploaded Source

intbitset-2.1-1.src.rpm (141.0 kB view details)

Uploaded Source

File details

Details for the file intbitset-2.1.tar.gz.

File metadata

  • Download URL: intbitset-2.1.tar.gz
  • Upload date:
  • Size: 134.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for intbitset-2.1.tar.gz
Algorithm Hash digest
SHA256 858ec71f314bfa14c30d1b3e67052b30476988e455ea9f35064ad438bff8ae25
MD5 3bf5da5b9d47f6192bcc4d913797d5d0
BLAKE2b-256 c1384f0169351246fd7201b45d1d4d2ea165106cfd03b715162128b6de41d5d6

See more details on using hashes here.

File details

Details for the file intbitset-2.1.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for intbitset-2.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 8bc83b2e84687c7227ac0ea1add521df0f5c6fead7bc23526a7c74f95a733d6c
MD5 d1c8286ee689271b0e97341d23ad0fb2
BLAKE2b-256 fa0f9d26768c542f4185917b2179dbbe0c68cb9ddaba7b5c01c9e1811343e6b0

See more details on using hashes here.

File details

Details for the file intbitset-2.1-1.x86_64.rpm.

File metadata

  • Download URL: intbitset-2.1-1.x86_64.rpm
  • Upload date:
  • Size: 216.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for intbitset-2.1-1.x86_64.rpm
Algorithm Hash digest
SHA256 10635458ed7c144375ebe6311131656b81253231780ba5acbac77d080b013be4
MD5 df64894f3d906f9fe08231312d7f9372
BLAKE2b-256 938cf759290ffa5bf5d50ba3390940497ba3b0195bfa7d5a8be2d58c5a7ab1fe

See more details on using hashes here.

File details

Details for the file intbitset-2.1-1.src.rpm.

File metadata

  • Download URL: intbitset-2.1-1.src.rpm
  • Upload date:
  • Size: 141.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for intbitset-2.1-1.src.rpm
Algorithm Hash digest
SHA256 4c4c36fd36221568706a7f4c2a811dbba5e67ab3f3816ca3c08ded714825f7dc
MD5 e54aefa7c3934351499966181cc7a234
BLAKE2b-256 8646189093782620f06cb3b67b1ad31b08e3e5a0a47a4228eaeca9027a3c8ef2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page