Linkify plain text, convert URLs and emails
Project description
#linking
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>'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
linking-0.0.4.tar.gz
(10.4 kB
view details)
File details
Details for the file linking-0.0.4.tar.gz.
File metadata
- Download URL: linking-0.0.4.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43c422fc58b995a78ec4ff9bb05ebc31743b51a30cf6e85afa25bd690a701ef5
|
|
| MD5 |
ad5744f2b0516b4f1d9a452112712f3d
|
|
| BLAKE2b-256 |
dcd38470eee7ae966af684ea050fca39402516ba28b0fd68babb948301cb61fd
|