An bits array implement in pure python.
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:
Return a BitList object with length bits.
Return a BitList object which is constructed by bytes.
Return the number of bytes that consist the Bitlist.
Return the number of bits that consist the Bitlist.
- BitList.set_bit(position, num)
Set the bit in position to num.
Get the bit in position.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
py3bitlist-1.0.4.tar.gz (2.8 kB view hashes)