{
"info": {
"author": "mtwtkman",
"author_email": "",
"bugtrack_url": null,
"classifiers": [
"Programming Language :: Python :: 3.6"
],
"description": ".. image:: https://badge.fury.io/py/kokoroio.svg\n :target: https://badge.fury.io/py/kokoroio\n\n############\nWhat is this\n############\nThis is a client for `kokoro.io `_ which is a chat service (maybe going to be) best ever.\n\nI know that you want to join as soon as possible, please ask `me `_ or `supermomonga-san `_ about how to create account.\n\n############\nRequirements\n############\n- Python3.6+\n- kokoro.io account(using your access token)\n\n########\nInstall\n########\n.. code-block:: bash\n\n $ pip install kokoroio\n\n#########\nConfigure\n#########\nYou must set an access token to sign in to kokoro.io by three way like follows.\n\n- Set environ path named ``KOKOROIO_ACCESS_TOKEN``.\n- Set your access token to any file your choice and pass it's file name to ``Kokoroio`` constructor as ``env_path``.\n- Pass directly ``Kokoroio`` constructor as ``access_token``.\n\n#####\nUsage\n#####\nOnce you create ``Kokoroio`` instance, you can request from two way syncronous or asyncronous.\n\n.. code-block:: python\n\n from kokoroio import Kokoroio\n client = Kokoroio(access_token='xxxxxxx')\n client.channels.get() # You received a response!\n\nIf an endpoint requires path parameters, you need to pass path parameters as arguments for request method.\n\n.. code-block:: python\n\n # Assuming you want to post a message to channel whose channel_id is 'hogehoge'.\n # In this case, url is `channels/hogehoge`.\n o = client.channels.send_message(channle_id='hogehoge')\n # So you can request with a payload.\n o(message='hi')\n\nAnd you can find every client's methods.\n\n.. code-block:: python\n\n clients.channels.method_names\n clients.channels.methods\n\n===================\nSyncronous request\n===================\nYou will get ``requests's HttpResponse`` object.\n\nIf you want to know about response object, please refer `requests doc `_.\n\n-------\nExample\n-------\n.. code-block:: python\n\n client.channels.get()\n\n===================\nAsyncronous request\n===================\nDifferent from syncronous version, request method has ``a`` prefix like ``channels.aget()`` and you don't need to create new event loop at every request.\n\nYou will get ``aiohttp's ClientResponse`` object because using ``aiohttp`` internally.\n\nIf you want to know about ``aiohttp``, please refer `aiohttp doc `_.\n\n-------\nExample\n-------\n.. code-block:: python\n\n client.channels.aget()\n\n####\nTest\n####\nSorry now I have no test\ud83d\ude2d\n\n############################\nAbout kokoro.io's API detail\n############################\nYou can find all of current API detail from `the official apidoc `_.\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/mtwtkman/kokoro-io-py",
"keywords": "kokoro.io",
"license": "WTFPL",
"maintainer": "",
"maintainer_email": "",
"name": "kokoroio",
"package_url": "https://pypi.org/project/kokoroio/",
"platform": "",
"project_url": "https://pypi.org/project/kokoroio/",
"project_urls": {
"Homepage": "https://github.com/mtwtkman/kokoro-io-py"
},
"release_url": "https://pypi.org/project/kokoroio/0.0.3/",
"requires_dist": [
"requests",
"aiohttp",
"wheel; extra == 'build'",
"flake8; extra == 'dev'",
"mypy-lang; extra == 'dev'"
],
"requires_python": ">=3.6",
"summary": "Client for kokoro.io",
"version": "0.0.3"
},
"last_serial": 3235448,
"releases": {
"0.0.1": [
{
"comment_text": "",
"digests": {
"md5": "23de716f7fa84c71501d68c0b2dc2cd4",
"sha256": "3c959e5c632d83daa684deb05e346245456608efcf660c705c97b530ed90590c"
},
"downloads": -1,
"filename": "kokoroio-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "23de716f7fa84c71501d68c0b2dc2cd4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 8191,
"upload_time": "2017-10-06T01:38:40",
"url": "https://files.pythonhosted.org/packages/35/4d/6f4383589f3cf15b7150c5328d9d53584a624bd0bdc4942c9304d743cae4/kokoroio-0.0.1-py3-none-any.whl"
}
],
"0.0.2": [
{
"comment_text": "",
"digests": {
"md5": "df287c1317beae62ae2bae613d3ce184",
"sha256": "892e3251291c086165985f3c0144855734ca7d6878d4e16116d213fe490ebbea"
},
"downloads": -1,
"filename": "kokoroio-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "df287c1317beae62ae2bae613d3ce184",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9259,
"upload_time": "2017-10-08T11:39:47",
"url": "https://files.pythonhosted.org/packages/6a/48/7be145f11a6a714bf433d8094b4254c666e6ccb293613f601859d9b5066d/kokoroio-0.0.2-py3-none-any.whl"
}
],
"0.0.3": [
{
"comment_text": "",
"digests": {
"md5": "96cd0fdfe1103753217677f1003229d1",
"sha256": "458a132afd92238d44521509d554f9853ce968ef53072069037a03f10fc7f329"
},
"downloads": -1,
"filename": "kokoroio-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "96cd0fdfe1103753217677f1003229d1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9144,
"upload_time": "2017-10-09T06:34:32",
"url": "https://files.pythonhosted.org/packages/2a/d2/2a2a0879e6a558c53cf956459b88c6fd3027e99373626cce956effa0f044/kokoroio-0.0.3-py3-none-any.whl"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "96cd0fdfe1103753217677f1003229d1",
"sha256": "458a132afd92238d44521509d554f9853ce968ef53072069037a03f10fc7f329"
},
"downloads": -1,
"filename": "kokoroio-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "96cd0fdfe1103753217677f1003229d1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9144,
"upload_time": "2017-10-09T06:34:32",
"url": "https://files.pythonhosted.org/packages/2a/d2/2a2a0879e6a558c53cf956459b88c6fd3027e99373626cce956effa0f044/kokoroio-0.0.3-py3-none-any.whl"
}
]
}