skip to navigation
skip to content

Not Logged In

intbitset 2.1

C-based extension implementing fast integer bit sets

Latest Version: 2.2.1


intbitset is on PyPI so all you need is:

pip install intbitset


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
>>> print x | y
intbitset([1, 2, 3, 4, 5])

Complete documentation is available at <> or can be build using Sphinx:

pip install Sphinx
python build_sphinx


Running the tests are as simple as:

python test

or (to also show test coverage)



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.

File Type Py Version Uploaded on Size
intbitset-2.1-1.src.rpm (md5)
built for Ubuntu 14.04
RPM 2.7 2014-06-16 137KB
intbitset-2.1-1.x86_64.rpm (md5)
built for Ubuntu 14.04
RPM 2.7 2014-06-16 211KB
intbitset-2.1.linux-x86_64.tar.gz (md5)
built for Linux-3.13.0-29-generic-x86_64-with-glibc2.4
"dumb" binary 2.7 2014-06-16 205KB
intbitset-2.1.tar.gz (md5) Source 2014-06-16 131KB
  • Downloads (All Versions):
  • 388 downloads in the last day
  • 2011 downloads in the last week
  • 6860 downloads in the last month