Skip to main content

PySports: Python module to access cricket scores and more.

Project description


##PySports : Python module to access cricket scores and more.

PySports is a Reusable python app which provides a features to access live scores, upcoming matches, historical matches and more. PySports is rich features and powerful enough, You can start with PySports without installation of any 3rd party packages.


Installation :

You can install PySports from PyPI using pip.

pip install pysports


Configuration :

  1. In order to use PySports it required an API Key, You can generate the API Key from CricAPI.com.

  2. Open your Text Editor/Python CLI and write the following code.

from pysports.cricapi import CricAPI

cric = CricAPI("PASTE_YOUR_CRICAPI_API_KEY_HERE")
  1. Access Live Score of any matches by PySports.

To access live score of any matches it required the unique_id/match_id of the match.

cric.live_score("INT_UNIQUE_ID")
  1. Access the list of Upcoming Matches by PySports.

To access the list of upcoming matches write the following code.

cric.upcoming_matches()
  1. Access the list of Historical Matches by PySports.

To access the list of Historical matches write the following code.

cric.historical_matches()
  1. Access the Scorecard/Summary of the matches by PySports.

To access the scorecard/summary of the matches it required the unique_id/match_id of the match, Write the following code.

cric.match_summary("INT_UNIQUE_ID")
  1. Access the Detail of Players by PySports.

To access the details/information of the players it required the pid/player_id of the players, Write the following code.

cric.about_player("INT_PLAYER_ID")

Project details


Release history Release notifications

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pysports, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pysports-1.0.0-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pysports-1.0.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page