Skip to main content

No project description provided

Project description

Nuudel best time finder

In a poll like this:

2023-06-05 2023-06-07 2023-06-08 2023-06-12 ...
Alice Yes No No Yes ...
Bob No No No Yes ...
Carl Yes Yes No No ...
Dave Yes No No Yes ...
Eve No No No Yes ...
Francis No No No No ...
... ... ... ... ... ...

a common task is to find the set of two or more days that cover as many people as possible.

This tool works with the poll service nuudel (https://nuudel.digitalcourage.de/), reads the data directly from a given poll and finds the best combinations for any number of times.

Install

Install using pip:

pip install nuudel-best-time-finder

How to use

Say we have a nuudel poll at: https://nuudel.digitalcourage.de/nuudel-poll-id and want to find two dates that cover the most amount of people simply run the following in your console:

nuudel-find-best-times {nuudel-poll-id} 2 --results-file results.csv

or alternatively as part of a script:

from nuudel_best_time_finder import find_best_times

find_best_times(poll = "{nuudel-poll-id}", n = 2, results_file = "results.csv")

The results are then written to a file called results.csv with three columns:

  • Time combinations
  • Number of people covered by the combination
  • Percent coverage out of all participants

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nuudel_best_time_finder-0.2.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

nuudel_best_time_finder-0.2.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page