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.0.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.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unimi_library_cli-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 280e9d53cb6d389176848f0cdf264ae4baf6ae62712260e0d83930bc41c5ecd9
MD5 16e0ad818f345b27db08802fc91c12be
BLAKE2b-256 39795b2321bfd303007e0a6192520cd1fdc2b1852d37c2e0f97765046ef82328

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unimi_library_cli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d939ca57596792532a0c6c35bf2266f0c7ce40fb7c3839b14d43bb2abdc9c0d5
MD5 4ae0cf8b36434f05010cf9ccaf3b6bed
BLAKE2b-256 2a647c67ff69fed3bee9be4bd50c677e80fcf915a68dbf716a26e1c1a4ed3032

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