{ "info": { "author": "kgangadhar", "author_email": "karthikg1643@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# cricapi\n\n[![image](https://img.shields.io/pypi/v/cricapi.svg)](https://pypi.org/project/cricapi/)\n[![image](https://img.shields.io/pypi/l/cricapi.svg)](https://pypi.org/project/cricapi/)\n[![image](https://img.shields.io/pypi/pyversions/cricapi.svg)](https://pypi.org/project/cricapi/)\n[![codecov.io](https://codecov.io/github/karthikgangadhar/pycricapi/coverage.svg?branch=master)](https://codecov.io/github/karthikgangadhar/pycricapi)\n[![image](https://img.shields.io/github/contributors/karthikgangadhar/pycricapi.svg)](https://github.com/karthikgangadhar/pycricapi/graphs/contributors)\n\n\nThe [cricapi](http://www.cricapi.com/), Free to use, super-high bandwidth, high performance Cricket API. Targeted at Developers and Cricket lovers.
\n The endpoints exposed are as follows:\n\n * `cricapi.cricket( )` provides live scrores of ongoing match \n * `cricapi.matches( )` provides upcoming match fixtures \n * `cricapi.matchCalender( )` provides international fixtures\n * `cricapi.cricketScore( )` provides detailed score card of the match\n * `cricapi.playerStats( )` provides players carrer info and stats\n * `cricapi.fantasySummary( )` provides match info and stats\n * `cricapi.fantasySquad( )` provides team players info\n * `cricapi.playerFinder( )` provides players ids matching given name string\n \n In order to use the above endpoints, u need to have an api_key which can use generated by signing into [cricpapi](http://www.cricapi.com). For testing purpose can use test_api_key `\"TESTKEY0273\"`\n\nUsage of Cricapi:\n\n``` {.sourceCode .python}\n\n>>> import cricapi\n>>> apikey = \"TESTKEY0273\"\n>>> criapi = cricapi.Cricapi(apikey)\n```\n#### matches\n\n```\n>>> criapi.matches()\n{u'matches': [{u'toss_winner_team': u'Australia Women', u'team-2': u'Pakistan Women' ...}\n```\n#### cricket\n\n```\n>>> criapi.cricket()\n{u'v': u'1', u'cache': True, u'provider': {u'url': u'https://cricapi.com/', u'source': ...}\n```\n#### matchCalender\n\n```\n>>> criapi.matchCalender()\n{u'v': u'1', u'cache': True, u'provider': {u'url': u'https://criapi.com/', u'source': ...}\n```\n#### cricketScore\n\n```\n>>> params = {'unique_id':1034809}\n>>> criapi.cricketScore(params)\n{u'v': u'1', u'ttl': 3, u'team-2': u'India', u'matchStarted': True, u'team-1': u'England', u'provider': {u'url':u'https://cricapi.com/', u'source': u'Various', u'pubDate': u'2018-10-23T06:58:07.090Z'}, u'creditsLeft': 206}\n```\n#### playerStats\n\n```\n>>> params = {'pid':35320}\n>>> criapi.playerStats(params)\n{u'profile': u\"\\n\\nSachin Tendulkar has been the most complete batsman of his time, the most prolific runmaker of all time, and arguably the biggest cricket icon the game has ...}\n```\n#### fantasySquad\n\n```\n>>> params = {'unique_id':1034809}\n>>> criapi.fantasySquad(params)\n{u'v': u'1', u'cache': True, u'provider': {u'url': u'https://cricapi.com/', u'source': u'Various', u'pubDate': u'2018-10-23T07:16:02.191Z'}, u'squad': [{u'players': [{u'pid': ... }\n```\n#### fantasySummary\n\n```\n>>> params = {'unique_id':1034809}\n>>> criapi.fantasySummary(params)\n{u'type': u'Test', u'ttl': 7, u'provider': {u'url': u'https://cricapi.com/', u'source': u'Various', u'pubDate': u'2018-10-23T07:20:22.701Z'}, u'dateTimeGMT': u'2016-11-09T04:00:00.000Z', u'v': u'1', u'data': {u'toss_winner_tea ...}\n```\n\n#### playerFinder\n\n```\n>>> params = {'name':'sachin'}\n>>> criapi.playerFinder(params)\n{u'ttl': 164, u'provider': {u'url': u'https://cricapi.com/', u'source': u'Various', u'pubDate': u'2018-10-23T07:24:47.164Z'}, u'v': u'1', u'data': [{u'fullName': u'Sachin Rana', u'pid': 33757, u'name': u'Sachin Rana'}, {u'full ...}\n```\n\nCricapi officially supports Python 2.7 & 3.4\u20133.7, and runs great on\nPyPy.\n\nInstallation\n------------\n\nTo install Cricapi, simply use [pipenv](http://pipenv.org/) (or pip, of\ncourse):\n\n``` {.sourceCode .bash}\n$ pipenv install cricapi\n```\n\nDocumentation\n-------------\n\nFantastic documentation is available at\n.\n\nHow to Contribute\n-----------------\n\n1. Check for open issues or open a fresh issue to start a discussion\n around a feature idea or a bug. There is a [Contributor\n Friendly](https://github.com/karthikgangadhar/pycricapi/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open)\n tag for issues that should be ideal for people who are not very\n familiar with the codebase yet.\n2. Fork [the repository](https://github.com/karthikgangadhar/pycricapi) on\n GitHub to start making your changes to the **master** branch (or\n branch off of it).\n3. Write a test which shows that the bug was fixed or that the feature\n works as expected.\n4. Send a pull request and bug the maintainer until it gets merged and\n published. :) Make sure to add yourself to\n [AUTHORS](https://github.com/karthikgangadhar/pycricapi/blob/master/AUTHORS.rst).", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/KarthikGangadhar/pycricapi/tarball/1.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/KarthikGangadhar/pycricapi", "keywords": "cricket,matchSchedule,playerstat,crciketScore,matches,fantasysquard,fantasysummary,playerfinder", "license": "", "maintainer": "", "maintainer_email": "", "name": "cricapi", "package_url": "https://pypi.org/project/cricapi/", "platform": "", "project_url": "https://pypi.org/project/cricapi/", "project_urls": { "Download": "https://github.com/KarthikGangadhar/pycricapi/tarball/1.0", "Homepage": "https://github.com/KarthikGangadhar/pycricapi" }, "release_url": "https://pypi.org/project/cricapi/1.2/", "requires_dist": null, "requires_python": "", "summary": "The cricapi, Free to use, super-high bandwidth, high performance Cricket API. Targeted at Developers and Cricket lovers.", "version": "1.2" }, "last_serial": 5802193, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "8ac21a2fdaf18cac7472184d43915542", "sha256": "ad679b8881f94b40e2aa24bc01e0ea4f4e6049b5d6bddb38bce76282df81a6ff" }, "downloads": -1, "filename": "cricapi-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8ac21a2fdaf18cac7472184d43915542", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8115, "upload_time": "2018-10-23T09:55:30", "url": "https://files.pythonhosted.org/packages/89/f4/a3eb9f574159f0740b1ad76e60f4978c8be03eec354ae136b1b3a0150593/cricapi-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "071ffc840d0c069d3ee8636ef676a4e1", "sha256": "18e88fc78cc59cda091350a1a5e455494b88b26dc0cb5b61180030e81debb696" }, "downloads": -1, "filename": "cricapi-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "071ffc840d0c069d3ee8636ef676a4e1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6318, "upload_time": "2018-10-23T09:55:31", "url": "https://files.pythonhosted.org/packages/52/73/13b4099d6687f39e23a7055689ca5f90974a27845a59cfeb93d39d49cd7c/cricapi-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05e0ba92312507f04a7f3e4f0c9960f4", "sha256": "16eb5074d9a478eb674c14399d3f087d5dcea05f8c81fc8665bc474374e43ed7" }, "downloads": -1, "filename": "cricapi-1.0.tar.gz", "has_sig": false, "md5_digest": "05e0ba92312507f04a7f3e4f0c9960f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4198, "upload_time": "2018-10-23T09:55:34", "url": "https://files.pythonhosted.org/packages/69/bc/459d7fe94a86504eec45cfa7ba590983894cc9499bd4f202ca5bd666396e/cricapi-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "9a7f8b02980ca0201964610b0b72034b", "sha256": "d982d5005ed6da436c6bad97a00809728e81073feb4c7be635e489a016cbd116" }, "downloads": -1, "filename": "cricapi-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9a7f8b02980ca0201964610b0b72034b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8099, "upload_time": "2018-10-23T09:55:32", "url": "https://files.pythonhosted.org/packages/bd/54/e62836be2992aabbae9d1dbf18807d7188d16853ad1f6ac1172accd268eb/cricapi-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "beb64e6bca525da0ffdb7efb5e7db6ca", "sha256": "8809d0baa5cfa3264e462563f448e5c6c9a5d0a5c902fba7a99d357fdc67355e" }, "downloads": -1, "filename": "cricapi-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "beb64e6bca525da0ffdb7efb5e7db6ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8145, "upload_time": "2018-10-23T09:55:33", "url": "https://files.pythonhosted.org/packages/81/08/04175662e28a9dd3aeea6d6a843e2126859621dfe2d5ef64cd6ae6362449/cricapi-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4bee6edc26a816b30776dec0b8a5a445", "sha256": "fff0ec51c433468024fe5b4aec8b0735b8e635f151c2676aa9455ab2265f4fdf" }, "downloads": -1, "filename": "cricapi-1.1.tar.gz", "has_sig": false, "md5_digest": "4bee6edc26a816b30776dec0b8a5a445", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4199, "upload_time": "2018-10-23T09:55:35", "url": "https://files.pythonhosted.org/packages/72/ee/89c7b7415160ba344595943c47fc084b029896506a95075c4799ee6849e1/cricapi-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "b428682274b361f51875eb819fa253f0", "sha256": "9839344cca03d20215071b9bd4e2fb6c4b9db4c7b4349572b689051ac1e29848" }, "downloads": -1, "filename": "cricapi-1.2.tar.gz", "has_sig": false, "md5_digest": "b428682274b361f51875eb819fa253f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4203, "upload_time": "2018-10-23T10:07:21", "url": "https://files.pythonhosted.org/packages/74/43/6644a88ce391961dea793ae49313808ead8e6b427ccc45e145a43eee3cee/cricapi-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b428682274b361f51875eb819fa253f0", "sha256": "9839344cca03d20215071b9bd4e2fb6c4b9db4c7b4349572b689051ac1e29848" }, "downloads": -1, "filename": "cricapi-1.2.tar.gz", "has_sig": false, "md5_digest": "b428682274b361f51875eb819fa253f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4203, "upload_time": "2018-10-23T10:07:21", "url": "https://files.pythonhosted.org/packages/74/43/6644a88ce391961dea793ae49313808ead8e6b427ccc45e145a43eee3cee/cricapi-1.2.tar.gz" } ] }