{ "info": { "author": "Tristan Kernan", "author_email": "russon77@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "=============================\nHearthstone Arena Log Watcher\n=============================\nTo use (with caution), simply do::\n\n >>> from hearthstonearenalogwatcher import HearthstoneArenaLogWatcher\n >>> halw = HearthstoneArenaLogLocation(log_folder=\"log folder\")\n >>> for event in halw.event_generator(speed=1): # get events at most once per second (rate = 1 / speed)\n >>> if event.type == HearthstoneArenaLogWatcher.Event.ENTERED_ARENA:\n >>> # event.date is an ArenaDraft object, containing hero, drafted cards, and whether the draft is over.\n >>> arena_state = event.data\n >>> # do something interesting\n >>> elif event.type == HearthstoneArenaLogWatcher.Event.EXITED_ARENA:\n >>> pass\n\nAnd so on for the following events:\n\n- ENTERED_ARENA\n- EXITED_ARENA\n- HERO_SELECTED\n- CARD_DRAFTED\n- DRAFT_ENDED\n\nEvent Objects\n*************\nEvent objects contain the following attributes:\n\n- ``type``: one of the enumerated types listed just above\n- ``data``: an ArenaDraft object, containing the following attributes\n - ``.drafted``: list of cards currently in player's deck, in order of selection\n - ``.hero``: None or String representation of currently selected hero. Hero names are\n - \"priest\"\n - \"mage\"\n - \"warlock\",\n - \"druid\",\n - \"hunter\",\n - \"paladin\",\n - \"rogue\",\n - \"shaman\",\n - \"warrior\"\n - ``.draft_over``: boolean, whether draft contains thirty (30) cards.\n\nIt's that simple!\n\nErrors\n^^^^^^\nFileNotFoundError\n*****************\nRaised when the passed parameter ``log_location`` is invalid and a log file is attempted to be accessed.\n\nTests and Examples\n^^^^^^^^^^^^^^^^^^\nCheck out the ``tests`` folder for examples of different logs and how they are parsed by the module. The tests are\ndivided into two categories: ``get_state_of_current_log()`` and ``get_state_of_current_screen()``.\n\nLicense\n^^^^^^^\nThe MIT License (MIT)\n\nCopyright (c) 2016 Tristan Kernan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including without\nlimitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the\nSoftware, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\nOR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.github.com/russon77/hearthstonearenalogwatcher", "keywords": "hearthstone", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "hearthstonearenalogwatcher", "package_url": "https://pypi.org/project/hearthstonearenalogwatcher/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hearthstonearenalogwatcher/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://www.github.com/russon77/hearthstonearenalogwatcher" }, "release_url": "https://pypi.org/project/hearthstonearenalogwatcher/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "provide an interface for getting hearthstone arena events: entering, exiting, hero selected, card drafted", "version": "0.1.1" }, "last_serial": 2288726, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "e68dab12ae9dd39f0e0d90d2c60ca2b3", "sha256": "1840ec05252bf79e60154fa81f9cc2896860ebbb3966bc0a1d3652eb114089f8" }, "downloads": -1, "filename": "hearthstonearenalogwatcher-0.1.1.zip", "has_sig": false, "md5_digest": "e68dab12ae9dd39f0e0d90d2c60ca2b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10083, "upload_time": "2016-08-18T15:01:45", "url": "https://files.pythonhosted.org/packages/ae/e9/f2a145f072f836d9f6f91c8ece9df5b03c32866ff5c19f5287ec0bd11d8b/hearthstonearenalogwatcher-0.1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e68dab12ae9dd39f0e0d90d2c60ca2b3", "sha256": "1840ec05252bf79e60154fa81f9cc2896860ebbb3966bc0a1d3652eb114089f8" }, "downloads": -1, "filename": "hearthstonearenalogwatcher-0.1.1.zip", "has_sig": false, "md5_digest": "e68dab12ae9dd39f0e0d90d2c60ca2b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10083, "upload_time": "2016-08-18T15:01:45", "url": "https://files.pythonhosted.org/packages/ae/e9/f2a145f072f836d9f6f91c8ece9df5b03c32866ff5c19f5287ec0bd11d8b/hearthstonearenalogwatcher-0.1.1.zip" } ] }