TUMExam Scripts
TL;DR
pip3 install tum-exam-scripts --upgrade
tum-exam-scripts install-linux-driver
tum-exam-scripts store-password-in-password-manager your-informatics-username
tum-exam-scripts open-printing-page your-informatics-username
tum-exam-scripts pdf send-all-booklets --batch-size 50 /path/to/exams
tum-exam-scripts pdf send-attendee-list /path/to/attendeelist.pdf
tum-exam-scripts pdf send-room-layout /path/to/roomplan.pdf
tum-exam-scripts pdf send-seat-plan /path/to/seatplan-a3.pdf
Commands
$ tum-exam-scripts --help
Usage: tum-exam-scripts [OPTIONS] COMMAND [ARGS]...
A collection of useful commands to print TUMExams. You can find the source code under https://gitlab.lrz.de/i4/software/tum-exam-scripts
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version Version │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ install-linux-driver This snippet downloads the Linux driver for the printers and makes them available under $driver_name This is needed as the macOS driver cannot handle the booklets. Please change the command on mac │
│ for printing the exams from `-dfollowme` to `-dfollowmepdd`!!! │
│ open-printing-page Open the page we need to send the PDFs to the FollowMe printer. │
│ pdf Subgroup with the PDF printing commands. │
│ store-password-in-password-manager Stores the password in the password manager. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Install Linux Driver
$ tum-exam-scripts install-linux-driver --help
Usage: tum-exam-scripts install-linux-driver [OPTIONS]
This snippet downloads the Linux driver for the printers and makes them available under $driver_name This is needed as the macOS driver cannot handle the booklets. Please change the command on mac for printing the exams from
`-dfollowme` to `-dfollowmepdd`!!!
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --driver-name -d TEXT Name of the driver [default: followmeppd] │
│ --password -p TEXT Your user password. NOTE: The user should have 'sudo' privileges. [default: None] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Install Linux Driver: Example
tum-exam-scripts install-linux-driver
Store Password in Password Manager
We need the informatics username and the corresponding password to login into the printing page. Thus, we store it in the system's password manager.
$ tum-exam-scripts store-password-in-password-manager --help
Usage: tum-exam-scripts store-password-in-password-manager
[OPTIONS] [USER_NAME]
Stores the password in the password manager.
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ user_name [USER_NAME] The username for your informatics account, i.e., the first letters of your lastname. [default: None] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --password -p TEXT The password for your informatics account [default: None] │
│ --force -f If true, we will overwrite existing passwords. │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Store Password in Password Manager: Example
tum-exam-scripts store-password-in-password-manager stoecklp
Open the Printing Page
To print the documents via Wi-Fi with the FollowMe service, we need to open the informatics printing page. This website has to stay open the whole time you are sending exam sheets to the printers.
$ tum-exam-scripts open-printing-page --help
Usage: tum-exam-scripts open-printing-page [OPTIONS] [USER_NAME]
Open the page we need to send the PDFs to the FollowMe printer.
╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ user_name [USER_NAME] The username for your informatics account, i.e., the first letters of your lastname. [default: None] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --browser -b [chrome|firefox] The browser to start. [default: firefox] │
│ --password -p TEXT The password for your informatics account. If you do not pass a password, we will use the password stored in │
│ the password manager. │
│ [default: None] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Open the Printing Page: Example
tum-exam-scripts open-printing-page stoecklp
PDF Commands
I grouped all the PDF sending commands into a subgroup called pdf.
Usage: tum-exam-scripts pdf [OPTIONS] COMMAND [ARGS]...
Subgroup with the PDF printing commands.
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send-all-booklets Send all booklets to the printing server. │
│ send-attendee-list Send the attendee list to the server. │
│ send-room-layout Print the room plans in A3. You have to put them at the doors of the lecture hall. │
│ send-seat-plan Print the seat plans in A3. You have to put them at the doors of the lecture hall. │
│ send-specific-booklets Send only specific PDFs to the server. You can pass multiple files. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Send All Booklets
$ tum-exam-scripts pdf send-all-booklets --help
Usage: tum-exam-scripts pdf send-all-booklets [OPTIONS] [INPUT_DIRECTORY]
Send all booklets to the printing server.
Example: tum-exam-scripts send-all-booklets /path/to/exams/
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ input_directory [INPUT_DIRECTORY] The directory with the exams from the TUMExam website. [default: .] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --driver-name -d TEXT Name of the driver [default: followmeppd] │
│ --batch-size -b INTEGER If you add a batch size, the process will stop after so many exams and wait for you to continue.You can you this so start all jobs on a printer, then send the next batch, and start these exams on │
│ another printer. │
│ [default: None] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Send All Booklets: Example
tum-exam-scripts pdf send-all-booklets .
Send Specific Booklets
$ tum-exam-scripts pdf send-specific-booklets --help
Usage: tum-exam-scripts pdf send-specific-booklets [OPTIONS] [PDF_FILE]...
Send only specific PDFs to the server. You can pass multiple files.
Example: tum-exam-scripts send-specific-booklets /path/to/E0007-book.pdf /path/to/E0009-book.pdf
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ pdf_file [PDF_FILE]... The directory with the exams from the TUMExam website. [default: None] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --driver-name -d TEXT Name of the driver [default: followmeppd] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Send Specific Booklets: Example
tum-exam-scripts pdf send-specific-booklets /path/to/E0007-book.pdf /path/to/E0009-book.pdf
Send Attendee List
$ tum-exam-scripts pdf send-attendee-list --help
Usage: tum-exam-scripts pdf send-attendee-list [OPTIONS] [ATTEND_LIST]
Send the attendee list to the server.
Example: tum-exam-scripts send-attendee-list /path/to/attendeelist.pdf
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ attend_list [ATTEND_LIST] The attendee list from the TUMExam endterm_lists folder. [default: attendeelist.pdf] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --driver-name -d TEXT Name of the driver [default: followmeppd] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Send Attendee List: Example
tum-exam-scripts send-attendee-list /path/to/attendeelist.pdf
Send Room Layout
$ tum-exam-scripts pdf send-room-layout --help
Usage: tum-exam-scripts pdf send-room-layout [OPTIONS] [ROOM_PLAN]
Print the room plans in A3. You have to put them at the doors of the lecture hall.
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ room_plan [ROOM_PLAN] The room plan in A3 from the TUMExam endterm_lists folder. [default: roomplan.pdf] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --driver-name -d TEXT Name of the driver [default: followmeppd] │
│ --number-of-copies -n INTEGER The number of copies you want to print. [default: 3] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Send Room Layout: Example
tum-exam-scripts pdf send-room-layout /path/to/roomplan.pdf
Send Seat Plan
$ tum-exam-scripts pdf send-seat-plan --help
Usage: tum-exam-scripts pdf send-seat-plan [OPTIONS] [SEAT_PLAN]
Print the seat plans in A3. You have to put them at the doors of the lecture hall.
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ seat_plan [SEAT_PLAN] The seat plan in A3 from the TUMExam endterm_lists folder. [default: seatplan-a3.pdf] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --driver-name -d TEXT Name of the driver [default: followmeppd] │
│ --number-of-copies -n INTEGER The number of copies you want to print. [default: 3] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Send Seat Plan: Example
tum-exam-scripts pdf send-seat-plan /path/to/seatplan-a3.pdf
Contact
If you have any question, please contact Patrick Stöckle.
Metadata
Release files for tum-exam-scripts 0.1.7
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 |
|---|---|---|---|---|
| tum-exam-scripts-0.1.7.tar.gz | 17.7 kB | Without provenance | Details for tum-exam-scripts-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tum_exam_scripts-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for tum_exam_scripts-0.1.7-py3-none-any.whl |
Total release size: 34.2 kB
Release files / tum-exam-scripts-0.1.7.tar.gz
| Download URL | tum-exam-scripts-0.1.7.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f974f0bf160b0ace5d3d094939e19014ee137df810dcba66a0894b5029eeff17
|
|
BLAKE2b-256 checksum How to use checksums |
a28170e17c0c54405bf6074dc20f9be9bcba778fefc1d965151fa7d1db741bdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / tum_exam_scripts-0.1.7-py3-none-any.whl
| Download URL | tum_exam_scripts-0.1.7-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22b57b12954bbbc75fabdf730e9e493c01c12ed677420ffe49a25bfabe7c1ad5
|
|
BLAKE2b-256 checksum How to use checksums |
95e953c42e2d153c92c6fdc98a9f9f64cae59c8da36eece50a6f8cef74f6d24b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for tum-exam-scripts 0.1.7
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.