Skip to main content

Simple CLI script to reserve spot at University of Milan (UNIMI) Library

Project description

Unimi-Library-CLI

Simple CLI script to reserve spots at University of Milan (UNIMI) Library

Static Badge

Installation

Install Unimi-Library-CLI with pip

  pip install Unimi-Library-CLI

Install a specific version

  pip install Unimi-Library-CLI==X.X.X

By deafult, pip will install the latest version of dependencies. However, the tested version are listed in requirements.txt and can be installed using

  pip install -r requirements.txt

Example

python -m UnimiLibrary book -date 2024-09-23 -floor ground -start 13:00 -end 21:00

Configuration

Before using the package, you need to configure the values in the config file by running

python -m UnimiLibrary config -name NAME -email EMAIL -password PASSWORD -cf CODICEFISCALE -start HH:MM -end HH:MM -floor [{ground, first}]
Argument Value Info/Format Example
-name NAME Last name + First name, first letter must be uppercase, wrapped in double quotes "Rossi Mario"
- email EMAIL Unimi institutional email nome.cognome@studenti.unimi.it
-password PASSWORD Unimi account password ABCDE123
-cf CODICEFISCALE must be uppercase WRBJDC66C65B642X
-start HH:MM reservation's start time, 24-hour format 13:00
-end HH:MM reservation's start time, 24-hour format 21:00
-floor ground/first target floor ground

Please note that all values must be properly configured for the package to function correctly. This entire setup is required only once, and you can modify individual parameters later if needed.

Usage

For more in-depth usage instructions, please refer to the built-in manual by accessing the help message within the package using

python -m UnimiLibrary [book | list | freespot | quick | config] -h

Roadmap

  • Display active reservations

  • Delete active reservations

Contributing

Contributions are always welcome! For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the terms of the MIT license

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unimi_library_cli-1.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unimi_library_cli-1.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file unimi_library_cli-1.1.1.tar.gz.

File metadata

  • Download URL: unimi_library_cli-1.1.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for unimi_library_cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3e53dd777541c2716bc69b52d4e5cf6cce48cad39ea718d0b89daaacfa75bfea
MD5 0c91edcf713528a2fae6f7146d5c44d2
BLAKE2b-256 a3f82fe10426469da75871f2eb7ccbecefac766a43ed231391404936f919eb89

See more details on using hashes here.

File details

Details for the file unimi_library_cli-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for unimi_library_cli-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30090e665bf5bcc300a4373453e89fa55e669d2f6dae128a0bac79a1ffa43c62
MD5 5f4d9f2dd7e55a06f1497b9b0dbe5351
BLAKE2b-256 9f616999c4246bf5a872eb9612afee32fce96bac3225d6c433ed832bd4b67943

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page