No project description provided
Project description
Persistent Bitsets
This package provides immutable, sparse, persistent bitsets. That is to say, adding an extra item to a bitset, or unioning two bitsets, will make a new bitset, but the new bitset will re-use as much of the old bitset as possible. It's implemented in Rust.
For a bitset with n elements whose largest element is m, memory usage should be O(n log m), single insertions should be O(log m), and unions should be O(k log m) where k is the size of the smallest bitset being unioned.
Usage example:
from persistent_bitset import PersistentBitSet
set1 = PersistentBitSet(1, 2, 3, 4, 5)
assert list(set1) == [1, 2, 3, 4, 5]
set2 = set1.add(9)
assert list(set1) == [1, 2, 3, 4, 5]
assert list(set2) == [1, 2, 3, 4, 5, 9]
set3 = PersistentBitSet(1, 2, 3).union(PersistentBitSet(4, 5, 6))
assert list(set3) == [1, 2, 3, 4, 5, 6]
assert 1 in set3
assert 6 in set3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file persistent_bitset-0.1.1.tar.gz.
File metadata
- Download URL: persistent_bitset-0.1.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0831b751e216724f9356c3bcf3eebcf12a02a504b52bba35c359e591c25d6a92
|
|
| MD5 |
206d3537038cdd201392bdddc867426b
|
|
| BLAKE2b-256 |
40e328c8064fe37b1f876bbfea93d6735c1f9fa45a110ff1875f38acbadaa831
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-win_arm64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-win_arm64.whl
- Upload date:
- Size: 138.1 kB
- Tags: CPython 3.10+, Windows ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdc6c29094a10849838376652a1f69e56e3f2a9b01b3d55373d9be9045c5995f
|
|
| MD5 |
338d2ab6b6770dd0c4fa49b5ea725229
|
|
| BLAKE2b-256 |
075a956fa57be704409cab5a319e18867f9f7794aae4813e85d456b1f7aac93b
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 140.2 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
880a5f074d321b81c2de999859b5d35a1fe7de9e258a45d3189193dc517da90a
|
|
| MD5 |
4b3686bd344f44225f5ea4b75c3d0b06
|
|
| BLAKE2b-256 |
a6b1bab6175e6c6f1443a2197db654aa0125fee88e4577634c284088b26bdfa4
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-win32.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-win32.whl
- Upload date:
- Size: 136.3 kB
- Tags: CPython 3.10+, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2e598c9294c0012d418cff68a552649328330f7e9203249fd1b8273c0ecc301
|
|
| MD5 |
5c2be724aa26fa8e7fd6758a16d1b00c
|
|
| BLAKE2b-256 |
88e1a02cda05948278eb58552bb5be92df1be80d2203b736760568fe42a37175
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 484.8 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28d93ed72b2160a41333db874d23503e77c9da039f4ee0ab578e3b5df4ccde77
|
|
| MD5 |
432e4fc100b204e5259da5bbbb1a7503
|
|
| BLAKE2b-256 |
cf257b87bc9bf40fe41d615ccf4e347494bf919ebc0aaa64ee2a06c2503a72c9
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 522.6 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47465972e970f2ef53274cca0514720cb2cde191cc842e5b22d2cad706fa3dce
|
|
| MD5 |
4ca4720faa5cb0171d965d44e411193d
|
|
| BLAKE2b-256 |
c5ac6bb108fc2e2f02e818e190142165171e135422bbeeb46a7ec1ec790bae5b
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_armv7l.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 566.6 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
232f618748f9572ed974a16c8fcb29ae89c7e2aa3ba5408c836771936ffc6001
|
|
| MD5 |
93e858c626bbb988e7f4315f8f94ea6d
|
|
| BLAKE2b-256 |
36defd7a6e788bea7fa1b9e785dfb7c4b85e0c8e7a352d5d6b1f8cb7e81d80e6
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 455.8 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe114122b183a232e2106154846bac9a20ca6ffec60a0656c1ced55ea2fb664f
|
|
| MD5 |
dfee436a6d3240d5b8ed0f43db59316e
|
|
| BLAKE2b-256 |
05973f087e8379f0aa3b7f144ff6a8d61ce7f426a487f67dec33d7371a6e470a
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 281.4 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f31740964e9f0db95e2d31ea2e4ebec464a7972d7309755ee4c626072e6c6081
|
|
| MD5 |
499002a31ca7efa62b1f5be980e96883
|
|
| BLAKE2b-256 |
428340d2f6d1df00dd81b0056e6f034e60203dff88d1451292659c14ae1812c1
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 300.6 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f77c4b265e0c33d3c745c0a7163a390ea4b4d11e07d0b487c9bbe2c2ba51f189
|
|
| MD5 |
d26d36e6f6cba86aad98caa2415c0ce9
|
|
| BLAKE2b-256 |
42342cd4dc37779b04f232a7e317a185cc292ba33f9f6bac59a06a7818c8b8fd
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 399.5 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7bb1a98996c797915841b50dda5018c20d73144567889a40f44781c3fe62991
|
|
| MD5 |
83ffb5b0abcd1bbfdb5297bf54ca0608
|
|
| BLAKE2b-256 |
cb60f47cd13ffe2577228bf144fee062eeb452b8c7a6bcf952ac40b4fa803ff9
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 291.1 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
484af98a595e98186247b0c3ce31fa596a04b7300b4c7040a29caa30c67c9e06
|
|
| MD5 |
3ff35576b1cf7296e6fd04d33efd4d81
|
|
| BLAKE2b-256 |
104b2e91a6bbb307b6b6657efc91673b5b1b3b14473abda0a2462ed9a6889db3
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 279.9 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c95a6d210ba6d95c50aa3b47f80a696918b6f775803ed5cb982e7004a53def
|
|
| MD5 |
b85103c171cfadab3a2d9ea070edf035
|
|
| BLAKE2b-256 |
02a026a31e1fe6f1c2267bb1f67b21cf37c181fee4d608baa505ac97033cd0ca
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 303.9 kB
- Tags: CPython 3.10+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54016a0f1f46ccaa342821c2ac494ba64bd135d24c518807c5634bb604ca60b9
|
|
| MD5 |
1b586156b046301b49976584e8b61289
|
|
| BLAKE2b-256 |
1564fbcf0340fb0cf75f208a1c76162f7b6e10230e9a36720f6070814fa29853
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 245.1 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bc88fc7587c36b4c752bbc5983e2642928706529fd8c5edbcbd5f74790182cf
|
|
| MD5 |
ad9543e3a191a0f1829e5e18ce9f8f5e
|
|
| BLAKE2b-256 |
26f1417d78ac8d69017c0af6edc5cb8e9afaf2038d0df6cc5fa3257f2f16bd0e
|
File details
Details for the file persistent_bitset-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: persistent_bitset-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 246.7 kB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e32a4f40e6429bf3f844f8621c05768d7e424d7bfe004c29e4647c79550ab2d2
|
|
| MD5 |
03bc3c08a9a461aa72d23a6b5dd9cb19
|
|
| BLAKE2b-256 |
3069a633e2d1d0b0d6a873b70196b762ddf3aff701b98e94a8c67347c613baf2
|