Skip to main content

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

Project description

CGS API

PyPI - 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(username, password, uid, scheduleId, resourceId, day, starthour, endhour)

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 2023-01-12 at 12:00 (time range is 0-24)

cgs create -d 2023-01-12 -t 12

list possible flags with: cgs create --help

Contributing

Feel free to contribute! DM me on twitter @msa720360 if you have any questions. Don't hesitate to report issues if you see bugs.

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.9.tar.gz (9.1 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.9-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cgs-0.1.9.tar.gz
Algorithm Hash digest
SHA256 117ea02d661e1633630c7a0aa2642ef073e719f92e850be60806a0e2e7a52512
MD5 aa11c18e7c0a2665f5022bdbde406e18
BLAKE2b-256 a89d3a0cfddd3f7bf91e82be9a7ee164f3c347e59870eb6cd6974e0d6cee8eed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgs-0.1.9-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.16

File hashes

Hashes for cgs-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 588272c9d5886d5456b4dd19101b119c5f83e84c1eb9ad41bd54d45c1f8dce3d
MD5 6da49e4d7ed0f19b70a7ca0734fba0ed
BLAKE2b-256 72bd22f1c2663d7ccc1a5250febc98d0848869b46069691e97cf826204a7cbd8

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