{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Games/Entertainment :: Board Games", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "python-lichess: a client for the lichess.org API\n================================================\nThis is a client library for the `lichess.org `_ `API `_. It is designed to be:\n\n* Easy to use\n\n* Customizable when you need it\n\n* Adaptable to API changes\n\n* Easy to `integrate `_ with `python-chess `_\n\nHave a look at some short examples. For more, check out the `full documentation `_.\n\nGetting a user's rating:\n\n>>> import lichess.api\n>>> \n>>> user = lichess.api.user('thibault')\n>>> print(user['perfs']['blitz']['rating'])\n1617\n\nChecking who's online and playing:\n\n>>> import lichess.api\n>>>\n>>> users = list(lichess.api.users_status(['thibault', 'cyanfish']))\n>>> online = [u['id'] for u in users if u.get('online')]\n>>> playing = [u['id'] for u in users if u.get('playing')]\n>>> print(online, playing)\n['thibault', 'cyanfish'] ['cyanfish']\n\nSaving a PGN of a user's last 200 games:\n\n>>> import lichess.api\n>>> from lichess.format import SINGLE_PGN\n>>> \n>>> pgn = lichess.api.user_games('thibault', max=200, format=SINGLE_PGN)\n>>> with open('last200.pgn', 'w') as f:\n>>> f.write(pgn)\n\nIntegrating with `python-chess `_:\n\n>>> import lichess.api\n>>> from lichess.format import PYCHESS\n>>> \n>>> game = lichess.api.game('Qa7FJNk2', format=PYCHESS)\n>>> print(game.end().board())\n. . k . R b r .\n. p p r . N p .\np . . . . . . p\n. . . . . . . .\n. . . p . . . .\nP . . P . . . P\n. P P . . P P .\n. . K R . . . .\n\nInstalling\n----------\n\n::\n\n pip install python-lichess\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cyanfish/python-lichess", "keywords": "chess lichess api", "license": "GPL3", "maintainer": "", "maintainer_email": "", "name": "python-lichess", "package_url": "https://pypi.org/project/python-lichess/", "platform": "", "project_url": "https://pypi.org/project/python-lichess/", "project_urls": { "Homepage": "https://github.com/cyanfish/python-lichess" }, "release_url": "https://pypi.org/project/python-lichess/0.9/", "requires_dist": [ "requests", "six" ], "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "summary": "A client for the lichess.org API", "version": "0.9" }, "last_serial": 5531102, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "d746a491653e956b539de803487a38e4", "sha256": "fa7429551580cddce7783326c36494a8122778dc2451ea35e31cb93cb4067c77" }, "downloads": -1, "filename": "python_lichess-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d746a491653e956b539de803487a38e4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 8418, "upload_time": "2018-03-17T22:46:01", "url": "https://files.pythonhosted.org/packages/ec/16/0956351a45aefaa877a0ec10d1da53e58b4bc1e76c120dab1ee324e3885b/python_lichess-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "77257580f50bff2d74662279fb46df04", "sha256": "f2bee97106269017125faddba488779571d799a654ea100dccb0289ca7116951" }, "downloads": -1, "filename": "python-lichess-0.4.tar.gz", "has_sig": false, "md5_digest": "77257580f50bff2d74662279fb46df04", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 6073, "upload_time": "2018-03-17T22:46:02", "url": "https://files.pythonhosted.org/packages/55/fb/9c53fe5f03e548f7a7f8a54e695fd7c5b82b3adb31edbca52efa4e550dd4/python-lichess-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "d0c0717ca2ad7c411e20ae3a92301d04", "sha256": "8e58e856d4bd0ffba97d0c816ee0fa7161b2e3d9c91229174ac00b7ff92f8941" }, "downloads": -1, "filename": "python_lichess-0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0c0717ca2ad7c411e20ae3a92301d04", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 8684, "upload_time": "2018-03-18T00:10:52", "url": "https://files.pythonhosted.org/packages/4f/39/3f50ae0f58b88b34ba5b342899cc2a40b8c1d8ee312f589a1648cc7a7671/python_lichess-0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb5cb7f5c7dd0fd54d10dfb602b5db9b", "sha256": "b6c28c5a868d05342589cd6770ff6d9240b08f70089fca9b6c3af206b2c50c4e" }, "downloads": -1, "filename": "python-lichess-0.5.tar.gz", "has_sig": false, "md5_digest": "fb5cb7f5c7dd0fd54d10dfb602b5db9b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 6238, "upload_time": "2018-03-18T00:10:53", "url": "https://files.pythonhosted.org/packages/dd/4c/86ea5a380c5abfffb02da115f872a56b17ae9c1e01168a257898e3cb33f6/python-lichess-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "936558a8a9b52051200c6717b3965550", "sha256": "3c6fafab5469b0be49606f1e5388500a247c7a5dfcc95740b7c62d02da954365" }, "downloads": -1, "filename": "python_lichess-0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "936558a8a9b52051200c6717b3965550", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 15563, "upload_time": "2018-05-08T04:22:55", "url": "https://files.pythonhosted.org/packages/e6/30/7fbba355ed395ac5146cae24f1e31e81c49dc533ff618755fdefa396d53a/python_lichess-0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d0a4854c9fb2319942bd00ea52381fca", "sha256": "e7943e929616f26f9e19482f3295c25dd666462e7734740b8545b3f4f82f375b" }, "downloads": -1, "filename": "python-lichess-0.6.tar.gz", "has_sig": false, "md5_digest": "d0a4854c9fb2319942bd00ea52381fca", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7540, "upload_time": "2018-05-08T04:22:56", "url": "https://files.pythonhosted.org/packages/37/bd/adaf06d45e8d89d69dc2e42c749dca4a61d94d40176b9ea3d9f0d3c7401f/python-lichess-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "6dfb9cd41e0a6da21c257f3b0f605fb3", "sha256": "118780d22993ace6383f34b29f5e94abc12c9d11d4e5ccb554a51f47ad061af2" }, "downloads": -1, "filename": "python_lichess-0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "6dfb9cd41e0a6da21c257f3b0f605fb3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 26178, "upload_time": "2019-06-09T00:22:38", "url": "https://files.pythonhosted.org/packages/47/7f/f35e7a3286f87b1f05b33b982e3807e3143a2b23a97646142a85d502206c/python_lichess-0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d9c247a9c25c618573cc7a557d94e62", "sha256": "ef5886eb2e89a4b13b9bcb645ba60d5abd210c2e8e70272772b9901a17e52377" }, "downloads": -1, "filename": "python-lichess-0.7.tar.gz", "has_sig": false, "md5_digest": "6d9c247a9c25c618573cc7a557d94e62", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7528, "upload_time": "2019-06-09T00:22:39", "url": "https://files.pythonhosted.org/packages/04/5d/829036c51f5f55a20ba3d384cf0b2ae49da28cf21b8ef2a39bebe9f73200/python-lichess-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "c2103ee49d1a00e97b8bae46f42776d3", "sha256": "0d63081a90d3a389f19d9e7dd68d4b01eebbce14d820419c8e863f7b12cee3ab" }, "downloads": -1, "filename": "python_lichess-0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "c2103ee49d1a00e97b8bae46f42776d3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 26178, "upload_time": "2019-06-09T00:26:06", "url": "https://files.pythonhosted.org/packages/f8/46/23abfa7779db5cdc490c06d01414d154e6ff84af890b5f7aca9bc807a35a/python_lichess-0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb93f43c408c5df6e2374634a023a912", "sha256": "2cb5d03a42e78227abdb238dbfdb8d7141d306f527df78ecdc1c940c3e98739d" }, "downloads": -1, "filename": "python-lichess-0.8.tar.gz", "has_sig": false, "md5_digest": "eb93f43c408c5df6e2374634a023a912", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7523, "upload_time": "2019-06-09T00:26:08", "url": "https://files.pythonhosted.org/packages/ed/e2/2aa24e9cab1bb40722dcd744080c6bcedca96f8bea8f9e2b2c01b9c7b338/python-lichess-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "72d8478cb2e1ea5dda7642b1eb7d5e4b", "sha256": "e33ae713d316fc52b2470fe9fd786b02bd7ea7a1310192029576bd466f09002d" }, "downloads": -1, "filename": "python_lichess-0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "72d8478cb2e1ea5dda7642b1eb7d5e4b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 21393, "upload_time": "2019-07-14T14:16:43", "url": "https://files.pythonhosted.org/packages/23/07/6cfaa4ef2649d705defc3e7c8ff7ed3a3bb467400325d00ad9da3acedf39/python_lichess-0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12b73818eb0a45433cc879d082207477", "sha256": "c25b6519d5948195b15f5141d5a50166f9e2d8eb87ba6da181a59acc5bc5fb14" }, "downloads": -1, "filename": "python-lichess-0.9.tar.gz", "has_sig": false, "md5_digest": "12b73818eb0a45433cc879d082207477", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7519, "upload_time": "2019-07-14T14:16:44", "url": "https://files.pythonhosted.org/packages/31/4a/5fda7663566aaffacdb763df3296b4bd9e7a3a93b6efbc8401f699343e99/python-lichess-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "72d8478cb2e1ea5dda7642b1eb7d5e4b", "sha256": "e33ae713d316fc52b2470fe9fd786b02bd7ea7a1310192029576bd466f09002d" }, "downloads": -1, "filename": "python_lichess-0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "72d8478cb2e1ea5dda7642b1eb7d5e4b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 21393, "upload_time": "2019-07-14T14:16:43", "url": "https://files.pythonhosted.org/packages/23/07/6cfaa4ef2649d705defc3e7c8ff7ed3a3bb467400325d00ad9da3acedf39/python_lichess-0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12b73818eb0a45433cc879d082207477", "sha256": "c25b6519d5948195b15f5141d5a50166f9e2d8eb87ba6da181a59acc5bc5fb14" }, "downloads": -1, "filename": "python-lichess-0.9.tar.gz", "has_sig": false, "md5_digest": "12b73818eb0a45433cc879d082207477", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7519, "upload_time": "2019-07-14T14:16:44", "url": "https://files.pythonhosted.org/packages/31/4a/5fda7663566aaffacdb763df3296b4bd9e7a3a93b6efbc8401f699343e99/python-lichess-0.9.tar.gz" } ] }