{ "info": { "author": "Sebastian Rahlf", "author_email": "basti AT redtoad DOT de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Topic :: Games/Entertainment :: Turn Based Strategy" ], "description": "=====================================\nPython wrapper for the Weewar XML API\n=====================================\n\nWeewar (http://weewar.com) is an \"Award winning turn based multiplayer strategy\ngame\". Apart from being highly addictive, it provides 2 APIs: \n\n- one read-only API for players and \n- a bot API called ELIZA \n\nFurther documentation on both is available at http://weewar.wikispaces.com/api. \n\nThis module aims enables you to conveniently call each of these API functions\nfrom within your python script.\n\nAvailable API calls\n-------------------\n\nThe following functions are supplied:\n\n- ``game(id)`` returns the status of a game and gives information about the\n participating players.\n \n- ``open_games()`` returns all currently available open games as a list of IDs.\n \n- ``all_users()`` returns a list of all users who have been online in the last\n 7 days, including their current ranking.\n \n- ``user(username)`` Returns detailed information about a single user,\n including everything that is visible on the profile page and the games the\n user is participating in.\n\n- ``latest_maps()`` returns the latest published maps including urls for\n previews, images, and other details.\n \n- ``headquarter(username, apikey)`` returns all games that are listed in your\n Headquarters. Includes information about the id, the url, the state, and the\n name of the game. An attribute is added if the game is in need of attention,\n e.g: its the users turn or the game is not yet started or the user is invited\n to this game (requires authentication).\n\n- ``game_state(username, apikey, id)`` offers more information about the state\n of a game (requires authentication).\n\n- ``map_layout(id)`` returns complete map layout.\n\nEach game can also be controlled via these commands (which are part of the\nELIZA API):\n\n- ``finish_turn(username, apikey, id)`` finishes turn in game.\n\n- ``accept_invitation(username, apikey, id)`` accepts invitation to a game.\n\n- ``decline_invitation(username, apikey, id)`` declines invitation to a game.\n\n- ``send_reminder(username, apikey, id)`` sends a reminder about the game.\n\n- ``surrender_game(username, apikey, id)`` surrenders!\n\n- ``abandon_game(username, apikey, id)`` abondons a game.\n\n- ``remove_game(username, apikey, id)`` removes a game.\n\n- ``chat(username, apikey, game_id, msg)`` sends a chat message to the game\n board.\n\n- ``build_unit(username, apikey, game_id, (x, y), unit)`` sends a chat message\n to the game board.\n\n- ``unit_move_options(username, apikey, game_id, unit, (x, y))`` requests unit\n movement options. This is pretty much like what you get when you select a\n unit in a regular game.\n\n- ``unit_attack_options(username, apikey, game_id, unit, (x, y), moved=None)``\n requests possible targets. The 'moved' attribute is optional and describes\n the number of turns a unit has already moved. This is helpful for Jets and\n Battleships.\n\n- ``move_unit(username, apikey, game_id, unit, from, to)`` moves a unit.\n \n- ``attack_with(username, apikey, game_id, unit, from, target)`` attacks target\n with unit at specified location.\n \n- ``capture_base(username, apikey, game_id, unit, at)`` captures a base with\n unit. You have to move there first! \n\n- ``repair_unit(username, apikey, game_id, unit, at)`` repairs a unit. \n\nAuthentication\n--------------\n\nSome of the provided functions require a username and a password. Use your\nWeewar account username and the API token accessible via\nhttp://weewar.com/apiToken.\n\nLicense\n-------\n\nThe code for this module is released under the GNU LESSER GENERAL PUBLIC\nLICENSE Version 3.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/basti/python-weewar/downloads/", "keywords": null, "license": "lgpl", "maintainer": null, "maintainer_email": null, "name": "python-weewar", "package_url": "https://pypi.org/project/python-weewar/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-weewar/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/basti/python-weewar/downloads/" }, "release_url": "https://pypi.org/project/python-weewar/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for the Weewar XML API", "version": "0.3.1" }, "last_serial": 227283, "releases": { "0.2": [], "0.3": [], "0.3.1": [ { "comment_text": "", "digests": { "md5": "e92df3e2c3566d29c045cc2309f7e53a", "sha256": "1c4e48e40dbad3ff6760cb1b4acfadb6268e71f06159d6f9f79d93fb8e806914" }, "downloads": -1, "filename": "python-weewar-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e92df3e2c3566d29c045cc2309f7e53a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11705, "upload_time": "2010-11-29T14:25:59", "url": "https://files.pythonhosted.org/packages/ce/28/0a176bf34db74fb3eea41f92f8f417b6f5dbcb2fd0a408eab0b4aac67703/python-weewar-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e92df3e2c3566d29c045cc2309f7e53a", "sha256": "1c4e48e40dbad3ff6760cb1b4acfadb6268e71f06159d6f9f79d93fb8e806914" }, "downloads": -1, "filename": "python-weewar-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e92df3e2c3566d29c045cc2309f7e53a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11705, "upload_time": "2010-11-29T14:25:59", "url": "https://files.pythonhosted.org/packages/ce/28/0a176bf34db74fb3eea41f92f8f417b6f5dbcb2fd0a408eab0b4aac67703/python-weewar-0.3.1.tar.gz" } ] }