{ "info": { "author": "Damir Jeli\u0107", "author_email": "poljar@termina.org.uk", "bugtrack_url": null, "classifiers": [], "description": "nio \n===\n\n[![Build Status](https://img.shields.io/travis/poljar/matrix-nio.svg?style=flat-square)](https://travis-ci.org/poljar/matrix-nio)\n[![codecov](https://img.shields.io/codecov/c/github/poljar/matrix-nio/master.svg?style=flat-square)](https://codecov.io/gh/poljar/matrix-nio)\n[![license](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/poljar/matrix-nio/blob/master/LICENSE.md)\n[![Documentation Status](https://readthedocs.org/projects/matrix-nio/badge/?version=latest&style=flat-square)](https://matrix-nio.readthedocs.io/en/latest/?badge=latest)\n[![#nio](https://img.shields.io/badge/matrix-%23nio:matrix.org-blue.svg?style=flat-square)](https://matrix.to/#/!JiiOHXrIUCtcOJsZCa:matrix.org?via=matrix.org&via=maunium.net&via=t2l.io)\n\n\n\nnio is a multilayered matrix client library. The underlying base layer doesn't\ndo any IO on its own. On top of the base layer, a no-IO HTTP client\nimplementation exists, as well as a full fledged batteries included asyncio\nlayer using [aiohttp](https://github.com/aio-libs/aiohttp/).\n\nDocumentation\n=============\n\nThe full API documentation for nio can be found at\n[https://matrix-nio.readthedocs.io](https://matrix-nio.readthedocs.io/en/latest/#api-documentation)\n\nInstallation\n============\nTo install nio, simply use pip:\n```bash\n$ pip install matrix-nio\n\n```\n\nNote that this installs nio without end-to-end encryption support. For e2ee\nsupport python-olm is needed which requires the\n[libolm](https://gitlab.matrix.org/matrix-org/olm) C library.\n\nAfter libolm has been installed the e2ee enabled version of nio can be\ninstalled using pip:\n\n```bash\n$ pip install \"matrix-nio[e2e]\"\n\n```\n\nUsage\n=====\n\nUnless special requirements disallow the usage of asyncio, by far the easiest\nway to use nio is using the asyncio layer:\n\n```python\nimport asyncio\nfrom nio import (AsyncClient, RoomMessageText)\n\nasync def message_cb(room, event):\n print(\n \"Message received for room {} | {}: {}\".format(\n room.display_name, room.user_name(event.sender), event.body\n )\n )\n\nasync def main():\n client = AsyncClient(\"https://example.org\", \"@alice:example.org\")\n client.add_event_callback(message_cb, RoomMessageText)\n\n await client.login(\"hunter1\")\n await client.sync_forever(timeout=30000)\n\nasyncio.get_event_loop().run_until_complete(main())\n```\n\nPlease do note that this example requires python 3.5+ for the `async`/`await`\nsyntax. nio on the other hand works with older python versions as well.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/poljar/matrix-nio", "keywords": "", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "matrix-nio", "package_url": "https://pypi.org/project/matrix-nio/", "platform": "", "project_url": "https://pypi.org/project/matrix-nio/", "project_urls": { "Homepage": "https://github.com/poljar/matrix-nio" }, "release_url": "https://pypi.org/project/matrix-nio/0.6/", "requires_dist": null, "requires_python": "", "summary": "A Python Matrix client library, designed according to sans I/O principles.", "version": "0.6" }, "last_serial": 5816058, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "673952bbbe1651e9a62001bacfe39293", "sha256": "1048cb6d21fb588a98013b460224aa14ff84b4831e6d0ae2b67272deb9c674ba" }, "downloads": -1, "filename": "matrix-nio-0.2.tar.gz", "has_sig": false, "md5_digest": "673952bbbe1651e9a62001bacfe39293", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 138231, "upload_time": "2019-04-10T12:28:04", "url": "https://files.pythonhosted.org/packages/23/7a/81a66552912c8217cc2867faf5a5392ecb37b2f9ac5213cdb2b2052045a6/matrix-nio-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "fe8ec69d0102a52b7bd9c97ab1fc31be", "sha256": "69a7b7d3b3632c746baba4c40deec06e2650cb85ccb128e6d893ee524d87333c" }, "downloads": -1, "filename": "matrix_nio-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "fe8ec69d0102a52b7bd9c97ab1fc31be", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 129687, "upload_time": "2019-05-24T12:19:19", "url": "https://files.pythonhosted.org/packages/6d/07/752249221680d57d08df5949ee3423b203e0616988fa4dd03f5b1d8d0b72/matrix_nio-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c742c0ed0f2a3348b672fdd65b877848", "sha256": "2ecc6f8ec1f7b79a98b011c3f511bdafce1910ad2fac02fb6608b20cd6501e24" }, "downloads": -1, "filename": "matrix-nio-0.3.tar.gz", "has_sig": false, "md5_digest": "c742c0ed0f2a3348b672fdd65b877848", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 159277, "upload_time": "2019-05-24T12:19:24", "url": "https://files.pythonhosted.org/packages/1e/f5/45fd1ba3417205b99f67b07e8f89515891529d4bfd18c64875dec77355db/matrix-nio-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "402afcdb0f2a2c66dccf535d30a0ec85", "sha256": "9efb22150cddc713b3b3e17ef6bc0693eb64fef64ede2337c834f4b2aa89badb" }, "downloads": -1, "filename": "matrix-nio-0.4.tar.gz", "has_sig": false, "md5_digest": "402afcdb0f2a2c66dccf535d30a0ec85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191025, "upload_time": "2019-07-12T08:41:12", "url": "https://files.pythonhosted.org/packages/8d/18/1de2ae10acd7d603cb404cdb80476c30d3e82b88b46b3054bfa0c04d0705/matrix-nio-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "bc0cf29502c7f3f003212782e8e91935", "sha256": "495223df5e242ab675262a2de64c5dfda7e59a3a0d804dd8d18996ac5c30eeda" }, "downloads": -1, "filename": "matrix-nio-0.4.1.tar.gz", "has_sig": false, "md5_digest": "bc0cf29502c7f3f003212782e8e91935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191235, "upload_time": "2019-07-13T11:54:49", "url": "https://files.pythonhosted.org/packages/ba/ce/4fe19972477f65da888f64c8e62713e8d8ebfa962520fa6f8b61c258db88/matrix-nio-0.4.1.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "f75026288a6cc46cf3a4fb01ad0ada47", "sha256": "657cc79a4ce2774dc4b72e25c94cae0696e82c4f35a60ca5cbb557734b6504fa" }, "downloads": -1, "filename": "matrix-nio-0.5.tar.gz", "has_sig": false, "md5_digest": "f75026288a6cc46cf3a4fb01ad0ada47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 209080, "upload_time": "2019-08-27T07:56:59", "url": "https://files.pythonhosted.org/packages/0d/27/a9cd1afd49d3166098cc0f96c4c03ca53e82a20dfebef4c572f2c88d6c85/matrix-nio-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "4a276065f987d8ba96fb25709a05b1d4", "sha256": "25a4ac9d5e1435035f5c5b6e9a6b453ac66ade25cb455ba6bbe9cc3ae1e0ef50" }, "downloads": -1, "filename": "matrix-nio-0.6.tar.gz", "has_sig": false, "md5_digest": "4a276065f987d8ba96fb25709a05b1d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210235, "upload_time": "2019-09-11T17:08:11", "url": "https://files.pythonhosted.org/packages/c5/0e/1e6550f104e1bc0ceb4b5567216a6478e918abe748b5dfec9e4575674f15/matrix-nio-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a276065f987d8ba96fb25709a05b1d4", "sha256": "25a4ac9d5e1435035f5c5b6e9a6b453ac66ade25cb455ba6bbe9cc3ae1e0ef50" }, "downloads": -1, "filename": "matrix-nio-0.6.tar.gz", "has_sig": false, "md5_digest": "4a276065f987d8ba96fb25709a05b1d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210235, "upload_time": "2019-09-11T17:08:11", "url": "https://files.pythonhosted.org/packages/c5/0e/1e6550f104e1bc0ceb4b5567216a6478e918abe748b5dfec9e4575674f15/matrix-nio-0.6.tar.gz" } ] }