Python SDK for Premier Padel public sports data APIs.
Project description
Premier Padel Python SDK
Typed Python SDK for Premier Padel public sports-data APIs.
Installation
pip install premier-padel
For local development:
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Quickstart
from premier_padel import Gender, PremierPadelClient, ResultsDrawType
with PremierPadelClient() as client:
players = client.players.list(Gender.MALE)
top_player = players[0]
profile = client.players.get(top_player.slug)
tournaments = client.tournaments.list("March", 2026)
results = client.tournaments.results("gijon-p2-2", "2026-03-07", ResultsDrawType.WOMEN)
live_matches = client.matches.live("gijon-p2-2")
Common Workflows
List and search players:
from premier_padel import Gender, PremierPadelClient
with PremierPadelClient() as client:
rankings = client.players.list(Gender.FEMALE)
matches = client.players.search("tapia")
Paginate through video results:
with PremierPadelClient() as client:
first_page = client.media.videos()
for item in first_page.iter_all():
print(item.title)
Handle errors:
from premier_padel import NotFoundError, PremierPadelClient
with PremierPadelClient() as client:
try:
player = client.players.get("missing-player")
except NotFoundError:
print("Player not found")
Package Layout
src/premier_padel/client.py: public client entrypointsrc/premier_padel/services/: resource-oriented service layersrc/premier_padel/models/: typed dataclasses for API resourcessrc/premier_padel/parsers/: defensive response normalizationsrc/premier_padel/transport.py: shared HTTP execution and envelope parsing
Contributor Notes
Run checks locally with:
./.venv/bin/python -m pytest
./.venv/bin/python -m mypy src
./.venv/bin/python -m ruff check src tests
Optional live smoke tests are available behind PREMIER_PADEL_LIVE_TESTS=1.
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 premier_padel-0.1.0.tar.gz.
File metadata
- Download URL: premier_padel-0.1.0.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5790957c8ee71423e2872315c13119f5cbe5d1f0dd8b0e1a50393dd45d7fe418
|
|
| MD5 |
e15bfff41ee41627f6aef4e6e25eb10d
|
|
| BLAKE2b-256 |
cfe89df4904e66b5467730b1b1855157f8dd0985f9f4eb8e73d153a33d19396f
|
File details
Details for the file premier_padel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: premier_padel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17bb1b985a7cbdae4c589341eaedf8cfa4418a9863918d0644d2a0259249ab76
|
|
| MD5 |
2a54829583e4a8954d1fa34115a9b4e0
|
|
| BLAKE2b-256 |
fd42bbd463b2390a8c41558e36abd5bc8b1b2ead3a830d9445dd1e98611abc70
|