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.
Metadata
Release files for premier-padel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| premier_padel-0.1.0.tar.gz | 40.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| premier_padel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.1 kB
Release files / premier_padel-0.1.0.tar.gz
| Download URL | premier_padel-0.1.0.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5790957c8ee71423e2872315c13119f5cbe5d1f0dd8b0e1a50393dd45d7fe418
|
|
BLAKE2b-256 checksum How to use checksums |
cfe89df4904e66b5467730b1b1855157f8dd0985f9f4eb8e73d153a33d19396f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / premier_padel-0.1.0-py3-none-any.whl
| Download URL | premier_padel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17bb1b985a7cbdae4c589341eaedf8cfa4418a9863918d0644d2a0259249ab76
|
|
BLAKE2b-256 checksum How to use checksums |
fd42bbd463b2390a8c41558e36abd5bc8b1b2ead3a830d9445dd1e98611abc70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|