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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nuudel_best_time_finder-0.2.0.tar.gz
.
File metadata
- Download URL: nuudel_best_time_finder-0.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.14.0-1048-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7cadc5af1819ca1a10bc7ab4dd86310b8820bf8b34d88fe77121114a24d1edb |
|
MD5 | f33be3cbb58e36a2fa2cd2501ce70191 |
|
BLAKE2b-256 | 3950e7768f8c81533415cfe7def19b9878ceb01cbc8d29032b6869911813b7bd |
File details
Details for the file nuudel_best_time_finder-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nuudel_best_time_finder-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.14.0-1048-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f3f80cf9e8399bb0748cf1e5ddaa0e59b4791be5b76b034729bc3d71fc2c58 |
|
MD5 | 895ff6dc417fb6465056176de945142b |
|
BLAKE2b-256 | c5cbe7ed79cf14f6f2ed3f1a86e11a62ce424f5f034eca007afa9955d7c8ea2a |