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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgs-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 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.2.tar.gz
Algorithm Hash digest
SHA256 372550d14d478bf1002beebd6cbed731fb2c7648bd3c432e0f5509a31e6dd9d8
MD5 cbd9833789dba5f2d3ef7e676075704d
BLAKE2b-256 934567657cec41c6c6c2461267b1cd09a8fa43ae78890e8ca3472069e107d72b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgs-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b046508765b48935c222a78cf778692d41596c47b7125c8802606bea9288c0a9
MD5 181adbe096b9c2851d9e5c67a394efdd
BLAKE2b-256 03e42e6b95a146e9601c43aff13f18cecd440a62cf93d9f837e7adda4a566397

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