Skip to main content

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


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)

Uploaded Source

Built Distribution

pyfootballdata-0.0.4-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

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

Hashes for pyfootballdata-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dd403063dd4a9ea2a5c2178c2ad834f160075580816746a8f4d0294d39a73953
MD5 963b4213410fb5d10651426b2ad9d9ab
BLAKE2b-256 b4852da3e496089d3b91e8af38ef06aa0385eb512b6ea3f86bd7070ddc03f00d

See more details on using hashes here.

File details

Details for the file pyfootballdata-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfootballdata-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 48d0763e2f4a306944282bed57909692d8891c3c7baf974f2b20ae3210353e8a
MD5 7d6ddf73f4673623fc8fbc9a376db845
BLAKE2b-256 ea0cf654afc201af3ef7ecd7ca5f01da78468d9b5d61f7d703a05c42fbeed890

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