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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cgs-0.1.2-py3-none-any.whl
(11.0 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
372550d14d478bf1002beebd6cbed731fb2c7648bd3c432e0f5509a31e6dd9d8
|
|
| MD5 |
cbd9833789dba5f2d3ef7e676075704d
|
|
| BLAKE2b-256 |
934567657cec41c6c6c2461267b1cd09a8fa43ae78890e8ca3472069e107d72b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b046508765b48935c222a78cf778692d41596c47b7125c8802606bea9288c0a9
|
|
| MD5 |
181adbe096b9c2851d9e5c67a394efdd
|
|
| BLAKE2b-256 |
03e42e6b95a146e9601c43aff13f18cecd440a62cf93d9f837e7adda4a566397
|