{ "info": { "author": "Xavier Codinas", "author_email": "xavier19966@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "[![PyPI version](https://badge.fury.io/py/apex-legends.svg)](https://badge.fury.io/py/apex-legends)\n\n# apex-legends\nPython wrapper for https://apex.tracker.gg/ api.\n\n## Installation\n\nYou can install it via setup.py\n\n```\npython setup.py install\n```\n\nor from pip:\n\n```\npip install apex-legends\n```\n\n\n## Usage\n\nYou need to register for an api key at https://apex.tracker.gg/\n\nThen it's just easy as:\n\n```\nfrom apex_legends import ApexLegends\n\napex = ApexLegends(\"apex_api_key\")\n\nplayer = apex.player('NRG_dizzy')\n\nprint(player)\n\nfor legend in player.legends:\n print(legend.legend_name)\n print(legend.icon)\n print(legend.damage)\n```\n\n## Asynchronous Calls\n\nFor those who wish to use this API wrapper for their asynchronous applications, you may do so by calling the `AsyncLegends` class.\n\n**WARNING**: This portion of the wrapper is for use with Python version 3.5+. [PEP 492](https://www.python.org/dev/peps/pep-0492/) released the keywords `async` and `await`, as well as the magic methods `__aenter__` and `__aexit__`, which this portion of the wrapper takes advantage of. This results in the asynchronous class not being compatible with Python versions 3.4 and lower.\n\n```py\nimport asyncio\n\nfrom apex_legends import AsyncLegends\nfrom apex_legends.domain import Platform\n\nmy_api_key = 'https://apex.tracker.gg api key here'\n\n\nasync def main(api_key, player_name, platform=None):\n async with AsyncLegends(api_key) as apex:\n player = await apex.player(player_name, platform=platform if platform else Platform.PC)\n return player\n\nloop = asyncio.get_event_loop()\nresult = loop.run_until_complete(main(my_api_key, player_name='NRG_dizzy'))\n\nprint(result)\n\nfor legend in result.legends:\n print(legend.legend_name)\n print(legend.icon)\n print(getattr(legend, 'damage', 'Damage not found.'))\n```", "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/xcodinas/apex-legends", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "apex-legends", "package_url": "https://pypi.org/project/apex-legends/", "platform": "", "project_url": "https://pypi.org/project/apex-legends/", "project_urls": { "Homepage": "https://github.com/xcodinas/apex-legends" }, "release_url": "https://pypi.org/project/apex-legends/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper for https://apex.tracker.gg/ api.", "version": "0.1.5" }, "last_serial": 5092903, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d4aebb5137e7a93870d53cf053f5ce8f", "sha256": "e9ad15795a31cf5464500e14bfe9c55cfdca249b4ea5dd08c56ea8393e6770c1" }, "downloads": -1, "filename": "apex-legends-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d4aebb5137e7a93870d53cf053f5ce8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2814, "upload_time": "2019-02-20T10:19:04", "url": "https://files.pythonhosted.org/packages/3d/e6/5f1fe79e94658f2d46376cf5bd5e46ffeffe88e89b517f0153a0455affc1/apex-legends-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "07c68ea0f1e699bab562c77dabd3a9a4", "sha256": "f8dded8696e23f3c279324c32bae19020856e62d43d62a2ce17382ec856c17a4" }, "downloads": -1, "filename": "apex-legends-0.1.1.tar.gz", "has_sig": false, "md5_digest": "07c68ea0f1e699bab562c77dabd3a9a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2893, "upload_time": "2019-02-20T10:38:08", "url": "https://files.pythonhosted.org/packages/cf/49/7624743b4d41a3059fd8e209865e03792eb8a8506f44a13f2806a36567b4/apex-legends-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "16a5868cdd822fd9693476efccfb9fcf", "sha256": "83b96bd440e5ed9b6f10c7a5b8e18ca6c05d783dbf6b44114e8ba5851d827b10" }, "downloads": -1, "filename": "apex-legends-0.1.2.tar.gz", "has_sig": false, "md5_digest": "16a5868cdd822fd9693476efccfb9fcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3018, "upload_time": "2019-02-20T14:32:32", "url": "https://files.pythonhosted.org/packages/c3/a6/c35dd9517aa3b20c3c665fd7e0bb7d2b3ca24db2332c69f9e5c837bda613/apex-legends-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "7f121d576fecf35b7e653397e741ad9c", "sha256": "67949164f51b31cebf3a5f431d0b723f6b99a9c5939235e182acb1aec98b418b" }, "downloads": -1, "filename": "apex-legends-0.1.3.tar.gz", "has_sig": false, "md5_digest": "7f121d576fecf35b7e653397e741ad9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3058, "upload_time": "2019-02-21T14:40:06", "url": "https://files.pythonhosted.org/packages/84/f3/cec3b50ffe81acb9bb0a8a0a182c82e80637e34c0704ab43732422822b41/apex-legends-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "cac832b01bbd6df5408daffa381e78e8", "sha256": "65920998c455c960422bfd51595f6072525cafebfd17b8a396ea6f83335c7050" }, "downloads": -1, "filename": "apex-legends-0.1.4.tar.gz", "has_sig": false, "md5_digest": "cac832b01bbd6df5408daffa381e78e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3794, "upload_time": "2019-03-21T08:26:22", "url": "https://files.pythonhosted.org/packages/03/ce/cecf476978774eb0fcae823d02d5ecc14fa3e04b11e0965d31b7b98ee01c/apex-legends-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "3dc4b66dc0ae298c62132daba75cb2c3", "sha256": "0c15d5ade18e902c2c7b93f10f5b2362a3f041ed90e574bdb350d3d76e89eb21" }, "downloads": -1, "filename": "apex-legends-0.1.5.tar.gz", "has_sig": false, "md5_digest": "3dc4b66dc0ae298c62132daba75cb2c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3865, "upload_time": "2019-04-03T20:53:59", "url": "https://files.pythonhosted.org/packages/d6/9a/395303d983acc5fcf55dd16ceefad3df4970f1b03fde4288317fa948c993/apex-legends-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3dc4b66dc0ae298c62132daba75cb2c3", "sha256": "0c15d5ade18e902c2c7b93f10f5b2362a3f041ed90e574bdb350d3d76e89eb21" }, "downloads": -1, "filename": "apex-legends-0.1.5.tar.gz", "has_sig": false, "md5_digest": "3dc4b66dc0ae298c62132daba75cb2c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3865, "upload_time": "2019-04-03T20:53:59", "url": "https://files.pythonhosted.org/packages/d6/9a/395303d983acc5fcf55dd16ceefad3df4970f1b03fde4288317fa948c993/apex-legends-0.1.5.tar.gz" } ] }