Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add sync and loosen aiohttp version #65

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

NodeJSmith
Copy link
Owner

closes #63

  • adds new OtfSync - all the functionality you love without the pain in the ass of async
    • have not yet determine how i'm going to keep the two in sync or if one will be dropped based on popularity
  • finally fix the aiohttp session not closing properly on exception
  • add logging
  • add prompts to examples for email and password if not set in environment variables
  • loosen the aiohttp requirements to accept a lower range, to be compatible with appdaemon

…lenge tracker

refactor(models): update ChallengeTrackerDetail to use Goal class for goals field to improve data structure and clarity
…te_str, time_str, and duration_str for clarity

feat(mixins.py): add deprecation warnings for renamed properties to guide users towards new property names
…8.4 to ensure compatibility with newer versions

chore(pyproject.toml): remove unused pytest-loguru dependency to clean up project dependencies
style(init.py): enhance logging format for better readability and consistency
…eprecation messages to use standard library warnings module
Refactor session closing logic to use atexit for better resource management.
…sure proper session management

feat(api): implement async context manager methods in Otf class to automatically handle session lifecycle
… bookings, studio, and workout functionalities

Add example scripts to demonstrate the usage of the OtfSync API for
various functionalities including challenge tracking, class bookings,
studio information, and workout data. These examples serve as a guide
for users to understand how to interact with the API and retrieve
relevant data.

feat(otf_api): introduce OtfSync class for synchronous API interactions

Add a new OtfSync class to the otf_api module to facilitate
synchronous interactions with the Orangetheory Fitness API. This class
provides methods for booking classes, retrieving member details,
accessing performance summaries, and more. It aims to simplify the
process of making API requests and handling responses in a
synchronous manner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add command line prompts for authentication to sample scripts
1 participant