Name | textile JSON |
Version |
4.0.3
JSON |
| download |
home_page | None |
Summary | Textile processing for python. |
upload_time | 2024-09-22 19:16:17 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
textile
text
html markup
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
<p><a href="https://github.com/textile/python-textile/actions/workflows/lint_and_test.yml"><img alt="python-textile" src="https://github.com/textile/python-textile/actions/workflows/lint_and_test.yml/badge.svg" title="python-textile" /></a> <a href="https://codecov.io/github/textile/python-textile"><img alt="" src="https://codecov.io/github/textile/python-textile/coverage.svg" /></a> <img alt="" src="https://img.shields.io/pypi/pyversions/textile" /> <img alt="" src="https://img.shields.io/pypi/wheel/textile" /></p>
<h1>python-textile</h1>
<p>python-textile is a Python port of <a href="https://textile-lang.com/">Textile</a>, Dean Allen’s humane web text generator.</p>
<h2>Installation</h2>
<p><code>pip install textile</code></p>
<p>Dependencies:
<ul>
<li><a href="https://pypi.org/project/nh3/">nh3</a></li>
<li><a href="https://pypi.org/project/regex/">regex</a> (The regex package causes problems with PyPy, and is not installed as a dependency in such environments. If you are upgrading a textile install on PyPy which had regex previously included, you may need to uninstall it.)</li>
</ul></p>
<p>Optional dependencies include:
<ul>
<li><a href="http://python-pillow.github.io/"><span class="caps">PIL</span>/Pillow</a> (for checking image sizes). If needed, install via <code>pip install 'textile[imagesize]'</code></li>
</ul></p>
<h2>Usage</h2>
<pre><code>import textile
>>> s = """
... _This_ is a *test.*
...
... * One
... * Two
... * Three
...
... Link to "Slashdot":http://slashdot.org/
... """
>>> html = textile.textile(s)
>>> print html
<p><em>This</em> is a <strong>test.</strong></p>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
<p>Link to <a href="http://slashdot.org/">Slashdot</a></p>
>>></code></pre>
<h3>Notes:</h3>
<ul>
<li>Active development supports Python 3.8 or later.</li>
</ul>
<h3>Running Tests</h3>
<p>To run the test suite, use pytest. `pytest-cov` is required as well.</p>
<p>When textile is installed locally:</p>
<pre><code>pytest</code></pre>
<p>When textile is not installed locally:</p>
<pre><code>PYTHONPATH=. pytest</code></pre>
Raw data
{
"_id": null,
"home_page": null,
"name": "textile",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "textile, text, html markup",
"author": null,
"author_email": "Dennis Burke <ikirudennis@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/d5/01/4effe1154982f860121e2a1fa3898b2d51c91aa7674f48027ef2d9e8f390/textile-4.0.3.tar.gz",
"platform": null,
"description": "<p><a href=\"https://github.com/textile/python-textile/actions/workflows/lint_and_test.yml\"><img alt=\"python-textile\" src=\"https://github.com/textile/python-textile/actions/workflows/lint_and_test.yml/badge.svg\" title=\"python-textile\" /></a> <a href=\"https://codecov.io/github/textile/python-textile\"><img alt=\"\" src=\"https://codecov.io/github/textile/python-textile/coverage.svg\" /></a> <img alt=\"\" src=\"https://img.shields.io/pypi/pyversions/textile\" /> <img alt=\"\" src=\"https://img.shields.io/pypi/wheel/textile\" /></p>\n\n<h1>python-textile</h1>\n\n<p>python-textile is a Python port of <a href=\"https://textile-lang.com/\">Textile</a>, Dean Allen’s humane web text generator.</p>\n\n<h2>Installation</h2>\n\n<p><code>pip install textile</code></p>\n\n<p>Dependencies:\n<ul>\n\t<li><a href=\"https://pypi.org/project/nh3/\">nh3</a></li>\n\t<li><a href=\"https://pypi.org/project/regex/\">regex</a> (The regex package causes problems with PyPy, and is not installed as a dependency in such environments. If you are upgrading a textile install on PyPy which had regex previously included, you may need to uninstall it.)</li>\n</ul></p>\n\n<p>Optional dependencies include:\n<ul>\n\t<li><a href=\"http://python-pillow.github.io/\"><span class=\"caps\">PIL</span>/Pillow</a> (for checking image sizes). If needed, install via <code>pip install 'textile[imagesize]'</code></li>\n</ul></p>\n\n<h2>Usage</h2>\n\n<pre><code>import textile\n>>> s = """\n... _This_ is a *test.*\n...\n... * One\n... * Two\n... * Three\n...\n... Link to "Slashdot":http://slashdot.org/\n... """\n>>> html = textile.textile(s)\n>>> print html\n<p><em>This</em> is a <strong>test.</strong></p>\n\n<ul>\n\t<li>One</li>\n\t<li>Two</li>\n\t<li>Three</li>\n</ul>\n\n<p>Link to <a href="http://slashdot.org/">Slashdot</a></p>\n>>></code></pre>\n\n<h3>Notes:</h3>\n\n<ul>\n\t<li>Active development supports Python 3.8 or later.</li>\n</ul>\n\n<h3>Running Tests</h3>\n\n<p>To run the test suite, use pytest. `pytest-cov` is required as well.</p>\n\n<p>When textile is installed locally:</p>\n\n<pre><code>pytest</code></pre>\n\n<p>When textile is not installed locally:</p>\n\n<pre><code>PYTHONPATH=. pytest</code></pre>\n",
"bugtrack_url": null,
"license": null,
"summary": "Textile processing for python.",
"version": "4.0.3",
"project_urls": {
"Homepage": "https://github.com/textile/python-textile",
"Issues": "https://github.com/textile/python-textile/issues",
"Repository": "https://github.com/textile/python-textile.git"
},
"split_keywords": [
"textile",
" text",
" html markup"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0ee99cfe163feb2892b2b79dcb5c0a62673418f4a9c4775c015ac33db09748a0",
"md5": "ed5983f3dacdc0b0059e32989510a138",
"sha256": "523fe64cd4d45ea0f7a2f9353d854663b6a932dbcb022f2e976daee921b43e2e"
},
"downloads": -1,
"filename": "textile-4.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ed5983f3dacdc0b0059e32989510a138",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 30583,
"upload_time": "2024-09-22T19:16:16",
"upload_time_iso_8601": "2024-09-22T19:16:16.559613Z",
"url": "https://files.pythonhosted.org/packages/0e/e9/9cfe163feb2892b2b79dcb5c0a62673418f4a9c4775c015ac33db09748a0/textile-4.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d5014effe1154982f860121e2a1fa3898b2d51c91aa7674f48027ef2d9e8f390",
"md5": "f82c4d64a1d49b010045bb9df0f95c58",
"sha256": "f2b0fa67769051a406020d2fa4d247d16967080aae407139f888c196eb23de6b"
},
"downloads": -1,
"filename": "textile-4.0.3.tar.gz",
"has_sig": false,
"md5_digest": "f82c4d64a1d49b010045bb9df0f95c58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 56908,
"upload_time": "2024-09-22T19:16:17",
"upload_time_iso_8601": "2024-09-22T19:16:17.799625Z",
"url": "https://files.pythonhosted.org/packages/d5/01/4effe1154982f860121e2a1fa3898b2d51c91aa7674f48027ef2d9e8f390/textile-4.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-22 19:16:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "textile",
"github_project": "python-textile",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "textile"
}