{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/10"}],"enrichment":{"capability":"Provides an efficient C-backed array type for storing and manipulating sequences of boolean values, with support for bitwise operations, slicing, and endianness control.","skillfed_tags":["bit-manipulation","c-extension","memory-efficient"],"use_cases":["Storing large sets of boolean flags or bit masks where memory efficiency is critical.","Implementing Bloom filters, bitmaps, or other bit-level data structures.","Working with binary file formats or network protocols that require precise bit-level manipulation.","Creating Huffman codes or other variable-length prefix codes for compression.","Interfacing with memory-mapped files or C libraries that expect raw bit-level data."],"what_it_does":"bitarray-hardbyte is a C extension that provides a memory-efficient array type for storing boolean values. Eight bits are packed into a single byte, making it far more compact than a Python list of booleans. The library supports both big-endian and little-endian bit ordering, allowing fine-grained control over how bits map to bytes\u2014important when working with binary protocols, file formats, or memory-mapped data.\n\nThe package behaves like a standard Python sequence: you can slice, extend, iterate, and apply bitwise operations (&, |, ^, ~, <<, >>) directly on bitarray objects. It includes utility functions for encoding/decoding variable-length prefix codes, converting to hexadecimal, creating Huffman codes, and serialization. All functionality is implemented in C for speed, and the library supports the buffer protocol for zero-copy interoperability with other binary data structures like numpy arrays.","worth_installing":"Yes, if you need memory-efficient boolean storage or bit-level operations. The package is mature, actively maintained, permissively licensed, and has no known vulnerabilities. Install friction is moderate due to C compilation, but precompiled wheels cover most common platforms. Not necessary for typical Python applications that don't require bit-level manipulation or extreme memory optimization."},"id":"bitarray-hardbyte","links":{"html":"https://skillfed.io/packages/bitarray-hardbyte","md":"https://skillfed.io/packages/bitarray-hardbyte.md","pypi":"https://pypi.org/project/bitarray-hardbyte/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-02-28","license_spdx":null,"license_treatment":"permissive","name":"bitarray-hardbyte","python_support":"unspecified","summary":"efficient arrays of booleans -- C extension"},"popularity":{"monthly_downloads":93774,"position":13363,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.8"}
