Library to play with filtering numeric sequences by sums of their pairs, triplets, etc. With a bonus CLI demo

A library to play with filtering numeric sequences by sums of their pairs, triplets, etc.

Comes with a bonus CLI to demo the functionality.

Requires (and CI tests on) python 3.8 to 3.10.
If you need to use python 3.7 then try replacing
math.prod(some_iterable) with functools.reduce(lambda x, y: x * y, some_iterable)

Approach

We’re thinking of this mostly as a library with the CLI as only for demo purposes.
Ways you can see this in the code:

  • logging should really handled by the consumer,
    • our get_logger should be something that is passed into the lib
  • the CLI is pretty light on automated tests
  • we use pretty loose production dependency pinning