Hacker News new | ask | show | jobs
by RazerM 3842 days ago
Have you tried bitarray[1]?

[1]: https://pypi.python.org/pypi/bitarray

2 comments

It was that easy? Man. Looking forward to giving these a shot...
I've used it quite heavily to parse data that comes in 85- and 1275-bit chunks and it works awesome.

Edit: sorry, it was bitstring, not bitarray. bitstring.BitArray :).

Obligatory XKCD: https://xkcd.com/353/
+1 from me. Excellent library