RepositoryPythonSKSlovakia
amosbastian

amosbastian/understat

An asynchronous Python package for https://understat.com/.

187stars
34forks
4issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: fpl

#1 Repository of the month

1
TINIX TRENDING·Topic: expected-value

#1 Repository of the month

1
TINIX TRENDING·Topic: football

#1 Repository of the month

A Python package for https://understat.com/.

Join the Discord server or submit an issue for help and / or suggestions!

Installing understat

The recommended way to install understat is via pip.

pip install understat

To install it directly from GitHub you can do the following:

git clone git://github.com/amosbastian/understat.git

You can also install a .tar file or .zip file

curl -OL https://github.com/amosbastian/understat/tarball/master
curl -OL https://github.com/amosbastian/understat/zipball/master # Windows

Once it has been downloaded you can easily install it using pip:

cd understat
pip install .

Usage

An example of using understat can be found below:

import asyncio
import json

import aiohttp

from understat import Understat


async def main():
    async with aiohttp.ClientSession() as session:
        understat = Understat(session)
        data = await understat.get_league_players("epl", 2018, {"team_title": "Manchester United"})
        print(json.dumps(data))


if __name__ == "__main__":
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    loop.run_until_complete(main())

Contributing

  1. Fork the repository on GitHub.
  2. Run the tests with pytest tests/ to confirm they all pass on your system. If the tests fail, then try and find out why this is happening. If you aren't able to do this yourself, then don't hesitate to either create an issue on GitHub, or send an email to amosbastian@gmail.com.
  3. Either create your feature and then write tests for it, or do this the other way around.
  4. Run all tests again with with pytest tests/ to confirm that everything still passes, including your newly added test(s).
  5. Create a pull request for the main repository's master branch.

Documentation

Documentation and examples for understat can be found at http://understat.readthedocs.io/en/latest/.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
tesseract-ocr/tesseract

Tesseract Open Source OCR Engine (main repository)

77.7k
Nov 26, 2026
RepositoryGo
prometheus/prometheus

The Prometheus monitoring system and time series database.

68.1k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryPython
roboflow/sports

computer vision and sports

5.5k
Nov 27, 2026
RepositoryPython
martineastwood/penaltyblog

⚽ High-performance football analytics: build data pipelines, scrape data, model matches, rank teams, and bet smarter | Powered by www.pena.lt/y 🚀

249
Nov 28, 2026
RepositoryPython
olbauday/FPL-Core-Insights

The ultimate FPL dataset including the 2026/27 season. Fuses official FPL API data with detailed match stats, dynamic team Elo ratings, and full cup, friendlies and Euro coverage. All data is aligned by official FPL IDs for deep analysis.

235
Dec 1, 2026
RepositoryPython
S1M0N38/soccerapi

soccerapi, an unambitious soccer odds scraper ⚽️

182
Dec 8, 2022
RepositoryPython
datasets/football-datasets

Football related datasets on datahub.io

168
Jun 23, 2026
RepositoryPython
lRomul/ball-action-spotting

SoccerNet@CVPR | 1st place solution for Ball Action Spotting Challenge 2023

141
Jul 2, 2023