{ "info": { "author": "Hank Meng", "author_email": "ymenghank@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "\n# GoBattleSim Engine with Python API\n\nA Pokemon Go Battle Simulator (GoBattleSim) with Python API.\n\n## Getting Started\n\n### Prerequisites\n\n64-bit Windows/Linux\n\n64-bit Python 3.5+\n\n### Installing\n\nThe below instructions will get you a local version of GoBattleSim engine.\n\nFirst, install the package:\n\n```\npip install gobattlesim\n```\n\nThen:\n\n```\nimport gobattlesim.interface\n```\n\nIf no error pops up, then you are good to go!\n\nSome of the common errors include:\n\n```\nWindowsError: ... not a valid Win32 application\n```\n\nThis could be that your Python is 32-bit. I only compiled the simulator core into a 64-bit DLL. Therefore, again, 64-bit Python is required.\n\n## Quick Start\n\nThe `gobattlesim.interface` module saves a lot of typing. To use the module, you need to first acquire a game master file in json format.\nYou can find one in sources online such as [this repo](https://github.com/pokemongo-dev-contrib/pokemongo-game-master).\n\nSuppose the game master file is \"GAME_MASTER.json\" and is placed in the same folder with your script. Then do:\n\n```\nimport gobattlesim.interface as gbs\n\ngbs.GameMaster(\"GAME_MASTER.json\").apply()\n```\n\nNow game master file has been parsed and applied to the simulator.\n\nLet's run some simulations on the classic Tyranitar Duo with two teams of max perfect Machamp:\n\n```\nresult = gbs.quick_raid_battle(\n {\n \"name\": \"machamp\",\n \"fmove\": \"counter\",\n \"cmove\": \"dynamic punch\"\n },\n {\n \"name\": \"tyranitar\",\n \"fmove\": \"bite\",\n \"cmove\": \"crunch\",\n \"tier\": 4\n },\n player_multiplier=2\n)\n\nprint(\"Machamp duo T4 Tyranitar:\")\nprint(result)\n\n```\n\nThe `result` is a dict containing some performance metrics. An example output could be:\n\n```\nMachamp duo T4 Tyranitar:\n{'win': 1.0, 'duration': 130157.966, 'tdo_percent': 1.010376666666664, 'num_deaths': 3.506}\n```\n\nOne may find `gobattlesim.interface.quick_raid_battle` (and `gobattlesim.interface.quick_pvp_battle`) rather limited, \nand may want more control on the simulations. If so, the `gobattlesim.engine` is best for this purpose.\n\nMore [examples](https://github.com/ymenghank/GoBattleSim-Python/tree/master/examples) of using `gobattlesim.engine` alone to run simulations have been given in the repo.\n\n\n## Documentations\n\nComing up!\n\n\n## Contributing\n\nThe feature requests and known bugs are listed in the [issues](https://github.com/ymenghank/GoBattleSim-Python/issues) section.\nYou are more than welcome to help by adding items to that list!\n\nNote that this repo is the interface part of the simulator. The core part that contains the actual battle logic will be in another repo.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ymenghank/GoBattleSim-Python/tags). \n\n## Author\n\n* **Hank Meng** - *Initial work* - [BIOWP](https://github.com/ymenghank)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n* [Web GoBattleSim](https://github.com/ymenghank/GoBattleSim) has been for over a year. A lot of improvements have been made, but the key issue persists - speed performance. \nSo I wanted to make a faster one. I want to make it fly. And there it is, core engine written in C++, exported as DLL, and wrapped in Python.\n\n\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/ymenghank/GoBattleSim-Python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "gobattlesim", "package_url": "https://pypi.org/project/gobattlesim/", "platform": "", "project_url": "https://pypi.org/project/gobattlesim/", "project_urls": { "Homepage": "https://github.com/ymenghank/GoBattleSim-Python" }, "release_url": "https://pypi.org/project/gobattlesim/0.7.2/", "requires_dist": null, "requires_python": "", "summary": "A Pokemon Go Battle Simulator wrapped in Python", "version": "0.7.2" }, "last_serial": 5322428, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "9b9dbb7f881ffd0832885a8696ea326b", "sha256": "67c2818654d479f2791b4921a85182b6d10a62abe22a0e16358f30efe2bae942" }, "downloads": -1, "filename": "gobattlesim-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9b9dbb7f881ffd0832885a8696ea326b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 43507, "upload_time": "2019-05-09T18:54:23", "url": "https://files.pythonhosted.org/packages/86/67/0f59fbf8a273ee6195b7c9a68f1f81129f805e224cb59eb94ab03c057957/gobattlesim-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "828569b75d15dc88872e04fe11c9d7d0", "sha256": "75f89f0fd8d763e67ad86267df2dc73e9d103a7797df48065302f7ec7cf59979" }, "downloads": -1, "filename": "gobattlesim-0.2.0.tar.gz", "has_sig": false, "md5_digest": "828569b75d15dc88872e04fe11c9d7d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43470, "upload_time": "2019-05-09T18:54:24", "url": "https://files.pythonhosted.org/packages/00/93/7b9edf8058d317a8c026d218eb8c24a64836765b21218e3f9974659a7fb9/gobattlesim-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "e7c256d2fad8e003fa84a5a0ddaf7a8a", "sha256": "561894e39989eb05c4377663372b2b2c3c04e8d541acebec2ba33827b1b8737a" }, "downloads": -1, "filename": "gobattlesim-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e7c256d2fad8e003fa84a5a0ddaf7a8a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 91654, "upload_time": "2019-05-11T20:32:23", "url": "https://files.pythonhosted.org/packages/d0/fa/f1dc057301e629e72b547898fb829b9d2dee0a3373f87d13c2c6cfc44020/gobattlesim-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "556931c06e7b731b5b66823a6b063f50", "sha256": "77809babe8eced06bebeb25c067c9f4bd369204cb5149cdbddc734a70262c0a1" }, "downloads": -1, "filename": "gobattlesim-0.3.0.tar.gz", "has_sig": false, "md5_digest": "556931c06e7b731b5b66823a6b063f50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91784, "upload_time": "2019-05-11T20:32:25", "url": "https://files.pythonhosted.org/packages/3f/dd/d5d2cbd95477ba0c2a7420eaff3d8cb4ad42cda06f53858758f9cd483b05/gobattlesim-0.3.0.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "17880e92e356782631b238e4badb9d41", "sha256": "a4ded85c23beb44d11f24277c92dfe4eeadde0b60cac9fdb9690fcd665d0f2b3" }, "downloads": -1, "filename": "gobattlesim-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "17880e92e356782631b238e4badb9d41", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 99228, "upload_time": "2019-05-14T20:01:26", "url": "https://files.pythonhosted.org/packages/8b/a8/ec16dcda18ca16950161ac3c3e80a6d05d21bee854b39ef7a0c871659126/gobattlesim-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9184f1d794aa08d3c6ac05f464f2c167", "sha256": "ccd81611e989939ded9b7a5b5675d9344c1da38bf465fa8186e1e5fdb9f853c5" }, "downloads": -1, "filename": "gobattlesim-0.4.2.tar.gz", "has_sig": false, "md5_digest": "9184f1d794aa08d3c6ac05f464f2c167", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 99548, "upload_time": "2019-05-14T20:01:28", "url": "https://files.pythonhosted.org/packages/ac/a7/d184a2557caaf7e33d4dbd3fe991c48d8af029abedb8f3a7876f862578ad/gobattlesim-0.4.2.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "5c0dd869a2dd8d24cd50eff24f47123b", "sha256": "55c283afbeb37fae159ee0f9d8d9b851b039d87c451b6d6e677a7c63f6b69c88" }, "downloads": -1, "filename": "gobattlesim-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5c0dd869a2dd8d24cd50eff24f47123b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 99590, "upload_time": "2019-05-16T20:05:54", "url": "https://files.pythonhosted.org/packages/a1/f9/ffe11ae720c14832d79da6655f72ad1ffdf7ad3e759b8710bcba514d7c1b/gobattlesim-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2dc7f372f3a7af309fabb67ad1d2c3f5", "sha256": "f2873d1dd753a68f0f55dafad6a78f3fe22068ad571ca7151570bcfd722bf576" }, "downloads": -1, "filename": "gobattlesim-0.5.0.tar.gz", "has_sig": false, "md5_digest": "2dc7f372f3a7af309fabb67ad1d2c3f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 99902, "upload_time": "2019-05-16T20:05:56", "url": "https://files.pythonhosted.org/packages/8b/4c/b56b872fc640ff5102321b8e5f5fb1312113cd787a356c05cfdaee230f4a/gobattlesim-0.5.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "38793446c1b6716410d8923c268c2017", "sha256": "76c2f247dbd53db214f0fec4241bdea0b0d8036b3a641c1b590227228265993c" }, "downloads": -1, "filename": "gobattlesim-0.6.1-py3-none-any.whl", "has_sig": false, "md5_digest": "38793446c1b6716410d8923c268c2017", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 99769, "upload_time": "2019-05-21T15:22:43", "url": "https://files.pythonhosted.org/packages/b7/ee/f68fbba5bc18ddf8b87c69c60132fa5ca2bda96107c8feb4b27a0e2a4675/gobattlesim-0.6.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1297eeb5f3b784984128ec19876d30a9", "sha256": "19feed8876e770d3e2d5d20edc401763ec576a218dc194025c5d5d33aff8c006" }, "downloads": -1, "filename": "gobattlesim-0.6.1.tar.gz", "has_sig": false, "md5_digest": "1297eeb5f3b784984128ec19876d30a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 100126, "upload_time": "2019-05-21T15:22:45", "url": "https://files.pythonhosted.org/packages/31/94/edb2ec14a5ebcda6ba1b0afcd8c0b68b5400a90632203c3e2669797d58d7/gobattlesim-0.6.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "2951e604dc07db9d4533a77f575fb873", "sha256": "aec7b11113ebf777b153eaf252d4595d4d58c638ea1bf54c5689699a3ba04108" }, "downloads": -1, "filename": "gobattlesim-0.7.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2951e604dc07db9d4533a77f575fb873", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 100071, "upload_time": "2019-05-27T13:52:50", "url": "https://files.pythonhosted.org/packages/f8/80/23c51ffc674ba352302c8b3300999da130f522eef4360e84f833091c48d4/gobattlesim-0.7.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64f6a6cc76a285b445a4588f55cf5934", "sha256": "1a10e7020656b992aae74721b0d1aaf503047906aa62b47209e0e9b8c43b6343" }, "downloads": -1, "filename": "gobattlesim-0.7.2.tar.gz", "has_sig": false, "md5_digest": "64f6a6cc76a285b445a4588f55cf5934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 100282, "upload_time": "2019-05-27T13:52:52", "url": "https://files.pythonhosted.org/packages/38/16/f2c40d0354471f43d05b2e7ba4f4474ab2b6313f3fd2a9da715c5ae01fa3/gobattlesim-0.7.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2951e604dc07db9d4533a77f575fb873", "sha256": "aec7b11113ebf777b153eaf252d4595d4d58c638ea1bf54c5689699a3ba04108" }, "downloads": -1, "filename": "gobattlesim-0.7.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2951e604dc07db9d4533a77f575fb873", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 100071, "upload_time": "2019-05-27T13:52:50", "url": "https://files.pythonhosted.org/packages/f8/80/23c51ffc674ba352302c8b3300999da130f522eef4360e84f833091c48d4/gobattlesim-0.7.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64f6a6cc76a285b445a4588f55cf5934", "sha256": "1a10e7020656b992aae74721b0d1aaf503047906aa62b47209e0e9b8c43b6343" }, "downloads": -1, "filename": "gobattlesim-0.7.2.tar.gz", "has_sig": false, "md5_digest": "64f6a6cc76a285b445a4588f55cf5934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 100282, "upload_time": "2019-05-27T13:52:52", "url": "https://files.pythonhosted.org/packages/38/16/f2c40d0354471f43d05b2e7ba4f4474ab2b6313f3fd2a9da715c5ae01fa3/gobattlesim-0.7.2.tar.gz" } ] }