autolink-0.1.2
توضیحات
Linkify plain text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | autolink-0.1.2 |
| نام | autolink |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexander Schepanovski |
| ایمیل نویسنده | suor.web@gmail.com |
| آدرس صفحه اصلی | http://github.com/Suor/autolink |
| آدرس اینترنتی | https://pypi.org/project/autolink/ |
| مجوز | BSD |
Autolink
========
Convert URL-like and email-like strings into links.
Installation
------------
::
pip install autolink
Usage
-----
.. code:: python
from autolink import linkify
linkify('some text google.com, ...')
# -> 'some text <a href="http://google.com">google.com</a>, ...'
linkify('https://github.com', {'rel': 'nofollow'})
# -> '<a href="https://github.com" rel="nofollow">https://github.com</a>'
linkify('me@ya.ru')
# -> '<a href="mailto:me@ya.ru">me@ya.ru</a>'
نحوه نصب
نصب پکیج whl autolink-0.1.2:
pip install autolink-0.1.2.whl
نصب پکیج tar.gz autolink-0.1.2:
pip install autolink-0.1.2.tar.gz