A python client to query the PureGym mobile API for live gym attendance
Project description
puregym-attendance
puregym-attendance is a Python client to query the PureGym Mobile API for live gym attendance statistics.
Installation
pip install puregym_attendance
Usage
from puregym_attendance import PuregymAPIClient
client = PuregymAPIClient(
email="example@email.com",
pin=123456
)
print(client.get_gym_attendance())
python3 -m puregym_attendance [email] [pin]
Optional Arguments
--gym [gym name OR gym ID] (defaults to puregym home gym)
Development Dependencies
Poetry - pip install poetry
-
poetry installwill install the necessary packages into a venv from there. -
poetry shellwill enter into that venv for development. -
poetry add [package]will add a package to the venv and associated lockfile. -
poetry run python puregym.py [email] [pin](per the Usage section) will run the script inside the venv without leaving your local environment.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
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 puregym_attendance-2.0.tar.gz.
File metadata
- Download URL: puregym_attendance-2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.2 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860310b6d12ce8fb8cf279f730708023692137cfaf29877a2e68f9afe0bf8990
|
|
| MD5 |
30b2f0f9efdfbbfce5c30966ebbebe88
|
|
| BLAKE2b-256 |
b573b4281072564232d053a602ce25a291792c79b816efec9948cd2da6548891
|
File details
Details for the file puregym_attendance-2.0-py3-none-any.whl.
File metadata
- Download URL: puregym_attendance-2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.2 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d272181a538140f43e76e9876f9a5c3c5ee54a50a0d61941ee24e99e8feff938
|
|
| MD5 |
341e0bd68288b2908fdd8acdea749f29
|
|
| BLAKE2b-256 |
0bf6f8f6cfbb238a47cfa955202775a6019d9e15ed7c0446924f321786f738c3
|