{ "info": { "author": "Benjamin Field", "author_email": "benjamin.field@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "lahman-updater\n==============\n\nUpdate the 2014 Lahman database to most recent data, including\nin-season.\n\nUses data scrapes from baseball-reference and downloads from Chadwick\nBureau.\n\nCan also be used to add expanded stats to prior years.\n\nWorking but still in progress.\n\nNotes:\n----------------------\n\n- written for python 2.7.11\n- requires spynner, beautifulsoup4 and pymysql\n- Spynner is tough to install. easy\\_install spynner - spynner has no pip\n- Edit data/db\\_details.txt with your database access information.\n- Run with \u2013setup and set \u2013strict if you prefer the 2014 Lahman schema.\n\nISSUES:\n~~~~~~\n\n- spynner dependencies (PyQt and SIP) are problematic to install in virtualenvs\n- Recommended to not use virtual env or to manually install packages.\n- Potential (untested) vitualenv fix here: http://stackoverflow.com/questions/22640640/how-to-install-pyqt4-on-windows-using-pip\n- Spynner throws errors that I've been unable to catch. This does not seem to affect performance.\n\nFlags:\n~~~~~~\n\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -flag | \u2013flag | description |\n+==========+=====================================================+=========================================================================+\n| | \u2013setup | initial update of 2014 db to current data |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| | \u2013reset | reset db to 2014, remove expanded data if present |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -v | \u2013verbose | increase verbosity. default warnings only. -v add info, -vv add debug |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -x | \u2013expand | enters expanded stats into db for year given |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -s | \u2013strict | maintains schema of 2014 db |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -y | \u2013year | year to be updated/expanded, defaults to current season |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -i | \u2013ignore | force update |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -f | \u2013fielding | include fielding data, scrape is time consuming |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -e | \u2013expiry | set allowable age of data in days, default 1 |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -c | \u2013chadwick | download new chadwick data, ~35Mb |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+\n| -d | \u2013dbloginfile | path to db login details |\n+----------+-----------------------------------------------------+-------------------------------------------------------------------------+", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aitchslash", "keywords": null, "license": "MIT License\n\nCopyright (c) 2016, Benjamin Field\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "lahman_updater", "package_url": "https://pypi.org/project/lahman_updater/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lahman_updater/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aitchslash" }, "release_url": "https://pypi.org/project/lahman_updater/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Update lahman database", "version": "1.0.0" }, "last_serial": 2125583, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a54e377c519399a23eca828b8c4ae83c", "sha256": "5926eec8ae2c6998e6eac8683a1aaf5ba3b0a268ce807b432cc3bc53dff55c46" }, "downloads": -1, "filename": "lahman_updater-1.0.0.zip", "has_sig": false, "md5_digest": "a54e377c519399a23eca828b8c4ae83c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27240, "upload_time": "2016-05-20T14:49:50", "url": "https://files.pythonhosted.org/packages/e9/06/1eb133c18970a2677e01a8bf8d47e162384cf815fd032ef238a49dfd6dec/lahman_updater-1.0.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a54e377c519399a23eca828b8c4ae83c", "sha256": "5926eec8ae2c6998e6eac8683a1aaf5ba3b0a268ce807b432cc3bc53dff55c46" }, "downloads": -1, "filename": "lahman_updater-1.0.0.zip", "has_sig": false, "md5_digest": "a54e377c519399a23eca828b8c4ae83c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27240, "upload_time": "2016-05-20T14:49:50", "url": "https://files.pythonhosted.org/packages/e9/06/1eb133c18970a2677e01a8bf8d47e162384cf815fd032ef238a49dfd6dec/lahman_updater-1.0.0.zip" } ] }