linkable-py
Detect URL, Email, Hashtag and Mention from plain-text and convert into HTML hyperlink.
Install
$ pip install linkable
Usage
Basic:
from linkable import Linkable
text = 'This is test with a #hashtag from @linkable on github.com'
print(Linkable(text))
Output:
This is test with <a href="/hashtag/#hashtag">#hashtag</a> from <a href="/@linkable">@linkable</a> on <a href="http://github.com">github.com</a>
Links list:
from linkable import LinkableList
text = 'This is test with a #hashtag from @linkable on github.com'
print(LinkableList(text).links)
Output:
['#hashtag', '@linkable', 'github.com']
Metadata
Release files for linkable 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linkable-0.2.2.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linkable-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / linkable-0.2.2.tar.gz
| Download URL | linkable-0.2.2.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f5ee63a10f2c0d4d32c29ff2c951d36b8cdac40f4b21fad223628e1fdbfce65
|
|
BLAKE2b-256 checksum How to use checksums |
f68078e2c202e5f6fef5f85ce5fa65f9bb75e5768107611495a4d0baa7ce7786
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / linkable-0.2.2-py3-none-any.whl
| Download URL | linkable-0.2.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86454edb32a9b892752b1934acaad78f854a58deedee13fb8ef8cdd1abde451b
|
|
BLAKE2b-256 checksum How to use checksums |
dc82a9f0e11f8f4f872dd5b38a6f4e9fd22bb1fcb7bf7841bba60f03e58116a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|