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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgs-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 3398a0e4da36f8c9bd662450218bea14fddd951816f17f07bac558044fa1c1da
MD5 56bd88616373927012e6ebf9666ef862
BLAKE2b-256 4af94a336f937ad03329f85fb628f5a6edf72ce90fad62289a9f8401e09c7df2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgs-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ac257fe9aaa6aea5de3c1dee3d745ae564ce89c7d4f2f5c56cd502beab89aedd
MD5 2a056642a16ae25aa7e76bdcedfcce07
BLAKE2b-256 54e25e84fb9347d8c5b844dfab2b6acaa49a7adb92b0c1cdc378df2af15a680f

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