interval-tools

Utility functions and classes used in applications of Interval Design.


License
MIT
Install
pip install interval-tools==0.10.3

Documentation

Python Tools for Applications of Interval Design

Requirements

Python 3.11+

Installation

pip install interval-tools

Or if you want to use ObjectId as a unique identifier for Entity or Aggregate, run

pip install "interval-tools[objectid]"

Quickstart

>>> from interval.utils import batched
>>> for batch in batched('ABCDEFG', 3):
...     print(batch)
...
('A', 'B', 'C')
('D', 'E', 'F')
('G',)