Skip to main content

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

Project description

CGS API

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

Installing

$ git clone "https://github.com/Msa360/cgs-csfoy-gym.git"
$ cd API_salle
$ pip3 install -r requirements.txt 

you will need to set username & password

cgs --set-matricule your_matricule
cgs --set-password your_password

Create a file called "configfile.py" and modify your credentials:

# configfile.py

gym_scheduleId = "64"  # sportID (64 for gym)
userID =  "11633"      # userID
username = 2512534     # matricule
password = "password"  # password

# if no proxy needed
proxies = {}  

# if using proxies
proxies = {
    # example proxies
    "https": "46.145.102.101:3428",
    "http": "46.145.102.101:3428"
}

Usage

import cgs
# login and create a reservation
cgs.login_create()

command line usage

python3 -m /your/path/cgs -h

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgs-0.1.1.tar.gz
  • Upload date:
  • Size: 7.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.1.tar.gz
Algorithm Hash digest
SHA256 c4eb54f44f7d69a9829dcb6ad657022a5c0c2307cc8d21478190388d2f2e1178
MD5 99601ca9e89d7e2a9c45bd1b7f2ba284
BLAKE2b-256 4f3c9a990d9071fcef94b0df587e27abcff241b3ce6eafa5b42e3011e3f7746c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd086766d6513234f63689040d2406c19d8135b9eb125f435d877fb619c42354
MD5 7ba191cbe21e903ebd637edfef201087
BLAKE2b-256 6359fabde4917dc8af5c6d5a2987f4632dd92bc793cf9ff3b12abeba7cd16d5d

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