No project description provided
Project description
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tum-exam-scripts-0.1.7.tar.gz.
File metadata
- Download URL: tum-exam-scripts-0.1.7.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f974f0bf160b0ace5d3d094939e19014ee137df810dcba66a0894b5029eeff17
|
|
| MD5 |
0bc200c05dadbb1e00dc038f69fb983b
|
|
| BLAKE2b-256 |
a28170e17c0c54405bf6074dc20f9be9bcba778fefc1d965151fa7d1db741bdb
|
File details
Details for the file tum_exam_scripts-0.1.7-py3-none-any.whl.
File metadata
- Download URL: tum_exam_scripts-0.1.7-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b57b12954bbbc75fabdf730e9e493c01c12ed677420ffe49a25bfabe7c1ad5
|
|
| MD5 |
07a692c4c11c6c5c735d959bf44abb1d
|
|
| BLAKE2b-256 |
95e953c42e2d153c92c6fdc98a9f9f64cae59c8da36eece50a6f8cef74f6d24b
|