{ "info": { "author": "Alex Marvin", "author_email": "alex.marvin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# fantasy-football-bot (ffbot)\nAutomate playing Yahoo Fantasy Football\n\n# Installation\n- `pip install ffbot`\n\n# Usage\n```python\nimport ffbot\n\n# Yahoo league/team id\n# Visit your team at https://football.fantasysports.yahoo.com/f1/, and the url will also include your league and team ID\nleague = 123456\nteam = 1\npositions = 'QB, WR, WR, WR, RB, RB, TE, W/R/T, K, DEF, BN, BN, BN, BN, IR'\nweek = ffbot.current_week()\n\n# Scrape data for current and available players, and their point forecasts for each week\ndf = ffbot.scrape(league)\n\n# Optional save data to CSV, and load latest data\n#ffbot.save(df, week)\n#df, week = ffbot.load()\n\n# Optimize the assignment of players to positions each week to maximize remaining season discounted total points (points this week are worth more than points in future weeks)\n# decides which players to add and drop\n# optimization is repeated for current roster, for one player add/drop, two player add/drops, etc.\nffbot.optimize(df, week, team, positions)\n\n# Output will look like:\n'''\nAdd Drop Total points Discounted points\n------------------------------- ---------------- -------------- -------------------\n +1583.94 +367.51\nKansas City +16.27 +2.24\nMatt Bryant Joey Slye +4.60 +1.67\nDede Westbrook Kenyan Drake +4.27 +0.65\nJordan Howard - Waivers (Oct 2) Marvin Jones Jr. +10.37 +17.23'''\n# which means that optimal weekly rosters of your current players scores 1583.94 points\n# across the season and 367.51 discounted points (points in week 1 are worth more than week 12).\n# The best free agent to add is Kansas City, which increases discounted points by 2.24 (although lowers total season points by 16.27).\n# Two other free agent pickups improve discounted points.\n# Only one Waiver claim (for Jordon Howard) increases discounted points.\n```\n\n# Contribution\nPlease add Issues or submit Pull requests!", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/amarvin/fantasy-football-bot", "keywords": "fantasy-football bot yahoo", "license": "", "maintainer": "", "maintainer_email": "", "name": "ffbot", "package_url": "https://pypi.org/project/ffbot/", "platform": "", "project_url": "https://pypi.org/project/ffbot/", "project_urls": { "Homepage": "https://github.com/amarvin/fantasy-football-bot" }, "release_url": "https://pypi.org/project/ffbot/1.0.5/", "requires_dist": null, "requires_python": ">=3.0", "summary": "Automate playing Yahoo Fantasy Football", "version": "1.0.5" }, "last_serial": 6001780, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "516d51b80d27e87a35f6cd90279ff8f6", "sha256": "d1fc765ebb48e9fe21d9768eecceb3536f2099397962285391a10cce31283e5d" }, "downloads": -1, "filename": "ffbot-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "516d51b80d27e87a35f6cd90279ff8f6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.0", "size": 7218, "upload_time": "2019-09-20T03:00:23", "url": "https://files.pythonhosted.org/packages/f3/7e/d242f05a999d83f79415d159656ac98664a7c928541d494f7ead7fc7a0c8/ffbot-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b7d3bebe1a828233eb34ccfb49db0a8", "sha256": "faf60bc75da333d6e834560f64a1a8a88af2c24d7137c1cdf7b048cf243879e4" }, "downloads": -1, "filename": "ffbot-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2b7d3bebe1a828233eb34ccfb49db0a8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 5685, "upload_time": "2019-09-20T03:00:26", "url": "https://files.pythonhosted.org/packages/ac/33/14d34b9745348e81a643cc64121c07c8f5cc94a2c700a1e899fb7de8c5d0/ffbot-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "88e17938ecdb59b9fcfe5d3642c71840", "sha256": "43f8efb677a8f0c7de55b2193f9582db00bfbd4202751f1bb67ef6a5e5278d5d" }, "downloads": -1, "filename": "ffbot-1.0.2.tar.gz", "has_sig": false, "md5_digest": "88e17938ecdb59b9fcfe5d3642c71840", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 6140, "upload_time": "2019-10-13T21:10:51", "url": "https://files.pythonhosted.org/packages/58/c1/09846fbd5d87ab6a058d5a26fda2312e063a45693df65f1293385bcd33fd/ffbot-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "750f9161a4a2c321cdcc79c018c394da", "sha256": "675cdd5fbe617a72d4987caaec76309d9a75d7e436ead539b8d773e494fdba80" }, "downloads": -1, "filename": "ffbot-1.0.3.tar.gz", "has_sig": false, "md5_digest": "750f9161a4a2c321cdcc79c018c394da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 6271, "upload_time": "2019-10-16T04:01:43", "url": "https://files.pythonhosted.org/packages/38/9d/c7aa1bee2f8878ebccbd4bce5251a7ade69253e90eeabe3a56b17c469240/ffbot-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "94c37149f3b576f93fe9fc40a44db09e", "sha256": "be453a09a797e3b65b52053528f3adad8b72bcde6bbf8a4a72818376aad5f451" }, "downloads": -1, "filename": "ffbot-1.0.4.tar.gz", "has_sig": false, "md5_digest": "94c37149f3b576f93fe9fc40a44db09e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 5843, "upload_time": "2019-10-17T01:25:08", "url": "https://files.pythonhosted.org/packages/0a/a3/63214e2e59ed1afdf34bd588f5457951e1bf8a11796bc9e9311bf09d00a2/ffbot-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "07c44b7365484303ebfcb4e7db53e3a4", "sha256": "43524ffd861a7822bbbec05be2288c7b583c57b38ca43cb4e48ca166da3b5b56" }, "downloads": -1, "filename": "ffbot-1.0.5.tar.gz", "has_sig": false, "md5_digest": "07c44b7365484303ebfcb4e7db53e3a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 6041, "upload_time": "2019-10-20T03:24:43", "url": "https://files.pythonhosted.org/packages/6a/bf/e39fc65f25fff8c6e1884030ce07dc0b8de1a51e48166c6eb8d8a99879c7/ffbot-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07c44b7365484303ebfcb4e7db53e3a4", "sha256": "43524ffd861a7822bbbec05be2288c7b583c57b38ca43cb4e48ca166da3b5b56" }, "downloads": -1, "filename": "ffbot-1.0.5.tar.gz", "has_sig": false, "md5_digest": "07c44b7365484303ebfcb4e7db53e3a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 6041, "upload_time": "2019-10-20T03:24:43", "url": "https://files.pythonhosted.org/packages/6a/bf/e39fc65f25fff8c6e1884030ce07dc0b8de1a51e48166c6eb8d8a99879c7/ffbot-1.0.5.tar.gz" } ] }