All Projects → amosbastian → Understat

amosbastian / Understat

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

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Understat

Opennms
Enterprise-Grade Open-Source Network Management Platform
Stars: ✭ 568 (+545.45%)
Mutual labels:  hacktoberfest, metrics
Datofutbol
Dato Fútbol repository
Stars: ✭ 23 (-73.86%)
Mutual labels:  football, soccer
Graphite Web
A highly scalable real-time graphing system
Stars: ✭ 5,384 (+6018.18%)
Mutual labels:  hacktoberfest, metrics
Consul exporter
Exporter for Consul metrics
Stars: ✭ 323 (+267.05%)
Mutual labels:  hacktoberfest, metrics
Soccergraphr
Soccer Analytics in R using OPTA data
Stars: ✭ 42 (-52.27%)
Mutual labels:  football, soccer
Footballdata
A hodgepodge of JSON and CSV Football/Soccer data
Stars: ✭ 526 (+497.73%)
Mutual labels:  football, soccer
Open Data
Free football data from StatsBomb
Stars: ✭ 891 (+912.5%)
Mutual labels:  football, soccer
regista
An R package for soccer modelling
Stars: ✭ 71 (-19.32%)
Mutual labels:  soccer, football
Promcord
📊 Analyze your entire discord guild in grafana using prometheus. Message, User, Game and Voice statistics...
Stars: ✭ 39 (-55.68%)
Mutual labels:  hacktoberfest, metrics
Football Cli
⚽ Command line interface for Hackers who love football
Stars: ✭ 984 (+1018.18%)
Mutual labels:  football, soccer
Augur
Python library and web service for Open Source Software Health and Sustainability metrics & data collection.
Stars: ✭ 304 (+245.45%)
Mutual labels:  hacktoberfest, metrics
Soccerapi
soccerapi ⚽️ , an unambitious soccer odds scraper
Stars: ✭ 52 (-40.91%)
Mutual labels:  football, soccer
Kibana
Your window into the Elastic Stack
Stars: ✭ 16,820 (+19013.64%)
Mutual labels:  hacktoberfest, metrics
World Cup 2018 Cli Dashboard
⚽🏆A World Cup 2018 CLI dashboard – Watch matches in your terminal
Stars: ✭ 529 (+501.14%)
Mutual labels:  football, soccer
Haystack
Top level repository for Haystack, containing documentation and deployment scripts
Stars: ✭ 261 (+196.59%)
Mutual labels:  hacktoberfest, metrics
Statsd exporter
StatsD to Prometheus metrics exporter
Stars: ✭ 608 (+590.91%)
Mutual labels:  hacktoberfest, metrics
angular-footballdata-api-factory
AngularJS Factory for the football-data.org JSON REST API
Stars: ✭ 48 (-45.45%)
Mutual labels:  soccer, football
football analytics
⚽📊 A collection of football analytics projects, data, and analysis by Edd Webster (@eddwebster), including a curated list of publicly available resources published by the football analytics community.
Stars: ✭ 405 (+360.23%)
Mutual labels:  soccer, football
Golazon
Football data mnmlist way. Built with Next.js and Ruby.
Stars: ✭ 28 (-68.18%)
Mutual labels:  football, soccer
Epl Fantasy Geek
English Premier League 2017-18 Fantasy Stats for Geeks
Stars: ✭ 50 (-43.18%)
Mutual labels:  football, soccer

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.get_event_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 [email protected].
  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/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].