Skip to main content

A Python package to fetch xG data from understat.

Project description

xgpy: a powerful python wrapper for football data

What is it?

xgpy is a Python package that aims to aggregate multiple football data sources into a single python module. Using a single function, one can retrieve data from multple places, compare and perform a more complete analysis.

Source Status
understat.com Beta
fbref.com In Progress
fantasy.premierleague.com Planned
whoscored.com Planned

Installation

The source code is currently here.

The simplest way to install the package is by pip.

pip install xgpy

Usage

xgpy has multiple modules, each for every source. For example, in order to get stats from understat:

import xgpy
from xgpy.understat import UnderstatPlayer

player = UnderstatPlayer(1228)
match_data = player.get_player_match_data()

And that's it! Look through the documentation and call upon a number of functions.

Troubleshooting

There is a known issue of pandas not installing correctly. Please make sure you have pandas installed before installing xgpy.

pip install pandas
pip install xgpy

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

xgpy-0.0.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xgpy-0.0.2-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file xgpy-0.0.2.tar.gz.

File metadata

  • Download URL: xgpy-0.0.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for xgpy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6124312853c05935c788e7e707f316d2499d61c2595d38f2025ee44331208c10
MD5 b315894c4c032b3f335e0c733bd67ac2
BLAKE2b-256 cfed4a06e179ecd9e76eb8b807dc209eda5a9d84f61e4bb813e314a36781eadc

See more details on using hashes here.

File details

Details for the file xgpy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: xgpy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for xgpy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e6ee706e225713ddc250c2926227b6978e1fb44fac5fd0f5344dffa2282fda
MD5 4daef7caf6185e160df5fedfc3e76362
BLAKE2b-256 5025109ae6a85c4dd53462499a7dfd4139b3eef1823c10dfbff6bf84c481d12f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page