{ "info": { "author": "Arkie", "author_email": "cwkfr@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development", "Topic :: Software Development :: Libraries" ], "description": "\n\ud83e\udd16 line-bot-sdk-python-extra\n============================\n\n.. image:: https://img.shields.io/pypi/v/line-bot-sdk-extra.svg\n :target: https://pypi.python.org/pypi/line-bot-sdk-extra\n :alt: PyPI - Version\n\n.. image:: https://img.shields.io/pypi/status/line-bot-sdk-extra.svg\n :target: https://pypi.python.org/pypi/line-bot-sdk-extra\n :alt: PyPI - Status\n\n.. image:: https://img.shields.io/pypi/pyversions/line-bot-sdk-extra.svg\n :target: https://pypi.python.org/pypi/line-bot-sdk-extra\n :alt: PyPI - Python Version\n\n.. image:: https://img.shields.io/pypi/l/line-bot-sdk-extra.svg\n :target: https://pypi.python.org/pypi/line-bot-sdk-extra\n \u00a0 :alt: PyPI - License\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/ambv/black\n :alt: Code Style - Black\n\n.. image:: https://img.shields.io/badge/Ko--fi-donate-blue.svg\n :target: https://ko-fi.com/shivelight\n :alt: Ko-fi - Donate\n\nExtra feature for `LINE Messaging API SDK for Python `_.\n\n\nInstallation\n------------\n\n::\n\n pip install line-bot-sdk-extra\n\nor::\n\n python setup.py install\n\nTo use the package::\n\n>>> import linebotx\n\n\nFeatures\n--------\n\nAsynchronous API\n^^^^^^^^^^^^^^^^\n\nAllows you to write non-blocking code which makes your bot respond much faster with little changes.\n\nSynchronous:\n\n.. code-block:: python\n\n from linebot import LineBotApi, WebhookHandler\n line_bot_api = LineBotApi('YOUR_CHANNEL_ACCESS_TOKEN')\n handler = WebhookHandler('YOUR_CHANNEL_SECRET')\n\n\nAsynchronous:\n\n.. code-block:: python\n\n from linebotx import LineBotApiAsync, WebhookHandlerAsync\n line_bot_api = LineBotApiAsync('YOUR_CHANNEL_ACCESS_TOKEN')\n handler = WebhookHandlerAsync('YOUR_CHANNEL_SECRET')\n\n\nEquivalent Counterpart\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\n+---------------------+----------------+\n| linebotx | linebot |\n+=====================+================+\n| LineBotApiAsync | LineBotApi |\n+---------------------+----------------+\n| AioHttpClient | HttpClient |\n+---------------------+----------------+\n| AioHttpResponse | HttpResponse |\n+---------------------+----------------+\n| WebhookHandlerAsync | WebhookHandler |\n+---------------------+----------------+\n\n**NOTE:** Every public method is coroutine and should be awaited. For example:\n\n.. code-block:: python\n\n @app.route(\"/callback\", methods=['POST'])\n async def callback():\n ...\n await handler.handle(body, signature)\n ...\n\n\n @handler.add(MessageEvent, message=TextMessage)\n async def handle_message(event):\n await line_bot_api.reply_message(\n event.reply_token,\n TextSendMessage(text=event.message.text))\n\n\nAdditional Methods\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\ncoroutine :code:`LineBotApiAsync.close()`\n Close underlying http client.\n\ncoroutine :code:`AioHttpClient.close()`\n See `aiohttp.ClientSession.close() `_.\n\n\nTimeout\n\"\"\"\"\"\"\"\n\nTo set a timeout you can pass `aiohttp.ClientTimeout `_ object instead of numeric value.\n\n\nExamples\n\"\"\"\"\"\"\"\"\n\n- `sanic-echo `_ - Sample echo-bot using sanic_.\n\n\nContributing\n------------\n\nIf you would like to contribute, please check for open issues or open a new issue if you have ideas, changes, or bugs to report.\n\n\nReferences\n----------\n\nThis project is just a small addition to the original SDK, please refer to `line-bot-sdk-python `_ or the `docs `_.\n\n.. _sanic: https://github.com/huge-success/sanic\n.. _line-bot-sdk-python: https://github.com/line/line-bot-sdk-python\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Shivelight/line-bot-sdk-extra", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "line-bot-sdk-extra", "package_url": "https://pypi.org/project/line-bot-sdk-extra/", "platform": "", "project_url": "https://pypi.org/project/line-bot-sdk-extra/", "project_urls": { "Homepage": "https://github.com/Shivelight/line-bot-sdk-extra" }, "release_url": "https://pypi.org/project/line-bot-sdk-extra/0.1.2/", "requires_dist": [ "line-bot-sdk", "aiohttp" ], "requires_python": ">=3.6.0", "summary": "Extra Async Support for LINE Messaging API SDK", "version": "0.1.2" }, "last_serial": 5643571, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "68fed5f25510b120039c75cbe0e63ac2", "sha256": "f926a9bde5d19a939cee9975c031e8c5ebc20a228bf4c97be7c631e93c0beef7" }, "downloads": -1, "filename": "line_bot_sdk_extra-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "68fed5f25510b120039c75cbe0e63ac2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 6757, "upload_time": "2019-04-08T11:25:08", "url": "https://files.pythonhosted.org/packages/6b/4d/d1a81171be058d18f16cc6678ece26aec5472d24ff40eda1cd81b79f5c96/line_bot_sdk_extra-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fcd34a0b22cabe917f8668b315c2bba9", "sha256": "7c8aa883c61917ddd509edc449a8902a612aeb92ac894897f05e5aaa8ae1c545" }, "downloads": -1, "filename": "line-bot-sdk-extra-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fcd34a0b22cabe917f8668b315c2bba9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 7059, "upload_time": "2019-04-08T11:25:11", "url": "https://files.pythonhosted.org/packages/e4/63/5ea709867b2c33ec006ad66b8831ed737186c03c544b7e85139080f80927/line-bot-sdk-extra-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4aebffa7026d88a9de0d85b5884dc436", "sha256": "48fd5a61ef6f0db77ca10755fe137e4751e20de8812753c14b07c63e5a37ae60" }, "downloads": -1, "filename": "line_bot_sdk_extra-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4aebffa7026d88a9de0d85b5884dc436", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 6760, "upload_time": "2019-04-08T13:40:06", "url": "https://files.pythonhosted.org/packages/ac/34/346d83aec0c6d40980218d5a8b1a09f3a44802893600952ecb6e376f09ed/line_bot_sdk_extra-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eaf88bf6ed3f17a6498aad7cb69ace30", "sha256": "8d8ed156191b69051ce19fdd05cc450499497fb500030cf73cd3d794890f0e1b" }, "downloads": -1, "filename": "line-bot-sdk-extra-0.1.1.tar.gz", "has_sig": false, "md5_digest": "eaf88bf6ed3f17a6498aad7cb69ace30", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 7069, "upload_time": "2019-04-08T13:40:08", "url": "https://files.pythonhosted.org/packages/cd/f8/ee8cc6c6752e71b542ae903a89d5bb6aec40bb45cc27c16b78eef08604cb/line-bot-sdk-extra-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c899ba185758bc6a774e8e84a43b0bf4", "sha256": "edbe57f28652639de9b6dc5de7be45c8d8cb155f3bdc5dff07050700e39785f7" }, "downloads": -1, "filename": "line_bot_sdk_extra-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c899ba185758bc6a774e8e84a43b0bf4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 7653, "upload_time": "2019-08-07T07:34:51", "url": "https://files.pythonhosted.org/packages/67/bf/7dfcee2c8b4c650d94bda88eaadbabfb0937fac1552a42d6a624bfff9b96/line_bot_sdk_extra-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d98f9b3924c2f61ca41cc08b077236a", "sha256": "2ff4f909fbb254d56a78d84a223f3f06c0388b056ae67be4fe297b91018162b3" }, "downloads": -1, "filename": "line-bot-sdk-extra-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5d98f9b3924c2f61ca41cc08b077236a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 7991, "upload_time": "2019-08-07T07:34:53", "url": "https://files.pythonhosted.org/packages/08/d5/1273e7eff70b309afd914e86f07cb55918ab2e7a10137920644ece9d385d/line-bot-sdk-extra-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c899ba185758bc6a774e8e84a43b0bf4", "sha256": "edbe57f28652639de9b6dc5de7be45c8d8cb155f3bdc5dff07050700e39785f7" }, "downloads": -1, "filename": "line_bot_sdk_extra-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c899ba185758bc6a774e8e84a43b0bf4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 7653, "upload_time": "2019-08-07T07:34:51", "url": "https://files.pythonhosted.org/packages/67/bf/7dfcee2c8b4c650d94bda88eaadbabfb0937fac1552a42d6a624bfff9b96/line_bot_sdk_extra-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d98f9b3924c2f61ca41cc08b077236a", "sha256": "2ff4f909fbb254d56a78d84a223f3f06c0388b056ae67be4fe297b91018162b3" }, "downloads": -1, "filename": "line-bot-sdk-extra-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5d98f9b3924c2f61ca41cc08b077236a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 7991, "upload_time": "2019-08-07T07:34:53", "url": "https://files.pythonhosted.org/packages/08/d5/1273e7eff70b309afd914e86f07cb55918ab2e7a10137920644ece9d385d/line-bot-sdk-extra-0.1.2.tar.gz" } ] }