Python/Pandas Client for https://www.espncricinfo.com stats
Project description
cricinfo
Library for loading cricket stats from https://www.espncricinfo.com into pandas dataframes.
- Documentation
- GitHub
- PyPi:
pip install cricinfo-stats
Features
- Career batting/bowling/fielding/all-round statistics for international cricketers.
- Statistics for all partnerships in international cricket for a given team.
- Aggregated statitics for teams in international cricket.
Teams Supported
England
Australia
SouthAfrica
WestIndies
NewZealand
India
Pakistan
SriLanka
Zimbawe
Formats Supported
TEST
ODI
T20I
International
Sample Usage
from cricinfo import Cricinfo
from cricinfo import MatchFormat
from cricinfo import Team
df = Cricinfo.retrieve_batting_stats(team=Team.Pakistan, match_format=MatchFormat.Test)
Code Quality
Run test and lint commands from the root of this repo.
Testing
coverage run -m pytest -v -s
coverage report -m
Linting
ruff check .
Documentation
cp README.md docs/source/README.md
cd docs/
make clean
make html
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
cricinfo_stats-1.0.2.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cricinfo_stats-1.0.2.tar.gz.
File metadata
- Download URL: cricinfo_stats-1.0.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8a650ea5e5c7435805e838a5fa335130b2dfccd8e3d8bcdb5cada7e711e8616
|
|
| MD5 |
601b96f7f9bdd2b92b03cd8938bbb5fd
|
|
| BLAKE2b-256 |
d3b340ef093d6cfed413087783b607219a6577bc3c9cff67f94f478667aa6765
|
File details
Details for the file cricinfo_stats-1.0.2-py3-none-any.whl.
File metadata
- Download URL: cricinfo_stats-1.0.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9e1dc644fb31dd863c0c5d1e68bf71c74b740109cbd20ebb2abbbaa0f4141b
|
|
| MD5 |
c494d2bea452dd3cae1687e842686da4
|
|
| BLAKE2b-256 |
e7f471c97687aa0eabaf8e436cffa6582b4a31932a5cd98b25e44ef9a322efa6
|