Python lib to compress lists of integers to range objects
Project homepage: https://github.com/jwodder/derange
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.
Package information
- Ports path
- devel/py-derange
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, lang/python
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.