Derange is a handy Python library to compose range objects from lists of
integers:
>>> import derange
>>> derange.derange([1,2,3,20,21,22])
[range(1, 4), range(20, 23)]
Read more here https://pypi.org/project/derange/
OK?
Kind regards,
Job
py-derange.tgz
Description: application/
On 2024/04/17 11:59, Job Snijders wrote:
> Derange is a handy Python library to compose range objects from lists of
> integers:
>
> >>> import derange
> >>> derange.derange([1,2,3,20,21,22])
> [range(1, 4), range(20, 23)]
>
> Read more here https://pypi.org/project/derange/
>
> OK?
>