Skip to main content

Linkify plain text

Project description

Convert URL-like and email-like strings into links.

Installation

pip install autolink

Usage

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>'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for autolink, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size autolink-0.1.2.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page