Skip to main content

Create & update reservations at Cégep Sainte-Foy gym with this simple api.

Project description

CGS API

Downloads PyPI

Command line tool in python to place & update reservations at Cégep Sainte-Foy gym.

Installing

pip install cgs

Usage

import cgs

# login and create a reservation
cgs.login_create()

Command line usage

In order to get started you will need to first set matricule & password and run --get-uid to fetch uid (make sure that your matricule & password are correct else you will not be able to get your uid).

cgs config --mat your_matricule
cgs config --pwd your_password
cgs config --get-uid

verify credentials with: cgs config --show

list options with: cgs --help

ex: create reservation at 12 (time is 0-24)

cgs create -t 12

list possible flags with: cgs create --help

Contributing

Feel free to contribute! Right now the next step is to make a function that automatically fetches the userID, since most people don't know it. It is possible to fetch it only with matricule & password. DM me on twitter @msa720360 if you have any questions.

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

cgs-0.1.5.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

cgs-0.1.5-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file cgs-0.1.5.tar.gz.

File metadata

  • Download URL: cgs-0.1.5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for cgs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 416768879c4629c89664c9404b163d98a6dda6a1b5a8798eaf49285764491f4f
MD5 93d0a9ab0fd476a8874b35081e78cdc5
BLAKE2b-256 2729c7aff17a64ab25b3a31487fbf0f1bbd0d8dc14ab6f51ec612122e0b53b8e

See more details on using hashes here.

File details

Details for the file cgs-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: cgs-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for cgs-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d9609b0ad0e1a86f703431a3f03fe020dbd548c2bd6e15814f7f29da8eec42d4
MD5 3ad46c4e9ea5dd005ad762bbd55e7fde
BLAKE2b-256 6ad60242003a0cccf5432c909abc5160cd58e6bf161a5a44bb19834d07a6f168

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