bitmap
.
What it is and what it does
BitMap is a Python class for storing and manipulating arrays of bits in a compact format. It provides basic bit operations—set, reset, flip, test—and bulk queries like count, any, all, and nonzero to find set bits. The class can also convert to and from string representations of bits.
The package depends only on future for Python 2/3 compatibility. It is abandoned as of 2019, with no recent maintenance or updates. The license is unclear, and compatibility with Python versions beyond 3.7 is unverified. Use only if you need a simple, self-contained bit array for legacy code or if you are willing to fork and maintain it yourself.
Use it for:
- Implementing membership tests or bloom filters where you need a compact representation of which items have been seen.
- Storing boolean flags or feature flags in a space-efficient manner for large numbers of items.
- Educational purposes to understand bit-level operations and compact data structures.
- Legacy Python 2.7 or 3.7 projects that already depend on this package.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
BitMap provides a compact bit array class for storing and manipulating individual bits, with operations to set, reset, flip, test, and query bits.
No. The package is abandoned with no maintenance since 2019, license is unclear, and compatibility beyond Python 3.7 is unverified. For new projects, consider maintained alternatives. Only consider it for legacy codebases already locked to Python 2.7 or 3.7 where you control the environment.
Install
bitmap on PyPI
pip
pip install bitmapuv
uv add bitmappoetry
poetry add bitmapInstalling bitmap
Before you install
Installation is straightforward with low friction, but the package is abandoned—last release was 2019-11-23 and last commit 2022-05-14. No active maintenance means no fixes for compatibility issues.
License in practice
License is unclear; no SPDX identifier or raw license text is provided. Before using in production or distribution, verify the actual license terms from the repository.
Quickstart
pip install bitmap
from bitmap import BitMap
bm = BitMap(32)
bm.set(1)
print(bm.tostring())
Package classifiers list Python 2.7 and 3.7 support; compatibility with later versions is unverified due to abandonment.
Verify before relying
- Whether the package actually works on Python versions beyond 3.7, given its abandonment and last release in 2019.
- The actual license under which bitmap is distributed, since license_treatment is unclear.
- Performance characteristics and memory efficiency compared to alternatives.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — future |
| Maintenance | abandoned — 2,456 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,411/month — #14,842 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bitmap-0.0.7-py2-none-any.whl; bitmap-0.0.7-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
bitstringbitstring provides Python classes and functions…
permissive · top 5,000 on PyPI
pyroaringProvides an efficient, ordered set data…
permissive · top 1,000 on PyPI
bitarray-hardbyteProvides an efficient C-backed array type for…
permissive · top 15,000 on PyPI
tibsTibs provides immutable and mutable bit-level…
permissive · top 5,000 on PyPI
blurhashEncodes images into compact blurhash text…
permissive · top 15,000 on PyPI
bitstructPacks and unpacks Python values into bit-level…
permissive · top 5,000 on PyPI
fxpmathFxpmath provides fixed-point arithmetic with…
permissive · top 15,000 on PyPI
bitarrayProvides an efficient C-backed array type for…
permissive · top 1,000 on PyPI
potracerConverts bitmap images to vector graphics by…
copyleft · top 15,000 on PyPI
svglibSvglib reads SVG files and converts them to…
copyleft · top 5,000 on PyPI