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.
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
LICENCE
Self-Promotion
Metadata
Release files for thesportsdb 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thesportsdb-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for thesportsdb-0.3.1-py3-none-any.whl |
Release files / thesportsdb-0.3.1-py3-none-any.whl
| Download URL | thesportsdb-0.3.1-py3-none-any.whl |
|---|---|
| Size | 37.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4202003cd185b7e880788888e9cf4c7f51bbc2708797e45c04264d2e3fa97223
|
|
BLAKE2b-256 checksum How to use checksums |
af9c293c88b1b0cf93d4714ffad69796575cdcdfd56c804ddfb0b1d453650472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for thesportsdb 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.