Skip to main content

Unofficial Python API client wrapper package around TheSportsDB.com API

Project description

Build Status Build status Build status Documentation Status License: GPLV3 Organization Views PRs Welcome GitHub pull-requests Language

TheSportsDB Python SDK

Unofficial Python API client wrapper package around TheSportsDB API. An open, crowd-sourced database of sports artwork and metadata with a free API.

TralahTek TralahM TralahM

Documentation

Documentation

How to Install

# In terminal do:

pip install thesportsdb

Building from Source for Developers

git clone https://github.com/TralahM/thesportsdb.git

cd thesportsdb

python setup.py build

pip install -e .

QuickStart

By default the library will use the free TheSportsDB API. To use the premium version you need to register at TheSportsDB and get an API key.

Then you can set the API key to be used by the library as a shell environment variable using export THESPORTSDB_API_KEY=YOUR_API_KEY before using the library.

import thesportsdb
event_info=thesportsdb.events.eventInfo("1008672")

event_result=thesportsdb.events.eventResult("1008695")

previous_events=thesportsdb.events.lastLeagueEvents("4328")

events_for_league_season20192020=thesportsdb.events.leagueSeasonEvents("4328", "2019-2020")

upcoming_soccer_events=thesportsdb.events.nextLeagueEvents("4328")

all_countries=thesportsdb.countries.allCountries()

all_leagues=thesportsdb.leagues.allLeagues()

EPL_info=thesportsdb.leagues.leagueInfo("4328")

EPL_standings=thesportsdb.leagues.leagueSeasonTable("4328", "2019-2020")

soccer_leagues=thesportsdb.leagues.sportLeagues("102")

Team_sports=thesportsdb.sports.TeamVsTeamSports()

all_sports=thesportsdb.sports.allSports()

nonTeamSports=thesportsdb.sports.nonTeamVsTeamSports()

sport_details=thesportsdb.sports.sportInfo("102")

EPL_teams=thesportsdb.teams.leagueTeams("4328")

team_details_ManC=thesportsdb.teams.teamInfo("133613")
## print(thesportsdb)

Contributing

See the Contributing File

LICENCE

Read the LICENSE here

Self-Promotion

TralahM TralahM TralahM TralahM

Blog

TralahTek

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

thesportsdb-0.1.3-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file thesportsdb-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: thesportsdb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for thesportsdb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b654398dbd3986d40a6f592dce6f0ed9f30f026b15062fff49de8a50a7aada97
MD5 0cd1df2cedd76146ec3d9d6e1d1a7992
BLAKE2b-256 6dd47d21e28f3991a469a4cb9ad0d4af422370eaa9e10e66d44829ac040d4095

See more details on using hashes here.

Supported by

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