Skip to main content

An API for the TurboSelf web app

Project description

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')

demo

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turboself-1.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

turboself-1.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page