Optimal Congress
Command Line Interface to find an optimal, personal schedule for the 37c3 congress.
Optimization logic
The optimization relies on a simple 2-fold logic:
- Find a personal schedule that maximizes the sum of 'rating scores' assigned to scheduled events.
- The schedule must be feasible, i.e. the times of scheduled events must not overlap.
Installation
pip install optimal-congress
Available commands
optimal-congress provides the following commands:
$ optimal-congress -h
Usage: optimal-congress [OPTIONS] COMMAND [ARGS]...
Optimize your personal schedule for the 37c3.
╭─ Options ────────────────────────────────────────────────────────────────────────────╮
│ --verbose -v Include debug messages in output. │
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────╮
│ dump Export all latest ratings to CSV, for bulk editing. │
│ fetch Fetch events and rooms from API, and update local cache. │
│ load Bulk import ratings from CSV. │
│ next List next upcoming events, filtered by minimum rating. │
│ optimize Optimize the schedule based on ratings. │
│ rate Interactively rate those events that have not been rated yet. │
│ ratings List all latest ratings. │
╰──────────────────────────────────────────────────────────────────────────────────────╯
Example Workflow
- Fetch events and rooms from congress API:
$ optimal-congress fetch
Fetching events and rooms from API...
Fetched 49 events and 58 rooms from API.
Comparing API with cache...
Found 0 new events, and 0 removed events.
Updating cache...
Done.
- Interactively rate events, if not already rated:
$ optimal-congress rate
Unrated event (1/65):
2023-12-28 20:15 - 20:55
Lützerath Lebt! Einblicke in den Widerstand
You can't evict a movement! Der Energiekonzern RWE wird noch Jahre brauchen, die Kohle unter Lützi abzubaggern: Der Kampf gegen die Kohle und für Klimagerechtigkeit geht weiter!
https://events.ccc.de/congress/2023/hub/en/event/lutzerath_lebt_einblicke_in_den_widerstand
Rate from 0 to 10 (Enter to exit):
- Review you current ratings:
$ optimal-congress ratings
loading events and ratings from cache...
Latest ratings:
- Rating: 8.0 - Amateurfunk als Hilfe in Not- und Katastrophenfäll..https://events.ccc.de/congress/2023/hub/en/event/amateurfunk-als-hilfe-in-not-und-katastrophenfalle
- Rating: 8.0 - InfraNodus: Reveal Non-Obvious and Find the Gaps w..https://events.ccc.de/congress/2023/hub/en/event/infranodus-reveal-non-obvious-and-find-the-gaps-wi
- Optimize your personal schedule:
$ optimal-congress optimize
loading events, ratings, and rooms from cache...
Scheduled events:
- Wed 27 10:30-11:00 Saal 1..........37C3: Feierliche Eröffnung................https://events.ccc.de/congress/2023/hub/en/event/37c3_feierliche_eroffnung
- Wed 27 11:00-11:40 Saal Granville..The Trouble with Green Electricity Certi..https://events.ccc.de/congress/2023/hub/en/event/the_trouble_with_green_electricity_certificates
...
Testing
Software testing uses pytest, relying upon poetry and tox.
To run all tests, across multiple python versions:
poetry run tox
Roadmap
- test export of schedule to iOS app via QR code
Metadata
Release files for optimal-congress 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| optimal_congress-0.7.1.tar.gz | 10.7 kB | Without provenance | Details for optimal_congress-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| optimal_congress-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for optimal_congress-0.7.1-py3-none-any.whl |
Total release size: 22.8 kB
Release files / optimal_congress-0.7.1.tar.gz
| Download URL | optimal_congress-0.7.1.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8626bf870d4b17bc9f36c98a2aaaab3e5a4f5b746c591d5da84f67e9b3dd164a
|
|
BLAKE2b-256 checksum How to use checksums |
85968b60a5e35fd60068c02b4fd4c78c6c5520cf91189cb2664afabe9a34b199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.6.6-76060606-generic
|
Release files / optimal_congress-0.7.1-py3-none-any.whl
| Download URL | optimal_congress-0.7.1-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5eaead60c263e0484a61ef30bce19e79f05796c122af47c002a248322ec89708
|
|
BLAKE2b-256 checksum How to use checksums |
df9df9109238c2d6bc597794e3478a17852788649620144f93a2d60e1548d298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.6.6-76060606-generic
|
Security for optimal-congress 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.