Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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:
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')
Metadata
Release files for turboself 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| turboself-1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| turboself-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / turboself-1.0.tar.gz
| Download URL | turboself-1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dafb8d8315f420ad5ca4eb0de764d82aba0d1fd19ef3ad2c5968dfd134bbcfa8
|
|
BLAKE2b-256 checksum How to use checksums |
7301f91cc7120635eedfd6678b0e026246ad524f687cf8db0a3ccd0ea7ba945a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / turboself-1.0-py3-none-any.whl
| Download URL | turboself-1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52287160b47598090843be4e49b0b802ef2f9e0bc750edb1f181cd2b723af1c3
|
|
BLAKE2b-256 checksum How to use checksums |
dd25c2c7b24437bedce01fe06637440926182c3d2497c1b7943df8ee007af672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|