22 lines
729 B
Python
22 lines
729 B
Python
|
|
try:
|
|
import garminconnect
|
|
print(f"garminconnect version: {getattr(garminconnect, '__version__', 'unknown')}")
|
|
from garminconnect import Garmin
|
|
|
|
print("\n--- Garmin Class Attributes ---")
|
|
for attr in dir(Garmin):
|
|
if not attr.startswith("__"):
|
|
print(attr)
|
|
|
|
if hasattr(Garmin, 'ActivityDownloadFormat'):
|
|
print("\n--- Garmin.ActivityDownloadFormat Attributes ---")
|
|
for attr in dir(Garmin.ActivityDownloadFormat):
|
|
if not attr.startswith("__"):
|
|
print(f"{attr}: {getattr(Garmin.ActivityDownloadFormat, attr)}")
|
|
else:
|
|
print("\nGarmin.ActivityDownloadFormat not found.")
|
|
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|