{ "info": { "author": "martmists", "author_email": "martmists@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3.4", "Topic :: Communications :: Chat" ], "description": "AsyncTwitch\n=======================\n\nThis library is used to asynchronously interact with twitch chat.\n\n----\n\nRequirements: \n\n- Create a twitch.tv account\n- Get an Oauth token\n\n----\n\nHow to use:\n\n```python\nimport asynctwitch\n\n# Use the pre-made CommandBot, to handle messages yourself, use asynctwitch.Bot and handle event_message.\nbot = asynctwitch.CommandBot(\n user = \"Your_bot_twitch_username\",\n oauth = \"Your_twitch_oauth_token\", # oauth:1234567890abcdefghijklmnopqrst\n channel = \"channel_name\", # Defaults to Twitch\n prefix = \"your_prefix_here\", # Defaults to '!'\n)\n\n\n\n# Example command:\n@bot.command('example', alias=['moreexample','anothaone'], desc='example command')\nasync def example(message, word1:str, number1:int, rest:str):\n bot.say('wow')\n\n\n\n# Example subcommand:\n@bot.command('say')\nasync def say(m, subcommand:str):\n pass\n\n@say.subcommand('this')\nasync def this(m):\n bot.say(\"that\")\n\nbot.start() \n```\n\nTo use a config file instead, use\n```python\nasynctwitch.Bot(config=\"your_settings.ini\")\n# or\nasynctwitch.CommandBot(config=\"your_settings.ini\")\n```\nsee config.ini for an example file\n\n\nIt's also possible to handle messages your own way, just use\n\n```python\n@bot.override\nasync def event_message(message):\n # your handling here\n```\n\nThe same applies to all bot.event_X functions.\n\n\nTo use `await bot.play_file('file.mp3')`, ffprobe, ffmpeg and ffplay have to be installed. They can be found on the ffmpeg website.\n\nTo use `await bot.play_ytdl('song')`, youtube_dl has to be installed. Use `pip install youtube_dl` to install it.\nYou will also need the requirements for `bot.play_file`\n\n\nThese examples use the `async/await` syntax added in python 3.5, to use this code in 3.4 use `@asyncio.coroutine` and `yield from` instead.\nTHIS DOES NOT WORK WITH PYTHON VERSIONS BELOW 3.4!\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/martmists/asynctwitch", "keywords": "asyncio twitch irc", "license": "BSD-3-Clause", "maintainer": "", "maintainer_email": "", "name": "asynctwitch", "package_url": "https://pypi.org/project/asynctwitch/", "platform": "", "project_url": "https://pypi.org/project/asynctwitch/", "project_urls": { "Homepage": "https://github.com/martmists/asynctwitch" }, "release_url": "https://pypi.org/project/asynctwitch/4.2.1/", "requires_dist": [ "aiohttp", "isodate" ], "requires_python": "", "summary": "Asynchonous wrapper for twitch IRC3", "version": "4.2.1" }, "last_serial": 3091907, "releases": { "4.1.0": [ { "comment_text": "", "digests": { "md5": "c2742464c6850f5b31d77acd710b8b40", "sha256": "0cbc8222bfc5aad66fb033fb72345761ba155c1f5798d5dbb80dc41db9c2984e" }, "downloads": -1, "filename": "asynctwitch-4.1.0-py3.5.egg", "has_sig": false, "md5_digest": "c2742464c6850f5b31d77acd710b8b40", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 34315, "upload_time": "2017-01-03T15:07:33", "url": "https://files.pythonhosted.org/packages/ba/7e/50ad2648742cb985424ca97f4e86dbac6feae02fcd4b71e83f0d55787c8c/asynctwitch-4.1.0-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "cc2316808123ba4e4f6f32dac9e2e623", "sha256": "1c9cdaef7b34703e3fcce329c055cecec0ad531f0f4d537af35133a23a6c3c30" }, "downloads": -1, "filename": "asynctwitch-4.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cc2316808123ba4e4f6f32dac9e2e623", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16025, "upload_time": "2017-01-03T15:07:31", "url": "https://files.pythonhosted.org/packages/07/14/03ba793cc1631c6100ee9f43607dee56a30d43c91e309db88d8fdeffd19d/asynctwitch-4.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc37acb4150f67cca069f8bd3fc88230", "sha256": "a9a6261db93ee21e863045d606df25ca6748d60dea371c9241a6cf302dc99325" }, "downloads": -1, "filename": "asynctwitch-4.1.0.tar.gz", "has_sig": false, "md5_digest": "dc37acb4150f67cca069f8bd3fc88230", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13467, "upload_time": "2017-01-03T15:07:34", "url": "https://files.pythonhosted.org/packages/68/20/0b051f8d5a391069cada66fb03433e7b70737af2a0fbaa1ba5623d5b0449/asynctwitch-4.1.0.tar.gz" } ], "4.1.1": [ { "comment_text": "", "digests": { "md5": "8eba16809113cda56fda71eeadd0edfa", "sha256": "88b63eb28d9494ba31c38604b440fbb4fdedc2a41860a2a4995023eea2769700" }, "downloads": -1, "filename": "asynctwitch-4.1.1-py3.6.egg", "has_sig": false, "md5_digest": "8eba16809113cda56fda71eeadd0edfa", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 37127, "upload_time": "2017-03-07T19:30:07", "url": "https://files.pythonhosted.org/packages/c2/d9/cddd436c7116b49ace8cd137d85671c83db2760666d2165e7fe48dd4b6fc/asynctwitch-4.1.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "e769f2344fa190ab63fab549ca9cd0b6", "sha256": "1cbf06f8f45e62815eab684be2ce05afb1aa92211bda6a09e1465e04cdb9cf91" }, "downloads": -1, "filename": "asynctwitch-4.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e769f2344fa190ab63fab549ca9cd0b6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17556, "upload_time": "2017-03-07T19:30:06", "url": "https://files.pythonhosted.org/packages/e7/6d/2fa8c5b4f0798477b166ec064d8f5b43de095cd01048959c427b0e58f518/asynctwitch-4.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b1a6e0e370dd17c40100e8cb5eae0dd", "sha256": "d86c28cada1a6ae1613f21e8e57930de5134c631baaad03bd689aa493f76f86e" }, "downloads": -1, "filename": "asynctwitch-4.1.1.tar.gz", "has_sig": false, "md5_digest": "4b1a6e0e370dd17c40100e8cb5eae0dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14929, "upload_time": "2017-03-07T19:30:09", "url": "https://files.pythonhosted.org/packages/74/65/777fd32bd2e4051ee6940dfd0b595c811390613f5a96c3c55d8196c736a9/asynctwitch-4.1.1.tar.gz" } ], "4.2.0": [ { "comment_text": "", "digests": { "md5": "2b319a53b02f024b94ff7a4b46ff247f", "sha256": "8f9316c8c3771c949517f126ce980b95c5a6b9ef75e934a0219fe13aa537e265" }, "downloads": -1, "filename": "asynctwitch-4.2.0-py3.6.egg", "has_sig": false, "md5_digest": "2b319a53b02f024b94ff7a4b46ff247f", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 36675, "upload_time": "2017-08-12T09:03:21", "url": "https://files.pythonhosted.org/packages/f8/69/bd80b53fb1fbc61052bf69e3baca6a37f287cef750f23fcd4919ec3884bc/asynctwitch-4.2.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "9e21cbdc2d7d4a58c38dd573b0a1df0f", "sha256": "b1fcc64e066e46ec3e6070f25183cc5a7312e7c5e355ab5d8870b1fb25d8808f" }, "downloads": -1, "filename": "asynctwitch-4.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9e21cbdc2d7d4a58c38dd573b0a1df0f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17271, "upload_time": "2017-08-12T09:03:19", "url": "https://files.pythonhosted.org/packages/34/5b/953fb97e9105f87925515837e06ec22d3b8077e8321fbeb37f2ef5d3b871/asynctwitch-4.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fb38bde616c383517fad109d8f2fe33", "sha256": "bb1ec468e70062ecb5352109887e2ca4299ab7eadc2eb5d6de88f5dbbc1ebf11" }, "downloads": -1, "filename": "asynctwitch-4.2.0.tar.gz", "has_sig": false, "md5_digest": "6fb38bde616c383517fad109d8f2fe33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14621, "upload_time": "2017-08-12T09:03:24", "url": "https://files.pythonhosted.org/packages/f3/87/ed40892addf2a09167233a0f187753179c0b77be4b69de9c12d598f163bb/asynctwitch-4.2.0.tar.gz" } ], "4.2.1": [ { "comment_text": "", "digests": { "md5": "77a2ddd7228594bbca0cc5d24b6f395b", "sha256": "837ba00b153d08aaec1403602a77eda762f6c1bbad726890a42a9214d7e83d81" }, "downloads": -1, "filename": "asynctwitch-4.2.1-py3.6.egg", "has_sig": false, "md5_digest": "77a2ddd7228594bbca0cc5d24b6f395b", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 36670, "upload_time": "2017-08-12T09:13:14", "url": "https://files.pythonhosted.org/packages/87/72/5f7171886f7e0067c7a7d19426821550ee17660a4541cda2cc0f4ba1ed3e/asynctwitch-4.2.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "9ccf659373237f0323e40d8a7de04e03", "sha256": "555f970f9029bef71f652d1ebbaf1b5c2cfdab0b581b3d2b4ac5535a3ce29fbb" }, "downloads": -1, "filename": "asynctwitch-4.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9ccf659373237f0323e40d8a7de04e03", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17278, "upload_time": "2017-08-12T09:13:11", "url": "https://files.pythonhosted.org/packages/5f/ab/b653a1673ad423d35cb425ef642ea9541baa387bf4128df8f11fb2f269bf/asynctwitch-4.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27a3d140c947ea18625d281e8e688990", "sha256": "6f994ddc54358ea6daf09f0c65ed26060e91ea00083bb0393cc12b247096f154" }, "downloads": -1, "filename": "asynctwitch-4.2.1.tar.gz", "has_sig": false, "md5_digest": "27a3d140c947ea18625d281e8e688990", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14626, "upload_time": "2017-08-12T09:13:16", "url": "https://files.pythonhosted.org/packages/79/ac/7f1846d6a35b6d3d9a5edb65a1018427e1bd65db1d547bca45488289df96/asynctwitch-4.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77a2ddd7228594bbca0cc5d24b6f395b", "sha256": "837ba00b153d08aaec1403602a77eda762f6c1bbad726890a42a9214d7e83d81" }, "downloads": -1, "filename": "asynctwitch-4.2.1-py3.6.egg", "has_sig": false, "md5_digest": "77a2ddd7228594bbca0cc5d24b6f395b", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 36670, "upload_time": "2017-08-12T09:13:14", "url": "https://files.pythonhosted.org/packages/87/72/5f7171886f7e0067c7a7d19426821550ee17660a4541cda2cc0f4ba1ed3e/asynctwitch-4.2.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "9ccf659373237f0323e40d8a7de04e03", "sha256": "555f970f9029bef71f652d1ebbaf1b5c2cfdab0b581b3d2b4ac5535a3ce29fbb" }, "downloads": -1, "filename": "asynctwitch-4.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9ccf659373237f0323e40d8a7de04e03", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17278, "upload_time": "2017-08-12T09:13:11", "url": "https://files.pythonhosted.org/packages/5f/ab/b653a1673ad423d35cb425ef642ea9541baa387bf4128df8f11fb2f269bf/asynctwitch-4.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27a3d140c947ea18625d281e8e688990", "sha256": "6f994ddc54358ea6daf09f0c65ed26060e91ea00083bb0393cc12b247096f154" }, "downloads": -1, "filename": "asynctwitch-4.2.1.tar.gz", "has_sig": false, "md5_digest": "27a3d140c947ea18625d281e8e688990", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14626, "upload_time": "2017-08-12T09:13:16", "url": "https://files.pythonhosted.org/packages/79/ac/7f1846d6a35b6d3d9a5edb65a1018427e1bd65db1d547bca45488289df96/asynctwitch-4.2.1.tar.gz" } ] }