Metadata-Version: 2.1
Name: fidx
Version: 1.1.0
Summary: Float and custom indexes in Python
Home-page: UNKNOWN
Author: Davide Peressoni
Author-email: dpdmancul+fidx@gmail.com
License: MIT
Project-URL: Source, https://gitlab.com/DPDmancul/fidx
Project-URL: Tracker, https://gitlab.com/DPDmancul/fidx/-/issues
Project-URL: Documentation, https://gitlab.com/DPDmancul/fidx/-/wikis/home
Description: # fidx
        > A module for float and custom indexes in Python
        
        Allows to use float indexes to access lists, tuples, … in percentage (e.g. 0.5 is the middle item).  
        Allows also to add custom index types to existing types or to custom ones.
        
        ## Installation
        
        ```sh
        pip install fidx
        ```
        
        ## Usage example
        
        ```python
        >>> import fidx
        
        >>> fidx([1,2,3])[.5]
        2
        
        >>> l = fidx([1,2,3,4])
        >>> l[:.5], l[.5:]
        ([1, 2], [3, 4])
        
        >>> t = fidx.tuple(i//2 for i in range(0,10))
        >>> t[.2:-.2:.2]
        (1, 2, 3)
        ```
        
        _For more examples and usage, please refer to the [Wiki][wiki]._
        
        ## About
        
        Davide Peressoni – dpdmancul+fidx@gmail.com
        
        Distributed under the MIT license. See ``LICENSE`` for more information.
        
        <https://gitlab.com/DPDmancul/>
        
        ## Changelog
        
        * _version **1.1.0**_
          - Fix of #1
          - Added `float_id` method to extended classes.
          - Added `fidx.float_idx_of` function.
        
        <!-- Markdown link & img dfn's -->
        [wiki]: https://gitlab.com/DPDmancul/fidx/-/wikis/home
         
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Provides-Extra: NumPy support
