An Unofficial Python wrapper for The Gym Group's API.
Project description
thegymgroup-python
Unofficial Python SDK for The Gym Group mobile API.
This project is not affiliated with The Gym Group.
Requirements
- Python >= 3.13
requests
Install
From source:
pip install .
Editable install for development:
pip install -e .
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.0.tar.gz
(15.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thegymgroup_python-0.1.0.tar.gz.
File metadata
- Download URL: thegymgroup_python-0.1.0.tar.gz
- Upload date:
- Size: 15.2 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 |
c34939f6a920b29deb6914038ba72ab68de1f71fa29acc00dab55385d050cb3e
|
|
| MD5 |
51e1b3368fd3d8ef1185ba52a62e16d3
|
|
| BLAKE2b-256 |
cb1a70ba1dff66f217adc99bc8e58d179fcaeb359200d628615883a791135558
|
File details
Details for the file thegymgroup_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: thegymgroup_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- 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 |
63b50ceb853847a9bf20690886a6ef9bb69e239cbc221b14233fb1c736006999
|
|
| MD5 |
7f149e3bdbf20d40d86c8bd084f0fe96
|
|
| BLAKE2b-256 |
4b8d065287ec93e3f5129f5a3846d78a81705cb7ccac2aa16a3f16a4987b2940
|