An Unofficial Python wrapper for The Gym Group's API.
Project description
thegymgroup-python
Python SDK for The Gym Group mobile API (unofficial).
This project is not affiliated with The Gym Group.
Requirements
- Python >= 3.13
requests
Install
From PyPI:
pip install thegymgroup-python
Login
from thegymgroup import Client
client = Client.login("you@example.com", "1234")
Example: Gym occupancy (with percentage, capacity, and historical loop)
from thegymgroup import Client, Locations
client = Client.login("you@example.com", "1234")
occupancy = client.get_gym_occupancy(Locations.SHEFFIELD_KELHAM_ISLAND)
print(f"Gym: {occupancy.gym_location_name}")
print(f"Status: {occupancy.status}")
print(f"Current: {occupancy.current_percentage}% ({occupancy.current_capacity} people)")
for point in occupancy.historical:
print(f"{point.hour}: {point.percentage}%")
Example: Get latest check-in
from thegymgroup import Client
client = Client.login("you@example.com", "1234")
latest = client.get_latest_check_in()
print(latest)
Example: Get hours in gym over a date range
from datetime import date
from thegymgroup import Client
client = Client.login("you@example.com", "1234")
hours = client.get_hours_in_gym(
start=date(2026, 3, 1),
end=date(2026, 3, 11),
)
print(f"Hours in gym: {hours}")
Example: Get classes for a location and time window
from datetime import datetime
from thegymgroup import Client, Locations
client = Client.login("you@example.com", "1234")
classes = client.get_classes(
location=Locations.SHEFFIELD_KELHAM_ISLAND,
start=datetime(2026, 3, 11, 0, 0),
end=datetime(2026, 3, 11, 23, 59),
)
print(f"Found {len(classes.get('classes', []))} classes")
Notes
- This SDK targets mobile API endpoints and may break if upstream APIs change.
- Use at your own risk.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thegymgroup_python-0.1.2.tar.gz
(15.3 kB
view details)
File details
Details for the file thegymgroup_python-0.1.2.tar.gz.
File metadata
- Download URL: thegymgroup_python-0.1.2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef6451c79b40a7b4c43c14d36e8d5b4faa3f02939b301f1e04c62272f21c19e
|
|
| MD5 |
1731dea4dbbfaee3a0b4aad469c28b8e
|
|
| BLAKE2b-256 |
810846f65d1c761839a98cec994141e6c05af75025c3f5e88b6f66df1e6f0075
|