Skip to main content

Linkify plain text, convert URLs and emails

Project description

#linking

Badge

linking is easy to use linkifier that converts URLs and emails to HTML hyperlinks

Code https://github.com/w95/linking
Issue tracker https://github.com/w95/linking/issues
License MIT License; see LICENSE file

###Installing linking

linking is available on PyPI, so you can install it with pip::

$ pip install linking

###Basic use

The simplest way to use linking is:

import linking

linking.text('some text tesla.com, ...')
# -> 'some text <a href="http://tesla.com">tesla.com</a>, ...'

linking.text('https://tesla.com', {'rel': 'nofollow'})
# -> '<a href="https://tesla.com" rel="nofollow">https://tesla.com</a>'

linking.text('elon@tesla.com')
# -> '<a href="mailto:elon@tesla.com">elon@tesla.com</a>'

Release history Release notifications

Download files

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

Files for linking, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size linking-0.0.4.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page