{ "info": { "author": "Kent Coble", "author_email": "coblekent@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "`WOTConsole `_\n=================================================================\n\nIntroduction\n------------\n\nWOTConsole is a Python module for interacting with the Wargaming's developer\nAPI, specifically for the `World of Tanks - Console \n`_ game. It is a tool designed for convenience\nand ease-of-use.\n\n|docs|\n\nWhy create another API wrapper?\n-------------------------------\n\nWhile Wargaming offers their own API wrapper, and another was built by a\nthird-party, they respectively do not have the WOTX (World of Tanks Console)\nendpoints or do not have sufficient documentation to understand how to fully\nutilize their libraries. As such, I took it upon myself to create one that was\nthorough and easy to use.\n\nWhy not stick with :py:mod:`~.requests`?\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nWhile the ``requests`` library may suffice for\ngeneral use, it can be a bit of a pain having to remember what parameters\nshould be sent and what the URL endpoint is. It's also inconvenient when\ntrying to code offline. This module has all of this documented and will track\nthe URLs for you.\n\n`Eww, Python! `_\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nGrow up ;)\n\nWhat can it do?\n---------------\n\nWOTConsole is designed for convenience to the developer. Let's say that you're\nneeding to search for a tank.\n\nThis module intends to address some of these issues and even those that most\ndevelopers may not care for. We can rewrite the code as follows:\n\n.. code:: python\n\n >>> from __future__ import print_function\n >>> from copy import copy\n >>> from wotconsole import tank_info\n\n >>> apikey = 'demo'\n\n # You can specify the platform and language you want.\n >>> psinfo = vehicle_info(apikey, tank_id='1', fields=['short_name',\n ... 'tier', 'type', 'nation'], api_realm='ps4', language='ru')\n\n # Some parameters accept lists of multiple types\n >>> xinfo = tank_info(apikey, tank_id=[1, '257'])\n >>> print type(psinfo)\n \n\n # The data returned was a dictionary; the WOTXResponse will behave as one\n >>> for tank_id, data in psinfo.iteritems(): \n ... print(tank_id, data)\n 1 {u'tier': 5, u'type': u'mediumTank', u'short_name': u'T-34',\n u'nation': u'ussr'}\n\n # You can directly access the data using indices\n >>> print(xinfo['1']['short_name'])\n T-34\n >>> print(xinfo['257']['short_name'])\n SU-85\n\n # Should you need to `copy` the data, access it as an attribute\n >>> copied = copy(xinfo.data)\n >>> print(type(copied))\n \n\n >>> try:\n ... vehicle_info(apikey, tank_id='A')\n\n >>> except WOTXResponseError as wat:\n # If an error occurs from bad parameters being sent to the API, the\n # `Exception` will instead use the error message sent back in the JSON.\n ... print(wat)\n INVALID_TANK_ID\n\n # The JSON becomes part of the `Exception`, allowing for debugging even\n # outside of a method's scope.\n ... print(wat.error['code'])\n 407\n ... print(wat.error['field'])\n tank_id\n\n # Both `WOTXResponse` and `WOTXResponseError` save the original\n # `requests` instance, just in case the developer wishes to review the\n # parameters, URL, etc.\n ... print(type(wat.raw))\n \n\nWhat improvements will we see?\n------------------------------\n\nAn up-to-date list of planned features will always be in the\n:file:`TODO.rst` file. Currently it contains:\n\n.. include:: TODO.rst\n\n.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest\n :alt: Documentation Status\n :scale: 100%\n :target: https://wotconsole.readthedocs.io/en/latest/?badge=latest\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/kamakazikamikaze/wotconsole", "keywords": "", "license": "LICENSE.TXT", "maintainer": "", "maintainer_email": "", "name": "wotconsole", "package_url": "https://pypi.org/project/wotconsole/", "platform": "", "project_url": "https://pypi.org/project/wotconsole/", "project_urls": { "Homepage": "https://bitbucket.org/kamakazikamikaze/wotconsole" }, "release_url": "https://pypi.org/project/wotconsole/0.4/", "requires_dist": [ "requests (>=2.12.4)" ], "requires_python": "", "summary": "WarGaming World of Tanks Console API Wrapper", "version": "0.4" }, "last_serial": 3363302, "releases": { "0.1.dev0": [ { "comment_text": "", "digests": { "md5": "1481e5e0860275c00464685f6a6f478a", "sha256": "0e74722379d1ee394b16747768a483076035848b8984eed87417a459a68e9f8d" }, "downloads": -1, "filename": "wotconsole-0.1.dev0-py2.7.egg", "has_sig": false, "md5_digest": "1481e5e0860275c00464685f6a6f478a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1066, "upload_time": "2017-05-26T16:07:22", "url": "https://files.pythonhosted.org/packages/26/dc/7ba67d7d37102979bcc88606a3ea1d055d5ebcd54529af09f7d8a3e30071/wotconsole-0.1.dev0-py2.7.egg" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "aa633e83d9bbfeb41609649864c5ee69", "sha256": "a9a42995dafeb7d042be3712893dbf52a0312aa7500cc8666f722b2a51fb0519" }, "downloads": -1, "filename": "wotconsole-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "aa633e83d9bbfeb41609649864c5ee69", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9904, "upload_time": "2017-01-15T21:58:51", "url": "https://files.pythonhosted.org/packages/b3/b2/c486d1051d4a535259ec340fea424e63def27ea8258087f1a0939f5bf8a9/wotconsole-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c096952dea7a3cdc69e539bb47788f3d", "sha256": "d98daffa7c1e2cf1af61cff2d5c02d753ce34d28bc076387da640d6f3817232c" }, "downloads": -1, "filename": "wotconsole-0.2.tar.gz", "has_sig": false, "md5_digest": "c096952dea7a3cdc69e539bb47788f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9086, "upload_time": "2017-01-15T21:58:53", "url": "https://files.pythonhosted.org/packages/17/22/fcbd764e8de18eced0d302a196df7392d8d7c7c0defdaa501c4e07f69569/wotconsole-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e3ec3f835a4391479ae505ef7f9cc59a", "sha256": "901d6a19f14ac2eebb9beae55f607958f697411cfc72a90760d391cfa791146a" }, "downloads": -1, "filename": "wotconsole-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e3ec3f835a4391479ae505ef7f9cc59a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10177, "upload_time": "2017-05-26T16:07:21", "url": "https://files.pythonhosted.org/packages/0d/41/da8d8f74188dffea1249bbcd0059a31241b9a2270cbfa73289d52811cd06/wotconsole-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a79e911f91ca04d507f125b3cb2181c3", "sha256": "f351afd02f2d72d57848c801f1aecf41cb73d49f75b6b33f30b3e78ee2a23e23" }, "downloads": -1, "filename": "wotconsole-0.2.1.tar.gz", "has_sig": false, "md5_digest": "a79e911f91ca04d507f125b3cb2181c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9318, "upload_time": "2017-05-26T16:07:23", "url": "https://files.pythonhosted.org/packages/06/2d/bea574d71d10aad0d790f632f52166ffc5a8b6cf983c71285ed4e2c700da/wotconsole-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "9676c8e09b0a3a1553ffc9166955aa0f", "sha256": "cbe58be6d336afbf72ee84f84dba9f44a82d686c72d0f5d4ff72ca4fc8390ab3" }, "downloads": -1, "filename": "wotconsole-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9676c8e09b0a3a1553ffc9166955aa0f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10170, "upload_time": "2017-07-08T16:01:32", "url": "https://files.pythonhosted.org/packages/4e/2d/390d9cc2b3d8fc0dd6922bbecddeca609782f9c324b86a2f3499a01403d2/wotconsole-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3bca8f4f8c8f0473393e55cad20a6b14", "sha256": "560770a9f4e9009afcb406df48bcdac104d86ee13633bb6d133238981b8676a8" }, "downloads": -1, "filename": "wotconsole-0.2.2.tar.gz", "has_sig": false, "md5_digest": "3bca8f4f8c8f0473393e55cad20a6b14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9312, "upload_time": "2017-07-08T16:01:33", "url": "https://files.pythonhosted.org/packages/9e/0d/d67bd35b55443f236c8e0a732e021e3580d93b441c3eb69d7501b073deb5/wotconsole-0.2.2.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "951f218289927777f6d6715edd544f24", "sha256": "79332ae93ee6e4fa29f1d102dcb0ebe3b8d06136b44da1b921e7b99d234e45e4" }, "downloads": -1, "filename": "wotconsole-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "951f218289927777f6d6715edd544f24", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16067, "upload_time": "2017-11-25T18:06:44", "url": "https://files.pythonhosted.org/packages/5f/14/9f02eedc1dbf350db68542c92fbe0b87fdd3eb9c1fdc16dd26b0533f9f4c/wotconsole-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0386d0c34b23e4f259f166019cd4bcf", "sha256": "2404966dd94e56ffc62478151c3ac0be88cf5e724c4af77e3a241aaa78c923d1" }, "downloads": -1, "filename": "wotconsole-0.4.tar.gz", "has_sig": false, "md5_digest": "b0386d0c34b23e4f259f166019cd4bcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14130, "upload_time": "2017-11-25T18:06:47", "url": "https://files.pythonhosted.org/packages/08/ae/660f911414a6422540112597513fcba63b3f174f1aa23659199003dccd4e/wotconsole-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "951f218289927777f6d6715edd544f24", "sha256": "79332ae93ee6e4fa29f1d102dcb0ebe3b8d06136b44da1b921e7b99d234e45e4" }, "downloads": -1, "filename": "wotconsole-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "951f218289927777f6d6715edd544f24", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16067, "upload_time": "2017-11-25T18:06:44", "url": "https://files.pythonhosted.org/packages/5f/14/9f02eedc1dbf350db68542c92fbe0b87fdd3eb9c1fdc16dd26b0533f9f4c/wotconsole-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0386d0c34b23e4f259f166019cd4bcf", "sha256": "2404966dd94e56ffc62478151c3ac0be88cf5e724c4af77e3a241aaa78c923d1" }, "downloads": -1, "filename": "wotconsole-0.4.tar.gz", "has_sig": false, "md5_digest": "b0386d0c34b23e4f259f166019cd4bcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14130, "upload_time": "2017-11-25T18:06:47", "url": "https://files.pythonhosted.org/packages/08/ae/660f911414a6422540112597513fcba63b3f174f1aa23659199003dccd4e/wotconsole-0.4.tar.gz" } ] }