textile-4.0.3
توضیحات
Textile processing for python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | textile-4.0.3 |
| نام | textile |
| نسخه کتابخانه | 4.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Dennis Burke <ikirudennis@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/textile/ |
| مجوز | - |
<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>
نیازمندی
| مقدار | نام |
|---|---|
| - | nh3 |
| mplementation_nam | regex>1.0; |
| xtr | pytest; |
| xtr | pytest-cov; |
| xtr | Pillow>=3.0.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl textile-4.0.3:
pip install textile-4.0.3.whl
نصب پکیج tar.gz textile-4.0.3:
pip install textile-4.0.3.tar.gz