textile


Nametextile JSON
Version 4.0.3 PyPI version JSON
download
home_pageNone
SummaryTextile processing for python.
upload_time2024-09-22 19:16:17
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
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&#8217;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
&gt;&gt;&gt; s = &quot;&quot;&quot;
... _This_ is a *test.*
...
... * One
... * Two
... * Three
...
... Link to &quot;Slashdot&quot;:http://slashdot.org/
... &quot;&quot;&quot;
&gt;&gt;&gt; html = textile.textile(s)
&gt;&gt;&gt; print html
&lt;p&gt;&lt;em&gt;This&lt;/em&gt; is a &lt;strong&gt;test.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;One&lt;/li&gt;
	&lt;li&gt;Two&lt;/li&gt;
	&lt;li&gt;Three&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Link to &lt;a href=&quot;http://slashdot.org/&quot;&gt;Slashdot&lt;/a&gt;&lt;/p&gt;
&gt;&gt;&gt;</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&#8217;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&gt;&gt;&gt; s = &quot;&quot;&quot;\n... _This_ is a *test.*\n...\n... * One\n... * Two\n... * Three\n...\n... Link to &quot;Slashdot&quot;:http://slashdot.org/\n... &quot;&quot;&quot;\n&gt;&gt;&gt; html = textile.textile(s)\n&gt;&gt;&gt; print html\n&lt;p&gt;&lt;em&gt;This&lt;/em&gt; is a &lt;strong&gt;test.&lt;/strong&gt;&lt;/p&gt;\n\n&lt;ul&gt;\n\t&lt;li&gt;One&lt;/li&gt;\n\t&lt;li&gt;Two&lt;/li&gt;\n\t&lt;li&gt;Three&lt;/li&gt;\n&lt;/ul&gt;\n\n&lt;p&gt;Link to &lt;a href=&quot;http://slashdot.org/&quot;&gt;Slashdot&lt;/a&gt;&lt;/p&gt;\n&gt;&gt;&gt;</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"
}
        
Elapsed time: 4.19837s