devel/py-derange 0.2.2 OpenBSD
Python lib to compress lists of integers to range objects
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, lang/python
Description
Do you have a list of integers? Do you want to know what ranges of consecutive values the list covers? Do you need to solve a gaps and islands problem outside of SQL? Maybe you have a list of dates and need to find the longest streak of consecutive days on which something happened. No? Why not? Well, either way, the derange module is here for you, ready to solve all these problems and a couple more.
Install
Binary package:
pkg_add py3-derange
From the ports tree:
cd /usr/ports/devel/py-derange && make install
Dependencies
Build dependencies 4
Run dependencies 1
No port depends on this one.