{ "info": { "author": "Daniel Welch", "author_email": "dwelch2012@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "xmlstats-py\n===========\n\n|Build Status|\n\nA python module for interacting with the `xmlstats\nAPI `__\n\nThis module aims to closely mirror the methods provided by the xmlstats\nAPI in terms of parameters and output structure.\n\nInstalling\n----------\n\n``pip install xmlstats-py``\n\nTested against Python 2.7, 3.2-3.6\n\nUsage\n-----\n\nInstantiate an XmlStats object using a valid access token and user\nagent, obtained from the `xmlstats API `__.\n\n.. code:: python\n\n stats = Xmlstats(access_token=MY_ACCESS_TOKEN, user_agent=MY_USER_AGENT)\n\nThis object exposes a number of methods (one for each API endpoint) that\nreturn a NamedTuple representation of the data provided by the API. The\nJSON response is processed with ``json.loads``, and a custom\n``object_hook`` is used to convert JSON objects into NamedTuples when\nthey are encountered. This means fields can be accessed using dot\nnotation.\n\nMethods\n^^^^^^^\n\nEach method exposed by the Xmlstats class aims to mirror an the endpoint\nprovided by the API. See the `API\ndocumentation `__ for a complete\nexplanation of parameters and results.\n\n+--------------------------------------------------------------------------------------------+------------------------------+\n| API Endpoint | Class Method |\n+============================================================================================+==============================+\n| `Events `__ | events |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `Roster `__ | roster |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `Standings `__ | standings |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `Teams `__ | teams |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `Team Schedule/Results `__ | team\\_results |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `NBA Box Score `__ | nba\\_box\\_score |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `NBA Draft `__ | nba\\_draft |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `NBA Daily Leaders `__ | nba\\_daily\\_leaders |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `NBA Team Stats `__ | nba\\_team\\_stats |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `MLB Box Score `__ | mlb\\_box\\_score |\n+--------------------------------------------------------------------------------------------+------------------------------+\n| `MLB Wild Card Standings `__ | mlb\\_wild\\_card\\_standings |\n+--------------------------------------------------------------------------------------------+------------------------------+\n\nExamples\n--------\n\nGet Boxscores for a given date - *yyyymmdd*\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n.. code:: python\n\n stats = Xmlstats(access_token=MY_ACCESS_TOKEN, user_agent=MY_USER_AGENT)\n events = stats.events(date=\"20141028\", sport=\"nba\") # returns NamedTuple \"Events\" which mirrors data structure explained in API documentation, containing all NBA events on given date\n event_ids = [event.event_id for event in events.event]\n boxscores = [\n stats.nba_box_score(eid) for eid in event_ids\n ]\n\n.. |Build Status| image:: https://travis-ci.org/danielwelch/xmlstats-py.svg?branch=master\n :target: https://travis-ci.org/danielwelch/xmlstats-py\n\n\nChangelog\n=========\n\n1.0.1 (2017-08-09)\n------------------\n\n- Fixed bugs in multiple NBA and MLB specific methods related to added parameters for method requests.\n\n1.0.0 (2017-03-17)\n------------------\n\n- Complete overhaul of the way data is returned and represented when using this library. Data is now returned as NamedTuples, rather than as either simple dictionaries/lists or \"objectified\" data as in previous versions.\n- Methods were reimplimented to match the endpoints of the xmlstats API. Each method exposed by the XmlStats class corresponds to a single endpoint provided by the API, and accepts the same arguments and parameters. This means users of this library can essentially refer to the already existing xmlstats API documentation.\n\n\n0.1.5 (2015-11-03)\n------------------\n\nFixes:\n\n- Fixed http_get bug that prevented including paramaters in the next request after a 429 response code from xlmstats server.\n\n\n0.1.4 (2015-11-02)\n------------------\n\nFixes:\n\n- Fixed format_result bug that prevented higher level API functions from working.\n\nTesting:\n\n- Added some basic tests, with Travis CI integration\n\nDocumentation:\n\n- Added Travis CI embedded status image to READMEg\n\n\n0.1.3 (2015-11-02)\n------------------\n\nFixes:\n\n- Fixed bugs in http_get handling of 429 response from xmlstats API server. http_get now waits for the amount of time specified by server 429 response before continuing to make requests.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dwelch2101/Xmlstats-py", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Xmlstats-py", "package_url": "https://pypi.org/project/Xmlstats-py/", "platform": "", "project_url": "https://pypi.org/project/Xmlstats-py/", "project_urls": { "Homepage": "https://github.com/dwelch2101/Xmlstats-py" }, "release_url": "https://pypi.org/project/Xmlstats-py/1.0.1/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Python client for xmlstats API", "version": "1.0.1" }, "last_serial": 3085090, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "38dcd27b121dc4468e6e353cc87d0bd6", "sha256": "406603cca6ca2bc1599d03cf8c7c3fb2e3593aa11028a6a8f17a7e47a8114026" }, "downloads": -1, "filename": "Xmlstats_py-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "38dcd27b121dc4468e6e353cc87d0bd6", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2726, "upload_time": "2015-06-05T03:38:00", "url": "https://files.pythonhosted.org/packages/ac/4d/a56f2d0c63e5aff3c4d4d71b11cb5ed52392e97a5f49d6adea71f5beea8d/Xmlstats_py-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "13da2b66dfa92099f664a4744d478adc", "sha256": "9577444556c7da39350cfb698dd90f44395aefc6cb036a461c17db13d14a0abc" }, "downloads": -1, "filename": "Xmlstats-py-0.0.1.tar.gz", "has_sig": false, "md5_digest": "13da2b66dfa92099f664a4744d478adc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1536, "upload_time": "2015-06-05T03:37:56", "url": "https://files.pythonhosted.org/packages/27/54/76755a4114eca2b55bbacfb4a31014f39c0b9a337708b99707d6e9ced161/Xmlstats-py-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "fbae0128488d03c15bd600f394d92b44", "sha256": "4aedc434369d9220dd77a1f378d26b95635244854aeba6e31d22e5aaaeb5cdcf" }, "downloads": -1, "filename": "Xmlstats_py-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "fbae0128488d03c15bd600f394d92b44", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3497, "upload_time": "2015-06-07T11:35:45", "url": "https://files.pythonhosted.org/packages/5f/29/3e843ed800b8c3c56cd8f2aed3a78bed3798a65cdf819d6e7064f8df28d3/Xmlstats_py-0.0.2-py2-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1649744f6d589fa12ff8ca22754ae7b3", "sha256": "1f28dd31c97b5d35791783c7a5b7a6486e77228dab7e85c95226af43f1993ae9" }, "downloads": -1, "filename": "Xmlstats_py-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1649744f6d589fa12ff8ca22754ae7b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3544, "upload_time": "2015-11-01T00:55:15", "url": "https://files.pythonhosted.org/packages/50/bb/d2cfe39c5a2edfc5d31e52e188f12eed40b41b074aaef8d14cce42d21745/Xmlstats_py-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6acb7f0ef702c68ab18df82c7865b248", "sha256": "c8636fb43dbeb8f0e75768a21afa09d08efb2f4184b1d8942c19262666f6fda4" }, "downloads": -1, "filename": "Xmlstats-py-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6acb7f0ef702c68ab18df82c7865b248", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2194, "upload_time": "2015-11-01T00:55:07", "url": "https://files.pythonhosted.org/packages/ce/eb/e7e2a45cadac8e783ecbbf548bebc2127aa718de5437825e779c66f4f7a1/Xmlstats-py-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "fe8b5da6c8c4e64e3a9cd975675c7fdc", "sha256": "5e53476fa6c36e8249a7a0dfd4a7e277ddd8d0601df3274aa9d378d9f440d0fb" }, "downloads": -1, "filename": "Xmlstats_py-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fe8b5da6c8c4e64e3a9cd975675c7fdc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3807, "upload_time": "2015-11-02T15:53:30", "url": "https://files.pythonhosted.org/packages/02/71/9c7d8d1e6b22865922dea79cc05e74916e8f82d686392d18730682507ad4/Xmlstats_py-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6af30e840d0d61441291f510e7cf6da7", "sha256": "4de495ea67749f4c63d61d157a9f170f7a4a996cd37db038d6bc3e0fe2a63821" }, "downloads": -1, "filename": "Xmlstats-py-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6af30e840d0d61441291f510e7cf6da7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2357, "upload_time": "2015-11-02T15:53:34", "url": "https://files.pythonhosted.org/packages/22/be/27f893e9d332d4f87685e46e4e35866916e7afbb6fceeef4c3974545e9e3/Xmlstats-py-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "6dc88d1d1be040622385377fd0976ead", "sha256": "bd5330ca4e4920699aa6cd00e7dfa1583909928ba357a0e8ecb9fa01438b057f" }, "downloads": -1, "filename": "Xmlstats_py-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6dc88d1d1be040622385377fd0976ead", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3802, "upload_time": "2015-11-03T03:41:41", "url": "https://files.pythonhosted.org/packages/e4/ae/0657e3787ec2ff06877058ede97e797c0bb4103e4a59e1c5a08cce9867ba/Xmlstats_py-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d505522820c1adbbf18af8d3f8a6c2e7", "sha256": "aeb63384dd6be35b3b55db141007657abd1b859b3915ec5d3e46388c8753dd22" }, "downloads": -1, "filename": "Xmlstats-py-0.1.4.tar.gz", "has_sig": false, "md5_digest": "d505522820c1adbbf18af8d3f8a6c2e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3342, "upload_time": "2015-11-03T03:41:47", "url": "https://files.pythonhosted.org/packages/7a/1e/ec047cce9588888865a8b37016656810733a4b01d38ca04d30ef2356544f/Xmlstats-py-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "784b52daa74cdb1f0c66415f6333affe", "sha256": "61eee0265ac263145c9c9368f1ca5d66cc02f188e36d1cbb460b51aa2a6b46a2" }, "downloads": -1, "filename": "Xmlstats_py-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "784b52daa74cdb1f0c66415f6333affe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6691, "upload_time": "2015-11-03T14:42:29", "url": "https://files.pythonhosted.org/packages/cb/29/8829967dfd1c73ba338e2d0c963b6d3c4d5da475971b27a90a7e937af424/Xmlstats_py-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c07d8f3f28c4623e40dd256dc43c6182", "sha256": "21a82395f59356d0934549f6893aede2564d2918f1996e650e1d54e02380b110" }, "downloads": -1, "filename": "Xmlstats-py-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c07d8f3f28c4623e40dd256dc43c6182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9106, "upload_time": "2015-11-03T14:42:33", "url": "https://files.pythonhosted.org/packages/b6/dd/f0ec1041e0eb2680392524b758d65b1ff235cb3c5778c3e454ea0acf7378/Xmlstats-py-0.1.5.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "4f2b09761b333da0b09307ccbde61f20", "sha256": "88ee8eda2f61ec0a77ed6b19c3130a33163575ff7903bb166f106e1713d71019" }, "downloads": -1, "filename": "Xmlstats_py-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4f2b09761b333da0b09307ccbde61f20", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7157, "upload_time": "2017-03-17T20:55:34", "url": "https://files.pythonhosted.org/packages/cc/b9/a778a603eb125064e7ff1474298a2360370f02cc24f836447428410315dd/Xmlstats_py-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "ae211dd37d471fe8880c5062961e247f", "sha256": "8a26ecdcbb60ead25364fe78cc17baed4564114268f52d0f74cb093ebf577e9c" }, "downloads": -1, "filename": "Xmlstats_py-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae211dd37d471fe8880c5062961e247f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7192, "upload_time": "2017-08-09T20:40:13", "url": "https://files.pythonhosted.org/packages/87/cf/3f486aaedeb6467863c86520723d783b217190b8d80ec0103ecf770364ff/Xmlstats_py-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d956ebd564d0b58ddd5b78ccc0e4953d", "sha256": "a4a5e3e7406e100dff07f68971e8f70766f3a2d47d5666d26470fbe2e3928020" }, "downloads": -1, "filename": "Xmlstats-py-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d956ebd564d0b58ddd5b78ccc0e4953d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9950, "upload_time": "2017-08-09T20:40:14", "url": "https://files.pythonhosted.org/packages/0c/7b/75c6db7c45aa1259d2137e082a35f80c86f7e759c73bf223b5be423d0aa3/Xmlstats-py-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ae211dd37d471fe8880c5062961e247f", "sha256": "8a26ecdcbb60ead25364fe78cc17baed4564114268f52d0f74cb093ebf577e9c" }, "downloads": -1, "filename": "Xmlstats_py-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae211dd37d471fe8880c5062961e247f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7192, "upload_time": "2017-08-09T20:40:13", "url": "https://files.pythonhosted.org/packages/87/cf/3f486aaedeb6467863c86520723d783b217190b8d80ec0103ecf770364ff/Xmlstats_py-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d956ebd564d0b58ddd5b78ccc0e4953d", "sha256": "a4a5e3e7406e100dff07f68971e8f70766f3a2d47d5666d26470fbe2e3928020" }, "downloads": -1, "filename": "Xmlstats-py-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d956ebd564d0b58ddd5b78ccc0e4953d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9950, "upload_time": "2017-08-09T20:40:14", "url": "https://files.pythonhosted.org/packages/0c/7b/75c6db7c45aa1259d2137e082a35f80c86f7e759c73bf223b5be423d0aa3/Xmlstats-py-1.0.1.tar.gz" } ] }