A companion client for the football-data.org API
Project description
pyfootballdata
A Python client for football-data.org API.
Installation
pip install pyfootballdata
Usage
# Step 1: import the package
from pyfootballdata import FootballData
# Step 2: initialize the client (can be `async`)
fd = FootballData('YOUR_API_KEY')
# Step 3: query the data
# (e.g. standings for EPL circa 2021)
epl_standings = fd.standings(competition=2021, season=2021)
sorted_by_goals_conceded = epl_standings.overall.sort_by(
key="goals_against", direction="desc"
)
worst_defense = sorted_by_goals_conceded[0]
print(worst_defense.team.name, worst_defense.goals_against) # Norwich City FC 84
Documentation
TBA
Examples
TBA
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
pyfootballdata-0.0.4.tar.gz
(57.9 kB
view details)
Built Distribution
File details
Details for the file pyfootballdata-0.0.4.tar.gz
.
File metadata
- Download URL: pyfootballdata-0.0.4.tar.gz
- Upload date:
- Size: 57.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd403063dd4a9ea2a5c2178c2ad834f160075580816746a8f4d0294d39a73953 |
|
MD5 | 963b4213410fb5d10651426b2ad9d9ab |
|
BLAKE2b-256 | b4852da3e496089d3b91e8af38ef06aa0385eb512b6ea3f86bd7070ddc03f00d |
File details
Details for the file pyfootballdata-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyfootballdata-0.0.4-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d0763e2f4a306944282bed57909692d8891c3c7baf974f2b20ae3210353e8a |
|
MD5 | 7d6ddf73f4673623fc8fbc9a376db845 |
|
BLAKE2b-256 | ea0cf654afc201af3ef7ecd7ca5f01da78468d9b5d61f7d703a05c42fbeed890 |