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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgs-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 23539e44a17d9e865b10cbfdc85cfb331936b86283803091113c4175b8697070
MD5 0f9293f8502f84b75b58f8e0ffc3d097
BLAKE2b-256 b03282c4c1d17c8e23cb12b47fdb8a52eb0747d93d0a418a5851737456047d5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgs-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b8a19ac3bc8b013860b829e02accf776128165176970878d5b2ac88c3ff016
MD5 81aadc809f47a97e01a3e27e902f5e72
BLAKE2b-256 3f4c572d8b19d962cc44bc1aa63384334cc9f069d2315eee9f53dfd216928d1c

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