This is sportstat, a Python package that I hope will give more people access to soccer data. Gone are the days of downloading spreadsheets one-by-one, copy-pasting, or entering data into spreadsheets by hand. I try to make sportstat as easy-to-use as possible so that anybody with a bit of Python experience can use it.
To install sportstat, run pip install sportstat from the command line.
Data can be scraped from the following sources:
- FBRef
- Match and seasonal data for players and teams
- Understat
- Match and seasonal data for players and teams
- FiveThirtyEight
- Several FiveThirtyEight metrics on a match level (SPI, win probabilities, xG, NSxG, and more)
- ClubELO
- ELO scores for teams on a specific date
- Capology
- Player salary data
- Transfermarkt
- Market value, transfer history, market value history, and more
For documentation, head over to the GitHub's wiki page
For usage examples, look at Examples.ipynb in the code directory or some of my example analyses in the analytics_examples folder.
I'd love to hear your feedback, bugs you find, or new features you want! You can reach me via email at osmour043@gmail.com or my Twitter handle is @owen_seymour.
Metadata
Release files for sportstat 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sportstat-2.0.0.tar.gz | 36.1 kB | Without provenance | Details for sportstat-2.0.0.tar.gz |
Release files / sportstat-2.0.0.tar.gz
| Download URL | sportstat-2.0.0.tar.gz |
|---|---|
| Size | 36.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee5871aed8d7de0940f6bd5f987daa53c32485c517c4493f1d83dc7bd3d0497b
|
|
BLAKE2b-256 checksum How to use checksums |
078664c6ac4e8ee6020a6a3ba926d8d4b7e3ad1fa060c92a38cd6cb0e69d3769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for sportstat 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.