Skip to main content

Python OrangeTheory Fitness API Client

Project description

Simple API client for interacting with the OrangeTheory Fitness APIs.

Review the documentation.

This library allows access to the OrangeTheory API to retrieve workouts and performance data, class schedules, studio information, and bookings.

Installation

pip install otf-api

Overview

To use the API, you need to create an instance of the Otf class. This will authenticate you with the API and allow you to make requests. When the Otf object is created it automatically grabs your member details and home studio, to simplify the process of making requests.

You can either pass an OtfUser object to the OtfClass or you can pass nothing and allow it to prompt you for your username and password.

You can also export environment variables OTF_EMAIL and OTF_PASSWORD to get these from the environment.

from otf_api import Otf, OtfUser

otf = Otf()

# OR

otf = Otf(user=OtfUser(<email_address>,<password>))

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

otf_api-0.15.4.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otf_api-0.15.4-py3-none-any.whl (72.6 kB view details)

Uploaded Python 3

File details

Details for the file otf_api-0.15.4.tar.gz.

File metadata

  • Download URL: otf_api-0.15.4.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for otf_api-0.15.4.tar.gz
Algorithm Hash digest
SHA256 760a2ce1496c80ace473c812faa2a461a35f0af38aff6b22699f9e2351894b66
MD5 74b3f7e9387df448cbaeb58056c0c7d6
BLAKE2b-256 ae227e080721360d53f564236d442a70241e85581a32e337d1a2229c7b12742a

See more details on using hashes here.

Provenance

The following attestation bundles were made for otf_api-0.15.4.tar.gz:

Publisher: python_package.yml on NodeJSmith/otf-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file otf_api-0.15.4-py3-none-any.whl.

File metadata

  • Download URL: otf_api-0.15.4-py3-none-any.whl
  • Upload date:
  • Size: 72.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for otf_api-0.15.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e7ceeba419df1eda0c1ece3dc45b1b001dc13fc9d1ecdbbc824ef2980590d20
MD5 04f006c6e745857d522625606e335533
BLAKE2b-256 3372a1f569dae3d42d883a5783acc4754bc0f316b244d96ae7ad1d0cb450e4da

See more details on using hashes here.

Provenance

The following attestation bundles were made for otf_api-0.15.4-py3-none-any.whl:

Publisher: python_package.yml on NodeJSmith/otf-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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