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

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 .

Coverage Status

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.tar.gz (7.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-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cricinfo_stats-1.0.tar.gz
  • Upload date:
  • Size: 7.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.tar.gz
Algorithm Hash digest
SHA256 13b38a7b2dd7fd45e5765963d84fc30204a272fb06b60febed81a23eed15981f
MD5 14042da7bb5f6698c265281b1dea1308
BLAKE2b-256 8bf2fcfd2350f7502a45cdc60d372a842c197e8b95a0db0ae51ce54da4f2b51e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cricinfo_stats-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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-py3-none-any.whl
Algorithm Hash digest
SHA256 9c7481977a3de3425072f9e7f18870472204c009bc433c000d95e15671a9a52f
MD5 abb2d37f1f68af1e0635ece5dd89606d
BLAKE2b-256 97e832ca94e3586ab156b29e5db5acb7a7aba615e37716be76cc65f6bc1ab8d5

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