Metadata-Version: 2.1
Name: turboself
Version: 1.0
Summary: An API for the TurboSelf web app
Home-page: https://github.com/Egsagon/turboself-api
Author: Egsagon
Author-email: egsagon12@gmail.com
License: MIT
Platform: unix
Platform: linux
Platform: win32
Platform: cygwin
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE

# turboself-api
API for the TurboSelf web application.

Is able to fetch user reservations, remaining credits and account data.


## Installation

- Use at least python `3.11`
- Install using pip: `pip install git+https://github.com/Egsagon/turboself-api.git`
- Or clone this repository and use the module locally.

## Usage

There is an example usage in the `main.py` file which show how to print resservations per week:
```py
import turboself

client = turboself.Client('username', 'password')

for week in client.get_reservations():
    print(f'WEEK {week.date.month}/{week.date.year}')
    
    for day in week.days:
        do_eat = '92myes' if day.eat else '91mno'
        if not day.can_eat: do_eat = '30mno'
        
        print(f'\t* {day.date.date()}: \033[{do_eat}\033[0m')
```

![demo](https://github.com/Egsagon/turboself-api/blob/master/demo.png)
