Metadata-Version: 2.1
Name: cgs
Version: 0.1.9
Summary: Create & update reservations at Cégep Sainte-Foy gym with this simple api.
Home-page: https://github.com/Msa360/cgs-csfoy-gym
Author: msa360
Author-email: arnaud25@icloud.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: beautifulsoup4 (>=4.10.0)
Requires-Dist: certifi (>=2021.10.8)
Requires-Dist: charset-normalizer (>=2.0.12)
Requires-Dist: idna (>=3.3)
Requires-Dist: requests (>=2.27.1)
Requires-Dist: soupsieve (>=2.3.1)
Requires-Dist: urllib3 (>=1.26.8)

# CGS API 
[![PyPI - Downloads](https://img.shields.io/pypi/dm/cgs?color=blue)](https://pypi.org/project/cgs) [![PyPI](https://img.shields.io/pypi/v/cgs?color=%230eb00e)](https://pypi.org/project/cgs)
### Command line tool in python to place & update reservations at Cégep Sainte-Foy gym.

## Installing
```bash
pip install cgs
```

## Usage
```python
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). 
```bash
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)
```bash
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](https://twitter.com/msa720360) if you have any questions. Don't hesitate to report issues if you see bugs.
