Skip to content

interval-design/python-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',)