Skip to main content

Official Python SDK for SportsDatabase.io

Project description

SportsDatabase Python SDK

Official Python client for SportsDatabase.io. Mirrors the TypeScript SDK design with typed endpoints for leagues, teams, events, schedules, and scores.

Installation

pip install sportsdatabase

Quick Start

from sportsdatabase import SportsDatabaseClient

client = SportsDatabaseClient(
    api_key="YOUR_API_KEY",
    base_url="https://api.sportsdatabase.io/v1"
)

games = client.events.get_by_date(sport="soccer", date="2025-05-01")
for event in games["data"]:
    print(event["homeTeamId"], "vs", event["awayTeamId"])

Structure

python-sdk/
├── sportsdatabase/
│   ├── client.py
│   ├── config.py
│   ├── errors.py
│   ├── http.py
│   ├── endpoints/
│   │   ├── events.py
│   │   ├── leagues.py
│   │   ├── teams.py
│   │   ├── schedules.py
│   │   └── scores.py
│   ├── types.py
│   └── errors.py
├── examples/
│   ├── get_today_events.py
│   └── smoke_test.py
└── pyproject.toml

Development

pip install -e .[dev]
pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sportsdatabase-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sportsdatabase-0.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file sportsdatabase-0.0.1.tar.gz.

File metadata

  • Download URL: sportsdatabase-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sportsdatabase-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6da26fbe18422da3785b6d456e4d06838c38412d8eefb048daeb7d27f427a36e
MD5 56cf0ddc2e61cec3210d727972d0faca
BLAKE2b-256 2f753a1047059ccda305329154363c27196fd8813e89c08ce112288920d0383c

See more details on using hashes here.

File details

Details for the file sportsdatabase-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sportsdatabase-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sportsdatabase-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06453102123255664111470d08b980ed991ce0c9b11a18e1a4869feb2a78579c
MD5 20f1139fd7fb03923f9f4384413eb87c
BLAKE2b-256 fe9d96b6ecd50134e7c66c746270fe83f57e7ae09e639636165b0dd9fd87b41a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page