{ "info": { "author": "Hermann Krumrey", "author_email": "hermann@krumreyh.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)" ], "description": "# bokkichat\n|master|develop|\n|:----:|:-----:|\n|[![build status](https://gitlab.namibsun.net/namibsun/python/bokkichat/badges/master/build.svg)](https://gitlab.namibsun.net/namibsun/python/bokkichat/commits/master)|[![build status](https://gitlab.namibsun.net/namibsun/python/bokkichat/badges/develop/build.svg)](https://gitlab.namibsun.net/namibsun/python/bokkichat/commits/develop)|\n\n![Logo](resources/logo/logo-readme.png)\n\nBokkichat is a python library that offers unified interfaces for interacting\nwith different chat services.\n\nAs an example, it could be used to write a bot for both Whatsapp and Telegram\nwithout many service-specific alterations.\n\nA project that extends this idea is\n[kudubot](http://gitlab.namibsun.net/namibsun/python/kudubot).\n\n# Implemented Connection Types\n\nCurrently the following connection types are supported out of the box:\n\n* CLI\n* Telegram (Bot)\n\n# Installation\n\nInstalling bokkichat is as simple as running ```pip install bokkichat```, or\n```python setup.py install``` when installing from source.\n\n# Usage\n\nFirst, you'll need to initialize the correct Settings object, which can then be\nused to initialize the Connection.\n\n```python\nfrom bokkichat.settings.impl.TelegramBotSettings import TelegramBotSettings\nfrom bokkichat.connection.impl.TelegramBotConnection import TelegramBotConnection\n\nsettings = TelegramBotSettings(\"APIKEY\")\nconnection = TelegramBotConnection(settings)\n```\n\nAfterwards, you can send, receive and loop using the Connection object.\n\nSome examples:\n\n```python\n# Sending a message\nfrom bokkichat.settings.impl.TelegramBotSettings import TelegramBotSettings\nfrom bokkichat.connection.impl.TelegramBotConnection import TelegramBotConnection\nfrom bokkichat.entities.message.TextMessage import TextMessage\nfrom bokkichat.entities.Address import Address\n\nsettings = TelegramBotSettings(\"APIKEY\")\nconnection = TelegramBotConnection(settings)\n\nreceiver = Address(\"12345678\")\nmsg = TextMessage(connection.address, receiver, \"BODY\", \"TITLE\")\n\nconnection.send(msg)\n```\n\n```python\n# Echo every received message\nfrom bokkichat.settings.impl.TelegramBotSettings import TelegramBotSettings\nfrom bokkichat.connection.impl.TelegramBotConnection import TelegramBotConnection\nfrom bokkichat.connection.Connection import Connection\nfrom bokkichat.entities.message.Message import Message\n\nsettings = TelegramBotSettings(\"APIKEY\")\nconnection = TelegramBotConnection(settings)\n\n\ndef echo(con: Connection, msg: Message):\n reply = msg.make_reply()\n con.send(reply)\n\nconnection.loop(echo)\n```\n\n# Implementing your own connection type\n\nIf the connection type you want to use is not implemented by bokkichat itself,\nyou can always implement it yourself. To do so, you will need to implement two\nclasses.\n\nFirst off, you'll need to implement a subclass of the ```Settings``` class\nand implement its abstract methods. Take a look at the implementation of \nvarious Settings classes\n[here](bokkichat/settings/impl)\nfor some inspiration.\n\nThe Settings class defines the authentication information required for the\nbot to function.\n\nAfterwards, a subclass of the ```Connection``` class must be implemented.\nAgain, implement the abstract methods and let yourself be inspired by\n[previous implementations](bokkichat/connection/impl)\n\nThe Connection class defines how to communicate with the service itself.\n\nThese two classes define everything that's needed for a bokkichat connection.\n\n## Further Information\n\n* [Changelog](CHANGELOG)\n* [License (GPLv3)](LICENSE)\n* [Gitlab](https://gitlab.namibsun.net/namibsun/python/bokkichat)\n* [Github](https://github.com/namboy94/bokkichat)\n* [Progstats](https://progstats.namibsun.net/projects/bokkichat)\n* [PyPi](https://pypi.org/project/bokkichat)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.namibsun.net/namibsun/python/bokkichat", "keywords": "", "license": "GNU GPL3", "maintainer": "", "maintainer_email": "", "name": "bokkichat", "package_url": "https://pypi.org/project/bokkichat/", "platform": "", "project_url": "https://pypi.org/project/bokkichat/", "project_urls": { "Homepage": "https://gitlab.namibsun.net/namibsun/python/bokkichat" }, "release_url": "https://pypi.org/project/bokkichat/0.4.4/", "requires_dist": [ "typing", "python-telegram-bot", "requests" ], "requires_python": "", "summary": "A python library for various chat services", "version": "0.4.4" }, "last_serial": 5941818, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f6e10417f17c8e18e935901b5f9ece2b", "sha256": "8f5a05a8cfb7838dc2d4c9632f0a6a0fa73b1a94cbfb5f5f18c158842dbb076f" }, "downloads": -1, "filename": "bokkichat-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f6e10417f17c8e18e935901b5f9ece2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 33967, "upload_time": "2019-04-09T13:05:52", "url": "https://files.pythonhosted.org/packages/35/4b/873f30958929b3a6985e6aedc5b0b242fd71979ed003104286baf6f975ad/bokkichat-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e6fcc42808894fc2c60fa441ed858fef", "sha256": "d5aa9cdc6df194e15543fa3102f0ef248536816a5518c27c37d6c017a26f4cee" }, "downloads": -1, "filename": "bokkichat-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e6fcc42808894fc2c60fa441ed858fef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7301, "upload_time": "2019-04-09T13:05:54", "url": "https://files.pythonhosted.org/packages/8a/fa/64824fff942bfc70f6b0dfa23dfe2c125c7b3f71395223b422f6437ea946/bokkichat-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3dc45dc4ae265af681141342ccc07e62", "sha256": "c58edf00d7c7e56e18871b8d706f51186324dca794deddab01694656ac45db42" }, "downloads": -1, "filename": "bokkichat-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3dc45dc4ae265af681141342ccc07e62", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 35004, "upload_time": "2019-04-10T22:22:30", "url": "https://files.pythonhosted.org/packages/d5/c1/c3fd04d2e8393f53ca20d77b096a45735e15e36825b057db2f9cbe4f5e80/bokkichat-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3c7826f4cb6b15c890efbe68d17c726", "sha256": "aba306f7a94ec47a621b15ff53972f63f9f889a8f9c1926ae4309e483a3bf8e8" }, "downloads": -1, "filename": "bokkichat-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e3c7826f4cb6b15c890efbe68d17c726", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7922, "upload_time": "2019-04-10T22:22:31", "url": "https://files.pythonhosted.org/packages/18/32/cf3bda2666d7883844c72ba8720ddcf35aa1723549688dded709d94c985a/bokkichat-0.2.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "eeef4a5495488bb28cb16212f43714a1", "sha256": "45310205404ac57406c7178c50ebe2d89bd733df1195a822e49631c223a0444c" }, "downloads": -1, "filename": "bokkichat-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "eeef4a5495488bb28cb16212f43714a1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 35245, "upload_time": "2019-04-19T20:38:27", "url": "https://files.pythonhosted.org/packages/20/4c/a42549a2b50ca00e1e11245e5c47d3b86631330e19d28603e64a13641fb2/bokkichat-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dc7d4b1fa13864b1c17e00168e81b5a", "sha256": "27b68c1d2c163959c99f7717c8c071bef6d21b0d5c93d7a3772712304782a7b9" }, "downloads": -1, "filename": "bokkichat-0.2.2.tar.gz", "has_sig": false, "md5_digest": "5dc7d4b1fa13864b1c17e00168e81b5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8049, "upload_time": "2019-04-19T20:38:28", "url": "https://files.pythonhosted.org/packages/ee/d5/b5ff64066f85bf16a502735c296e3a08227ec6a18748b4cf8fe67d2b622e/bokkichat-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "d2981554606bbb299104b52323830762", "sha256": "a4b6d57595038ba062520f41557e628d2b932afc123dd606390b2519aa71b384" }, "downloads": -1, "filename": "bokkichat-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d2981554606bbb299104b52323830762", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 35345, "upload_time": "2019-06-20T18:13:59", "url": "https://files.pythonhosted.org/packages/d4/43/923127359371cfc3df965823e7bab139aade7e6c2477c2199f84b2777b3a/bokkichat-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6436ab88dabfff23b009d8267038a9cb", "sha256": "df8ec7cd7d6c917669842b9371102defc5ccedc47b42e244bfb6cc73b9f5624a" }, "downloads": -1, "filename": "bokkichat-0.2.3.tar.gz", "has_sig": false, "md5_digest": "6436ab88dabfff23b009d8267038a9cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8249, "upload_time": "2019-06-20T18:14:01", "url": "https://files.pythonhosted.org/packages/b8/2b/4eb83ce945ec84849813593dd1da839f8ce2d52c36162549f8b085184eae/bokkichat-0.2.3.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "fcd7e9e2671eb0091bae7a22b9fc22f6", "sha256": "48154beec6cd615c25ef0fe32b8fef01a391c654eeba6b1970e6e2af3f2e972a" }, "downloads": -1, "filename": "bokkichat-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fcd7e9e2671eb0091bae7a22b9fc22f6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 35649, "upload_time": "2019-07-04T20:15:56", "url": "https://files.pythonhosted.org/packages/19/28/ce50821ad57b7479e72f7b27656e837567958a5f2fb741ed4d31163e0f2b/bokkichat-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e2100e273323762dc893eec97fdb90cc", "sha256": "8e395b9490dcb0e3c7d5e9f2330ffb0cbe69beb516e76881b0aa4ce04fe93145" }, "downloads": -1, "filename": "bokkichat-0.3.2.tar.gz", "has_sig": false, "md5_digest": "e2100e273323762dc893eec97fdb90cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8545, "upload_time": "2019-07-04T20:15:57", "url": "https://files.pythonhosted.org/packages/d6/08/fb2e07d3c5c598e7eb909980f7fd9197e263037e91af061b69f0d2e18010/bokkichat-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "cefb416422bcfa6aa86a49393ba049f0", "sha256": "89db61251c2ca021fbf286d41f51f1956ad4c1b6ab96fd760d2934cd5b0a6e51" }, "downloads": -1, "filename": "bokkichat-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cefb416422bcfa6aa86a49393ba049f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 35568, "upload_time": "2019-07-08T15:54:27", "url": "https://files.pythonhosted.org/packages/7f/61/fdb039cdcf5c3cd1c5b84052bbd1f9e2eef4aefed5270ba176642385bf55/bokkichat-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f58d3414cf74e52e1204a2ab8c381c0", "sha256": "9c4d1f14880ea6401b9c133fe0737c43d54848e0552ad08ebdb1517f4291d321" }, "downloads": -1, "filename": "bokkichat-0.4.0.tar.gz", "has_sig": false, "md5_digest": "4f58d3414cf74e52e1204a2ab8c381c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8590, "upload_time": "2019-07-08T15:54:28", "url": "https://files.pythonhosted.org/packages/a3/c9/22109acd109e81e1e14b62de35c4a9bcb0a7d14e9185f165267591f834ec/bokkichat-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "7521a596863b8a1a110ae7a67a49765e", "sha256": "329872ab5a7a24f684a3283acb9f0979d0c3bf70766c309857ce307ccd69c387" }, "downloads": -1, "filename": "bokkichat-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7521a596863b8a1a110ae7a67a49765e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 36568, "upload_time": "2019-07-08T16:59:16", "url": "https://files.pythonhosted.org/packages/cb/cb/80c44d4b853275d247fdfedf42e580ca5bec1a56806ae963cde8afdac9fa/bokkichat-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a760045dc20f1c2e0789d586b4625a6", "sha256": "3176b5a530f886908d97699c414505b8640cd4b20ccc0e1ef8432258296fa275" }, "downloads": -1, "filename": "bokkichat-0.4.1.tar.gz", "has_sig": false, "md5_digest": "3a760045dc20f1c2e0789d586b4625a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10401, "upload_time": "2019-07-08T16:59:18", "url": "https://files.pythonhosted.org/packages/52/e4/75481b74eebd2cc46c0d3010452b6ae161e4b1a8814e27171ba5597fcec3/bokkichat-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "d0b34e1183bb58f717f08e03ede2d3ae", "sha256": "5e4c68799de5597371e20bd4673260b84c519224d42bdd9fc3a44dbb30a40059" }, "downloads": -1, "filename": "bokkichat-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d0b34e1183bb58f717f08e03ede2d3ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 36570, "upload_time": "2019-09-01T08:32:39", "url": "https://files.pythonhosted.org/packages/ed/95/d868f95219069a87c9467b8b3a7f4cd0943f748e40d319170c41f9864f7b/bokkichat-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8b3e90f2ee21200ae2b8a5f892a68df", "sha256": "c3f48745b58bee8c881e978b1e572321a79aac096256b9ffa41f218f7c575351" }, "downloads": -1, "filename": "bokkichat-0.4.2.tar.gz", "has_sig": false, "md5_digest": "c8b3e90f2ee21200ae2b8a5f892a68df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9421, "upload_time": "2019-09-01T08:32:41", "url": "https://files.pythonhosted.org/packages/95/f8/14c806acf7ad71b26cb100d5ef7940d5d32587258aab199cc6558db74be1/bokkichat-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "e77cb111da5b1a335e4c1d72a5718f35", "sha256": "e7862520d5664f36aa48dc31235b3978b56e8912c6aa2ce7fbedc27d3d123ebf" }, "downloads": -1, "filename": "bokkichat-0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e77cb111da5b1a335e4c1d72a5718f35", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 36589, "upload_time": "2019-09-03T10:11:24", "url": "https://files.pythonhosted.org/packages/d9/c1/3fdad57890c32d831a81c8901b6c3a2f977f09d8adb5b8f46aa605e800bb/bokkichat-0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "942e37d95939e7e253eaed473696afa7", "sha256": "d4440e63ebe8be46202fc48dacf3b24ccb2cf0264e0640e842e71b97239e3e9b" }, "downloads": -1, "filename": "bokkichat-0.4.3.tar.gz", "has_sig": false, "md5_digest": "942e37d95939e7e253eaed473696afa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9452, "upload_time": "2019-09-03T10:11:25", "url": "https://files.pythonhosted.org/packages/28/41/69f696bef7b96b0c1d40e048be83683fcb9d9941d04cd3c49dccf0e57d0a/bokkichat-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "633925438f195c9aaef7931ceec95816", "sha256": "a6874ddbad7d458b7dba938534729abe90ecca691448bc5a04710dac2cbc7a7e" }, "downloads": -1, "filename": "bokkichat-0.4.4-py3-none-any.whl", "has_sig": false, "md5_digest": "633925438f195c9aaef7931ceec95816", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 36860, "upload_time": "2019-10-07T22:26:48", "url": "https://files.pythonhosted.org/packages/1e/61/ea47be5129e17a498a5d162bd1f45d222a4443512842fba8c0eaa0601aa6/bokkichat-0.4.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2bc3dfcc7f540166c463d467fec3eda2", "sha256": "b7a7c5877231cb364400edc53d3e64be22515b24edfb5d01baef97a1f075dd58" }, "downloads": -1, "filename": "bokkichat-0.4.4.tar.gz", "has_sig": false, "md5_digest": "2bc3dfcc7f540166c463d467fec3eda2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9727, "upload_time": "2019-10-07T22:26:50", "url": "https://files.pythonhosted.org/packages/3a/70/8e1f5f68f5813857029f7bd59508974c4a2795901dc0a27119533dd133f3/bokkichat-0.4.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "633925438f195c9aaef7931ceec95816", "sha256": "a6874ddbad7d458b7dba938534729abe90ecca691448bc5a04710dac2cbc7a7e" }, "downloads": -1, "filename": "bokkichat-0.4.4-py3-none-any.whl", "has_sig": false, "md5_digest": "633925438f195c9aaef7931ceec95816", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 36860, "upload_time": "2019-10-07T22:26:48", "url": "https://files.pythonhosted.org/packages/1e/61/ea47be5129e17a498a5d162bd1f45d222a4443512842fba8c0eaa0601aa6/bokkichat-0.4.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2bc3dfcc7f540166c463d467fec3eda2", "sha256": "b7a7c5877231cb364400edc53d3e64be22515b24edfb5d01baef97a1f075dd58" }, "downloads": -1, "filename": "bokkichat-0.4.4.tar.gz", "has_sig": false, "md5_digest": "2bc3dfcc7f540166c463d467fec3eda2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9727, "upload_time": "2019-10-07T22:26:50", "url": "https://files.pythonhosted.org/packages/3a/70/8e1f5f68f5813857029f7bd59508974c4a2795901dc0a27119533dd133f3/bokkichat-0.4.4.tar.gz" } ] }