An bits array implement in pure python.
Project description
An bits array implement in pure python. No dependency. Support python3+.
Package Installation and Usage
The package is available on PyPI ( called py3bitlist ):
pip install py3bitlist
The library can be imported in the usual way:
import bitlist
APIs
- BitList(length)
Return a BitList object with length bits.
- BitList.get_bytes_length()
Return the number of bytes that consist the Bitlist.
- BitList.get_length()
Return the number of bits that consist the Bitlist.
- BitList.set_bit(position, num)
Set the bit in position to num.
- BitList.get_bit(position)
Get the bit in position.
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
py3bitlist-1.0.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for py3bitlist-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83e7b4279b32541dc54566813f266c51c39abefd2021947928cfdb1e738ced65 |
|
MD5 | f9b6e9e2e58d2981f927e2dc71d265a5 |
|
BLAKE2b-256 | 18dfc76da0a8a39833072f10500c7f0eff466b04fe235dd04e0feab64aa4f608 |