FitRequestBase#
- class fitrequest.client_base.FitRequestBase(username: str | None = None, password: str | None = None)[source]#
Bases:
objectThe
FitRequestBaseclass serves as the common ancestor for all classes that implement fitrequest methods. This class does not generate any methods on its own; instead, it provides a shared structure and declares attributes and methods that are not automatically generated.- property auth: dict | None#
Authentication object used by generated methods.
- property base_url: str | None#
Default base URL for the generated method.
- classmethod cli_app() Typer[source]#
Set up a CLI interface using Typer. Instantiates the fitrequest client, registers all its methods as commands, and returns the typer the application.
- property client_name: str#
Name of the client.
- property version: str#
Version of the client. If not provided FitRequest tries to retrieve the version from the python package.