{ "info": { "author": "Alexander Freeman", "author_email": "alexander.freeman.nl@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "Terrabot\r\n========\r\n\r\nIntroduction\r\n------------\r\n\r\n|PyPI version|\r\n\r\n| Terrabot is a Terraria bot API written in Python.\r\n| It is designed to be easy to use and uses the event-listener pattern.\r\n\r\nInstallation\r\n------------\r\n\r\nInstall the module using pip:\r\n\r\n::\r\n\r\n pip3 install terrabot\r\n\r\nCurrent features\r\n----------------\r\n\r\n- Joining servers\r\n- Chatting\r\n- Triggering various events, like joining, tiledata and itemdrops\r\n- Parsing server data to keep classes up-to-date\r\n- Moving the bot by teleporting\r\n\r\nExamples\r\n--------\r\n\r\nThe following is a very basic bot, which will connect and handle chat.\r\n\r\n--------------\r\n\r\n.. code:: python\r\n\r\n from terrabot import TerraBot\r\n from terrabot.events import Events\r\n\r\n #Create a TerraBot object\r\n bot = TerraBot('127.0.0.1')\r\n event = bot.get_event_manager()\r\n\r\n #Connect a function to an event using a decorator\r\n @event.on_event(Events.Chat)\r\n def chat(event_id, msg):\r\n #Do something with the message\r\n #In this case, stop the bot if the word \"Stop\" occurs\r\n print(msg)\r\n if \"stop\" in msg:\r\n bot.stop()\r\n\r\n #Start the bot\r\n bot.start()\r\n\r\n #And wait\r\n while bot.running:\r\n pass\r\n\r\nMore examples can be found under the 'examples' directory. Also check\r\nthe wiki for more information about the inner workings of the bot and\r\nhow to interface with it.\r\n\r\nContributing\r\n------------\r\n\r\nIf you want to contribute, that's great! I would really appreciate the\r\nhelp. Just send a pull request and i'll quickly check and accept it.\r\nThese are some areas that need work:\r\n\r\n- NPC packet parsing\r\n- Item dropping\r\n- Teleporting other players (>:D)\r\n- Synchronizing packets like health and update-player-packets\r\n- Placing tiles (!)\r\n\r\nFor information about the packets, see `this\r\nlink `__.\r\n\r\n.. |PyPI version| image:: https://badge.fury.io/py/terrabot.svg\r\n :target: https://badge.fury.io/py/terrabot", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/flammified/terrabot", "keywords": "terraria bot event driven library", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "terrabot", "package_url": "https://pypi.org/project/terrabot/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/terrabot/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/flammified/terrabot" }, "release_url": "https://pypi.org/project/terrabot/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "A library for making Terraria bots in a event driven manner", "version": "1.0.3" }, "last_serial": 1876499, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4bd2c3c2893e94370f1920a202da2180", "sha256": "9588645716afb8d378f4b7678c3888adf7f04c4aa6f903591772b7b3a1ff125b" }, "downloads": -1, "filename": "terrabot-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4bd2c3c2893e94370f1920a202da2180", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9628, "upload_time": "2015-12-10T13:45:32", "url": "https://files.pythonhosted.org/packages/5c/fa/28f5e6b1eb3d69c6a8708a53e964b1018bbfb260cf38fe61dfbaca337fa7/terrabot-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3827a00401dc05bac85b800841b69f27", "sha256": "eaa9cccf93a2e7541c9b76a0462a03c147cde9e778a3a514cc43b206e92d6e03" }, "downloads": -1, "filename": "terrabot-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3827a00401dc05bac85b800841b69f27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9630, "upload_time": "2015-12-10T13:50:03", "url": "https://files.pythonhosted.org/packages/42/b9/8846c14091d9f7e49ba093838e9eef90746fbabb4c8332b5dd97a344ddf9/terrabot-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "2622719e7b3ce6da6901e0b4c68ebc53", "sha256": "2030431a2fefb0c06f58f6ee199a9604fbdf4ef8453bcce50d0a77e697e27bd4" }, "downloads": -1, "filename": "terrabot-1.0.2.tar.gz", "has_sig": false, "md5_digest": "2622719e7b3ce6da6901e0b4c68ebc53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10781, "upload_time": "2015-12-24T12:09:50", "url": "https://files.pythonhosted.org/packages/6a/7c/55aae90b8bd53fd9840a9822c1071e996717a8ec6a7ef4cb65cf3790dbac/terrabot-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e20232cb12005828a305ef859cc41c9d", "sha256": "970df3020df5c2a3de5e8ac8c32dbbeaf46f960c1454b378f98196aac6f05b8d" }, "downloads": -1, "filename": "terrabot-1.0.3.tar.gz", "has_sig": false, "md5_digest": "e20232cb12005828a305ef859cc41c9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11839, "upload_time": "2015-12-24T12:12:56", "url": "https://files.pythonhosted.org/packages/c1/6d/9d66ca75a6b9aaf93593aed4d8ba47586e9f2bfe47678b27e01bc8e8f46d/terrabot-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e20232cb12005828a305ef859cc41c9d", "sha256": "970df3020df5c2a3de5e8ac8c32dbbeaf46f960c1454b378f98196aac6f05b8d" }, "downloads": -1, "filename": "terrabot-1.0.3.tar.gz", "has_sig": false, "md5_digest": "e20232cb12005828a305ef859cc41c9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11839, "upload_time": "2015-12-24T12:12:56", "url": "https://files.pythonhosted.org/packages/c1/6d/9d66ca75a6b9aaf93593aed4d8ba47586e9f2bfe47678b27e01bc8e8f46d/terrabot-1.0.3.tar.gz" } ] }