{ "info": { "author": "Tasdik Rahman", "author_email": "prodicus@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===============================\nmarkovipy\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/markovipy.svg\n :target: https://pypi.python.org/pypi/markovipy\n\n.. image:: https://img.shields.io/travis/prodicus/markovipy.svg\n :target: https://travis-ci.org/prodicus/markovipy\n\n.. image:: https://readthedocs.org/projects/markovipy/badge/?version=latest\n :target: https://markovipy.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/prodicus/markovipy/shield.svg\n :target: https://pyup.io/repos/github/prodicus/markovipy/\n :alt: Updates\n\n\n|logo|\n\nShe tries striking conversations with you with her cohesive sentences after you have given her fill of text to her. And no she won\u2019t complain about how big your corpus is. Also, don\u2019t ask her if she can pass the turing test. She might not talk to you again.\n\nI `wrote a blog post `__ explaining the motivation and what is there behind the scenes if you are interested\n\n============\nInstallation\n============\n\nTo install markovipy, run this command in your terminal:\n\n.. code-block:: console\n\n $ pip install markovipy\n\nThis is the preferred method to install markovipy, as it will always install the most recent stable release.\n\nIf you don't have `pip`_ installed, this `Python installation guide`_ can guide\nyou through the process.\n\n.. _pip: https://pip.pypa.io\n.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/\n\n\n=====\nUsage\n=====\n\nTo use markovipy in a project::\n\n >>> from markovipy import MarkoviPy\n >>>\n >>> # create MarkoviPy object\n >>> obj = MarkoviPy(\"/Users/tasrahma/development/projects/markovipy/corpus/ts_eliot/Gerontion_utf8.txt\", 3)\n >>>\n >>>\n >>> # arguments passed, is the initial corpus file and the markov chain length(defaults to 2 if nothing passed)\n >>> obj.generate_sentence()\n 'Cammel, whirled Beyond the circuit of the shuddering Bear In fractured atoms.'\n >>>\n >>> obj.generate_sentence()\n 'After such knowledge, what forgiveness? Think now History has many cunning passages, contrived corridors And issues, deceives with whispering ambitions, Guides us by vanities.'\n >>>\n >>> obj.generate_sentence()\n 'Gull against the wind, in the windy straits Of Belle Isle, or running on the Horn, White feathers in the snow, the Gulf claims, And an old man, a dull head among windy spaces.'\n >>>\n >>> obj.generate_sentence()\n 'Silvero With caressing hands, at Limoges Who walked all night in the field overhead; Rocks, moss, stonecrop, iron, merds.'\n >>>\n >>> obj.generate_sentence()\n \"Gives too soon Into weak hands, what's thought can be dispensed with Till the refusal propagates a fear.\"\n\n\n* Free software: GNU General Public License v3\n* Documentation: https://markovipy.readthedocs.io.\n\n\nFeatures\n--------\n\n* More tests to be added. As of now, some minimal tests have been written. Contributions more than welcome.\n* Create a web-interface with some fancy buttons/UI which would give you random quotes.\n\n\nLinks\n-----\n\n* `Blog post `__\n\n.. |logo| image:: http://i.imgur.com/cTY2kTK.png\n :target: https://markovipy.readthedocs.io\n\n\n=======\nHistory\n=======\n\n0.3.0(2017-05-30)\n-----------------\n\n* exposed the ``Markovipy`` class in the ``markovipy`` module.\n API changed from \n\n from markovipy.markovipy import MarkoviPy\n\nto \n\n from markovipy import MarkoviPy\n\n0.2.0 (2017-04-29)\n------------------\n\n* ``self.middle_value`` mapping becomes a ``defaultdict``\n* ``list_to_tuple()`` was removed to use just the ``tuple()``\n* moved ``self.words_list = get_word_list(self.filename)`` to `__init__()`\n\n0.1.1 (2017-04-14)\n------------------\n\n* fixes ``UnicodeDecodeError`` while reading files instead of using the normal ``open()``\n\n0.1.0 (2017-04-11)\n------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/prodicus/markovipy", "keywords": "markovipy", "license": "GNU General Public License v3", "maintainer": null, "maintainer_email": null, "name": "markovipy", "package_url": "https://pypi.org/project/markovipy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/markovipy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/prodicus/markovipy" }, "release_url": "https://pypi.org/project/markovipy/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Sentence generation using Markov Chains", "version": "0.3.0" }, "last_serial": 2909147, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b0ff6e8abef4492270b1982152f8cfa3", "sha256": "3357f8a23664548b9e6109fe030409d3d330de342d41d6da92f150674c31c15a" }, "downloads": -1, "filename": "markovipy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b0ff6e8abef4492270b1982152f8cfa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14900, "upload_time": "2017-04-11T22:27:18", "url": "https://files.pythonhosted.org/packages/6f/00/973ba7baa5b6b5e8605a0ede598b6b11f0905bd7fdfcd919e482b0326c50/markovipy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "39b0a274e80bbef2dbeeec99b6d1eebf", "sha256": "08b197ae3dd29c0fedf4b8c6f849810a9ee951ae19bdea9b4e99aee709de98bd" }, "downloads": -1, "filename": "markovipy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "39b0a274e80bbef2dbeeec99b6d1eebf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20284, "upload_time": "2017-04-13T18:46:10", "url": "https://files.pythonhosted.org/packages/91/62/14a380a421ae5675f041b6db8eac4095f130ab6ff79c01e2c1f93e2c1643/markovipy-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "235626c416b670267b70a32de198fdbf", "sha256": "45d7abae24730948dd7f49b7510506ca41e2c1fee310577b0ec6ed13b6234ded" }, "downloads": -1, "filename": "markovipy-0.2.0.tar.gz", "has_sig": false, "md5_digest": "235626c416b670267b70a32de198fdbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20323, "upload_time": "2017-04-29T13:54:41", "url": "https://files.pythonhosted.org/packages/6a/08/17536462bf1390a29f7e549c799c54fc747115c851ce43f9683c155575b2/markovipy-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4287e41eaaad03fd53309089182b8704", "sha256": "078f6344abe424b4880d1ee1510da3dd4caba87bea0d5c3d42e59af68d0054be" }, "downloads": -1, "filename": "markovipy-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4287e41eaaad03fd53309089182b8704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20865, "upload_time": "2017-05-30T11:26:19", "url": "https://files.pythonhosted.org/packages/4a/8b/2cb3c8ed5d46c803529c196889ac8add94ecc671ce139d5111898bcfaa5c/markovipy-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4287e41eaaad03fd53309089182b8704", "sha256": "078f6344abe424b4880d1ee1510da3dd4caba87bea0d5c3d42e59af68d0054be" }, "downloads": -1, "filename": "markovipy-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4287e41eaaad03fd53309089182b8704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20865, "upload_time": "2017-05-30T11:26:19", "url": "https://files.pythonhosted.org/packages/4a/8b/2cb3c8ed5d46c803529c196889ac8add94ecc671ce139d5111898bcfaa5c/markovipy-0.3.0.tar.gz" } ] }