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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgs-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 8486ae2fa0e055b21907155fc5d3138eee770baff1ae6bd34c08c766c218529d
MD5 7026fb91499fd423599ef2da3da1324d
BLAKE2b-256 a0f9ad454c08f7302bc91ae5b1a65b2ee0e69c3a7838b91bb699c6942abded55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgs-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1d583101baada60dd27d7dd5bd2ab570e25f82561c1804ada6330216fbac27e8
MD5 170ad13934f1919e72409a5ad57f16b8
BLAKE2b-256 6bbc446210fc55b07ca648a799dec5bbbd92532c2eb68953add47eb801910d89

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