Metadata-Version: 2.1
Name: rp_annot
Version: 0.0.3
Summary: Minimal compression library for sparse or contiguous 1D numpy boolean arrays
Home-page: https://github.com/Abe404/rp_annot
Author: Abraham George Smith
Author-email: abe@abesmith.co.uk
License: GPLv3
Download-URL: https://github.com/Abe404/rp_annot/archive/refs/tags/0.0.3.tar.gz
Description: # rp-annot
        Minimal compression library for sparse or contiguous 1D numpy boolean arrays.
        
        Only depends on numpy
        
        ## Install 
        The latest version is available via PyPI (https://pypi.org/project/rp-annot) 
         
        > pip install rp-annot
        
        ## Example usage
        ```python
        import rp_annot as rpa
        import numpy as np
        
        np_1d_bool_array = np.zeros(100000, dtype=bool)
        np_1d_bool_array[20000:50000] = True
        compressed = rpa.compress(np_1d_bool_array) # 16 bytes
        decompressed =  rpa.decompress(compressed, len(np_1d_bool_array))
        assert np.array_equal(np_1d_bool_array, decompressed)
        ```
        
Keywords: numpy,compression,sparse,boolean
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
