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
Metadata
Release files for nuudel-best-time-finder 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nuudel_best_time_finder-0.2.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nuudel_best_time_finder-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / nuudel_best_time_finder-0.2.0.tar.gz
| Download URL | nuudel_best_time_finder-0.2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7cadc5af1819ca1a10bc7ab4dd86310b8820bf8b34d88fe77121114a24d1edb
|
|
BLAKE2b-256 checksum How to use checksums |
3950e7768f8c81533415cfe7def19b9878ceb01cbc8d29032b6869911813b7bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.6 Linux/5.14.0-1048-oem
|
Release files / nuudel_best_time_finder-0.2.0-py3-none-any.whl
| Download URL | nuudel_best_time_finder-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3f3f80cf9e8399bb0748cf1e5ddaa0e59b4791be5b76b034729bc3d71fc2c58
|
|
BLAKE2b-256 checksum How to use checksums |
c5cbe7ed79cf14f6f2ed3f1a86e11a62ce424f5f034eca007afa9955d7c8ea2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.6 Linux/5.14.0-1048-oem
|