Skip to main content

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.

Features

  1. Career batting/bowling/fielding/all-round statistics for international cricketers.
  2. Statistics for all partnerships in international cricket for a given team.
  3. 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.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

cricinfo_stats-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file cricinfo_stats-1.0.1.tar.gz.

File metadata

  • Download URL: cricinfo_stats-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for cricinfo_stats-1.0.1.tar.gz
Algorithm Hash digest
SHA256 20d1b72a4fc41c35fae964531ea7a4f7412c68f52602cabb8363a0ab067f9bba
MD5 7ede6d0c19555fc0c25bca1a261da3f5
BLAKE2b-256 d602ad1eeb174b21be45b7b110501cd0a89bde95bae1df6651d65dadcaaaa06e

See more details on using hashes here.

File details

Details for the file cricinfo_stats-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cricinfo_stats-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for cricinfo_stats-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6e312321889b21ea8981328243d53e9fc2185f457954fc13161f34677e61dbc
MD5 89d1df12e1d52879f73cecda13ae26d0
BLAKE2b-256 1eb95ccd9d6b54577ad365063ab46e39f27fdce1ef1a9bd8cff169f71c6dee87

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