{ "info": { "author": "Stephen Finucane", "author_email": "stephen@that.guru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Documentation", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Printing", "Topic :: Software Development", "Topic :: Software Development :: Documentation", "Topic :: Text Processing", "Topic :: Text Processing :: General", "Topic :: Text Processing :: Markup", "Topic :: Utilities" ], "description": "=======\nrst2txt\n=======\n\n.. image:: https://badge.fury.io/py/rst2txt.svg\n :target: https://badge.fury.io/py/rst2txt\n :alt: PyPi Status\n\n.. image:: https://travis-ci.org/stephenfin/rst2txt.svg?branch=master\n :target: https://travis-ci.org/stephenfin/rst2txt\n :alt: Build Status\n\nreStructuredText is pretty-damn consumable in its raw form, but extensive use\nof directives and roles can hamper things or leave the document incomplete in\nits raw form (cough, ``.. include``, cough).\n\n*rst2txt* allows you to work around this by evaluating the reStructuredText\nsource and stripping it of most of its formatting. The end result is a document\nthat's more readable and has elements that don't make sense in a plain text\ndocument, such as images, stripped.\n\n*rst2txt* is based on the ``sphinx.writer.text.TextWriter`` writer used by\nSphinx's `TextBuilder\n`__\nbut with the Sphinx-specific features stripped out.\n\nInstallation\n------------\n\n*rst2txt* is available on PyPI. To install, run:\n\n.. code-block:: shell\n\n $ pip install --user rst2txt\n\nUsage\n-----\n\nMost users will want just the ``rst2txt`` application:\n\n.. code-block:: shell\n\n $ rst2txt README.rst\n\nIt is also possible to call this programmatically though. This can be useful\nfor things like consuming README files:\n\n.. code-block:: python\n\n from docutils.core import publish_file\n import rst2txt\n\n with open('README.rst', 'r') as source:\n publish_file(source=source, destination_path='README.txt',\n writer=rst2txt.Writer())\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://pypi.org/project/rst2txt", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stephenfin/rst2txt", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "rst2txt", "package_url": "https://pypi.org/project/rst2txt/", "platform": "any", "project_url": "https://pypi.org/project/rst2txt/", "project_urls": { "Download": "https://pypi.org/project/rst2txt", "Homepage": "https://github.com/stephenfin/rst2txt" }, "release_url": "https://pypi.org/project/rst2txt/1.1.0/", "requires_dist": [ "docutils (>=0.11)", "pygments", "pytest ; extra == 'test'", "pytest-cov ; extra == 'test'" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "Convert reStructuredText to plain text", "version": "1.1.0" }, "last_serial": 4878931, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e6b3dabc8aba44e41017cad200208d1f", "sha256": "43a7ba66ac1bc0b8d4c22f756d40c2d55fa48c98ff95c996225bd3c5a6bd4b26" }, "downloads": -1, "filename": "rst2txt-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e6b3dabc8aba44e41017cad200208d1f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 12089, "upload_time": "2018-12-12T15:56:58", "url": "https://files.pythonhosted.org/packages/27/9a/650d6df02d1d2716ec4a4311040ec53c77ac0349773b6d46636702571394/rst2txt-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d61ac55ff689b0ef5099571f08aff647", "sha256": "fbfd1f03c9804e7ce76d6e3ccaef1649788f275ecd7b682cf9c99b75e84177ab" }, "downloads": -1, "filename": "rst2txt-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d61ac55ff689b0ef5099571f08aff647", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 15567, "upload_time": "2018-12-12T15:56:59", "url": "https://files.pythonhosted.org/packages/43/78/ba28a0121bb134add314d36f4f6686c6e9e4747f15792affea77621446f3/rst2txt-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "3ad7d672ab0434e14737255db50f2f98", "sha256": "658e072c2eeb64debf14552c6f08b5ed26b05ddd2206459a03582ed7cb0e944a" }, "downloads": -1, "filename": "rst2txt-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ad7d672ab0434e14737255db50f2f98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 12108, "upload_time": "2019-02-28T12:00:00", "url": "https://files.pythonhosted.org/packages/9d/d4/cee0341774dbdd4c128816ebc31fbbf39a11c79220a96a4f1152aa511caa/rst2txt-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "112f046ce7b996f09de64f07130cbe4f", "sha256": "ded9e4fb2686f039eb06c0608980fd13982998ce365a9d008a495649ed85f7cd" }, "downloads": -1, "filename": "rst2txt-1.1.0.tar.gz", "has_sig": false, "md5_digest": "112f046ce7b996f09de64f07130cbe4f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 15723, "upload_time": "2019-02-28T12:00:02", "url": "https://files.pythonhosted.org/packages/c9/a2/e0f1a134b2aceb5910776c1bfc804f4343f5a6cc221909d9fc7cb6c8dd48/rst2txt-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3ad7d672ab0434e14737255db50f2f98", "sha256": "658e072c2eeb64debf14552c6f08b5ed26b05ddd2206459a03582ed7cb0e944a" }, "downloads": -1, "filename": "rst2txt-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ad7d672ab0434e14737255db50f2f98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 12108, "upload_time": "2019-02-28T12:00:00", "url": "https://files.pythonhosted.org/packages/9d/d4/cee0341774dbdd4c128816ebc31fbbf39a11c79220a96a4f1152aa511caa/rst2txt-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "112f046ce7b996f09de64f07130cbe4f", "sha256": "ded9e4fb2686f039eb06c0608980fd13982998ce365a9d008a495649ed85f7cd" }, "downloads": -1, "filename": "rst2txt-1.1.0.tar.gz", "has_sig": false, "md5_digest": "112f046ce7b996f09de64f07130cbe4f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 15723, "upload_time": "2019-02-28T12:00:02", "url": "https://files.pythonhosted.org/packages/c9/a2/e0f1a134b2aceb5910776c1bfc804f4343f5a6cc221909d9fc7cb6c8dd48/rst2txt-1.1.0.tar.gz" } ] }