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>'
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
autolink-0.1.2.tar.gz
(4.5 kB
view details)
File details
Details for the file autolink-0.1.2.tar.gz
.
File metadata
- Download URL: autolink-0.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42e8573ee2007b0b98b4144b734933ae42321dcf538424f041a08faa751a0a9d |
|
MD5 | f23d874e86ce633872b629c8ca300889 |
|
BLAKE2b-256 | 8fd7b89e1195beabc2d7d0a17c65b0cde6efff1990c2203657454849e0e43f31 |