{ "info": { "author": "Geoffrey ROYER", "author_email": "geoffrey.royer@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development" ], "description": "Chattymarkov\n============\n\n|codecov| |travis build| |pypi version|\n\nDescription\n-----------\n\nChattymarkov is a python module that lets you generate random sentences\nthrough a markov chain algorithm.\n\nIt is useful mostly for bots which are aimed at learning from user\u2019s\nchat and generate totally w.t.f. answers.\n\nThe library can support multiple databases, especially redis which is\nquite suitable to store relevant information for markov chains.\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install chattymarkov\n\nExamples\n--------\n\nFrom ``examples/memory.py``\n\n.. code:: python\n\n #!/usr/bin/env python3\n from chattymarkov import ChattyMarkov\n\n markov = ChattyMarkov(\"memory://\")\n markov.learn(\"My favorite animal is the crocodile\")\n markov.learn(\"The word animal is six letters long\")\n print(markov.generate())\n\nHere the ``markov`` instance learns two sentences (presumably gathered\nfrom a chat network such as IRC or Discord). What is interesting is that\nthe \u2018animal is\u2019 sequence appears twice. So the ``generate()`` method,\nwhich returns a completely random result, may return an entirely built\nsentence which hasn\u2019t been ever written by anyone:\n\n.. code:: bash\n\n $ ./memory.py\n The word animal is the crocodile\n $ ./memory\n My favorite animal is six letters long\n\nThe more sentences, the funnier generated ones.\n\n\nSupported databases\n-------------------\n\n- Redis **(recommended)**: you can either provide a unix socket path (e.g.\n ``redis:///path/to/unix_socket.sock;db=0;password=foobar`` or a\n ``host:port`` (e.g ``redis://localhost:6739;db=0``). Extra parameters are\n separated by semi-colons after the unix socket path / host:port descriptor.\n For the async version, use ``redis_async://`` instead.\n- JSON: you can provide a path to a file that will be formated with JSON.\n Example: ``json:///path/to/file.json``\n- Memory: in-memory database, just provide ``memory://`` as a connect\n string. For the async version, use ``memory_async://`` instead.\n\nContribute\n----------\n\nIf you want to add some support to a database or redesign the library,\nplease make a pull request so we can discuss about it.\n\nTodo\n----\n\n- Support other databases?\n\n.. |codecov| image:: https://codecov.io/gh/Ge0/chattymarkov/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/Ge0/chattymarkov\n.. |travis build| image:: https://travis-ci.org/Ge0/chattymarkov.svg?branch=master\n.. |pypi version| image:: https://badge.fury.io/py/chattymarkov.svg\n :target: https://badge.fury.io/py/chattymarkov\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Ge0/chattymarkov", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "chattymarkov", "package_url": "https://pypi.org/project/chattymarkov/", "platform": "", "project_url": "https://pypi.org/project/chattymarkov/", "project_urls": { "Homepage": "http://github.com/Ge0/chattymarkov" }, "release_url": "https://pypi.org/project/chattymarkov/1.2.7/", "requires_dist": null, "requires_python": "", "summary": "Generate random sentences through markov chains.", "version": "1.2.7" }, "last_serial": 5257494, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "60303b7b015e1ec6159a3d212258c53b", "sha256": "c6b028bc5f1948a098ded3281cac6b16523ab65ba5fef14a9e9820654c8fe2fc" }, "downloads": -1, "filename": "chattymarkov-0.0.1.tar.gz", "has_sig": false, "md5_digest": "60303b7b015e1ec6159a3d212258c53b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2443, "upload_time": "2017-10-05T21:49:07", "url": "https://files.pythonhosted.org/packages/74/bb/1c3ad442237a61e331ca9242b34dde36e208ae880f67d0894764a226bfd0/chattymarkov-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0bb50ad2bd9ec5b387d6c6ae479785d5", "sha256": "ebb072c028a5103ae91218dcf6916f8884a47671ea78b61dab197eff7f606c8a" }, "downloads": -1, "filename": "chattymarkov-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0bb50ad2bd9ec5b387d6c6ae479785d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6246, "upload_time": "2017-10-07T10:14:58", "url": "https://files.pythonhosted.org/packages/93/f6/874b06e42dcf15a1b79601b2bda361bf0adc5ec54b9ccc8f50126fab3074/chattymarkov-0.0.2.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9399952e8023e11f0e642343bc802727", "sha256": "d2eb290659164da96a58825978a860ca0080ba31ed5a2a592fdee16d7111778b" }, "downloads": -1, "filename": "chattymarkov-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9399952e8023e11f0e642343bc802727", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6216, "upload_time": "2017-10-07T11:42:31", "url": "https://files.pythonhosted.org/packages/4f/5c/90e114a7ce2191ec4e40fbdc446b218788221e62e28fcc7e79c56e601bd9/chattymarkov-0.0.4.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9f094c7a7cd208581d1cb2cdd0d8f85b", "sha256": "8efe8c3d1068d94f95992c7a81449359c55eba01205151f545b371f285d5f176" }, "downloads": -1, "filename": "chattymarkov-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9f094c7a7cd208581d1cb2cdd0d8f85b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7863, "upload_time": "2017-11-21T21:26:07", "url": "https://files.pythonhosted.org/packages/7d/37/3549e242174e2d800a5579bdb2712a9648733a51f02ab1df039cf6fe8dfc/chattymarkov-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "61a12126614794937db73b989ca53585", "sha256": "f4e727217d42da0b5624683a38668c78e7a69a685d4d7d50c02800b189c7d1d1" }, "downloads": -1, "filename": "chattymarkov-1.0.1.tar.gz", "has_sig": false, "md5_digest": "61a12126614794937db73b989ca53585", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8163, "upload_time": "2017-11-21T21:30:37", "url": "https://files.pythonhosted.org/packages/7a/49/e9d3ad9f64251645e751f6251291094ed5f59432da3b5ac95b4d33266b32/chattymarkov-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "bf1f498573c5606f1b82aaa273554597", "sha256": "21815b4cd738bdc5ea5160a18e1730d6f335585ae00edd55c97c371f6db8df11" }, "downloads": -1, "filename": "chattymarkov-1.0.2.tar.gz", "has_sig": false, "md5_digest": "bf1f498573c5606f1b82aaa273554597", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8455, "upload_time": "2017-11-21T22:41:49", "url": "https://files.pythonhosted.org/packages/9a/fa/2dda72784fc78d638c6e417185831781b930942384a5c215fd58496b46ee/chattymarkov-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "7fe24b5bfd2daf259f5a634ee3b6e474", "sha256": "8675f07e1ff439a14c959628d4355ad93d7c3ef86b21f96b94226225db187f03" }, "downloads": -1, "filename": "chattymarkov-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7fe24b5bfd2daf259f5a634ee3b6e474", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8621, "upload_time": "2017-11-25T08:22:42", "url": "https://files.pythonhosted.org/packages/a4/c9/5c9f1461b8fd75ec0f97b378a8fdecd0313d29306cef539b21cd40483a86/chattymarkov-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "e3e5372bdb4a44f7e05e636063d932fc", "sha256": "b4d8df7b15f624445fb24866a98b50077c977db99a98b7854a4412513456244c" }, "downloads": -1, "filename": "chattymarkov-1.1.1.tar.gz", "has_sig": false, "md5_digest": "e3e5372bdb4a44f7e05e636063d932fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6325, "upload_time": "2018-04-21T13:55:44", "url": "https://files.pythonhosted.org/packages/e5/d8/a7728c1afe785e09c17d93be9ec51e2b42decf1902ca848793d8b69b06a1/chattymarkov-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "7ec674b4d2211e95d4e6080cb70df60d", "sha256": "d0b37e8ba0e92d1773a648fb037f38db7a421a7eca8419e484667c1f965736d2" }, "downloads": -1, "filename": "chattymarkov-1.2.0.tar.gz", "has_sig": false, "md5_digest": "7ec674b4d2211e95d4e6080cb70df60d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7087, "upload_time": "2018-12-07T08:51:42", "url": "https://files.pythonhosted.org/packages/cd/4d/3fc178ce320166465c59d3ce7c7bd424a7ab5dacb301ac47f5cb81536329/chattymarkov-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "8543e7fa8d3dac3966b2ea25890e5f15", "sha256": "ecdf763a714d74ffabb562008e0aa1db590d3e745801511bc73754088e1c8724" }, "downloads": -1, "filename": "chattymarkov-1.2.1.tar.gz", "has_sig": false, "md5_digest": "8543e7fa8d3dac3966b2ea25890e5f15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7098, "upload_time": "2019-01-04T16:55:14", "url": "https://files.pythonhosted.org/packages/01/af/0f52a9f9d53d36344754e3a49cd4bb84c62bda1623973d3487b020a58242/chattymarkov-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "bd11dedee762dc705896003b478abb69", "sha256": "815469211e3ea85cc9a64f6e40420e35835637f619d1c886bb9d1c7d89bb4568" }, "downloads": -1, "filename": "chattymarkov-1.2.2.tar.gz", "has_sig": false, "md5_digest": "bd11dedee762dc705896003b478abb69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7175, "upload_time": "2019-01-10T12:45:19", "url": "https://files.pythonhosted.org/packages/fc/6c/4f1ed32dce47f8f3175782846bf24b7e8bb14de9121977fb315d0c624919/chattymarkov-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "32e96f8af09a174136c505327836ff2b", "sha256": "0fbde5b12d2d6944328ed4f065db63437794e0591e7a086f8f86ad0dff9f78b1" }, "downloads": -1, "filename": "chattymarkov-1.2.3.tar.gz", "has_sig": false, "md5_digest": "32e96f8af09a174136c505327836ff2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7289, "upload_time": "2019-05-11T12:39:46", "url": "https://files.pythonhosted.org/packages/fa/bf/fe3435119b45cbcc8a4ae6dabd59fdd408e12d62b29ffb2a78e8573f6997/chattymarkov-1.2.3.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "9e2dae28fab622133d4744262287ca53", "sha256": "ab01c64a4d4ef04a193022b33e85d433255972102fcf53c8c3d97c948d8ae03f" }, "downloads": -1, "filename": "chattymarkov-1.2.4.tar.gz", "has_sig": false, "md5_digest": "9e2dae28fab622133d4744262287ca53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7314, "upload_time": "2019-05-11T21:43:13", "url": "https://files.pythonhosted.org/packages/4e/9c/5962f6aad027ca0408f986238f8aa462a27053b08441d07a69a1ffbad928/chattymarkov-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "c7d1e44da01f7662259095a9d5239df4", "sha256": "cfeda49a7ff39c40388729d4cd1fd2e88e40e5337d9a44da6eee18d64559dcd8" }, "downloads": -1, "filename": "chattymarkov-1.2.5.tar.gz", "has_sig": false, "md5_digest": "c7d1e44da01f7662259095a9d5239df4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7323, "upload_time": "2019-05-11T21:53:08", "url": "https://files.pythonhosted.org/packages/ae/22/b8518058108568f0ad3fbdac03641872dcdbff287477d7bdbdbfd48816dd/chattymarkov-1.2.5.tar.gz" } ], "1.2.6": [ { "comment_text": "", "digests": { "md5": "b32e86e0b48b9d93fb035bb0467428e8", "sha256": "48920f2c2559275dca1f5aacd2270948851e5fb3c3a0fb75af155117be9e75ba" }, "downloads": -1, "filename": "chattymarkov-1.2.6.tar.gz", "has_sig": false, "md5_digest": "b32e86e0b48b9d93fb035bb0467428e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7349, "upload_time": "2019-05-11T22:02:46", "url": "https://files.pythonhosted.org/packages/f5/c5/3cf71008e1f4d95077573336553f7f657c0a7b7c108ffc1672278f04afd1/chattymarkov-1.2.6.tar.gz" } ], "1.2.7": [ { "comment_text": "", "digests": { "md5": "a91cd5efd48adf6751feb3eee8a1aedc", "sha256": "8e65318d2c37113da53a310d336d7464686b730d2558776e951a371b042df284" }, "downloads": -1, "filename": "chattymarkov-1.2.7.tar.gz", "has_sig": false, "md5_digest": "a91cd5efd48adf6751feb3eee8a1aedc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7350, "upload_time": "2019-05-11T22:14:00", "url": "https://files.pythonhosted.org/packages/bf/77/acde6f001e264518ad58beff27e90168aeb11a52c07323f8ad44721dd7fd/chattymarkov-1.2.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a91cd5efd48adf6751feb3eee8a1aedc", "sha256": "8e65318d2c37113da53a310d336d7464686b730d2558776e951a371b042df284" }, "downloads": -1, "filename": "chattymarkov-1.2.7.tar.gz", "has_sig": false, "md5_digest": "a91cd5efd48adf6751feb3eee8a1aedc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7350, "upload_time": "2019-05-11T22:14:00", "url": "https://files.pythonhosted.org/packages/bf/77/acde6f001e264518ad58beff27e90168aeb11a52c07323f8ad44721dd7fd/chattymarkov-1.2.7.tar.gz" } ] }