Metadata-Version: 2.4
Name: namedranges
Version: 0.8.1
Summary: Named ranges with utilities for index reflows
License: MIT
License-File: LICENSE
Author: Chris Czarnecki
Author-email: kjczarne@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Description-Content-Type: text/markdown

# `namedranges`

This lib provides a simple way to work with intervals/ranges in Python using a tuple representation for each interval and a string annotation.

## Installation

```bash
pip install namedranges
```

## Usage

```python
ranges = {
    "1": (1, 5),
    "2": (6, 22),
    "3": (23, 26),
    "4": (27, 38)
}

nr = namedrange.from_dict(ranges)
nr.add_gaps([(10, 10)])
complement = nr.complement()
print(complement)
```

