https://github.com/w95/linking
linking is easy to use linkifier that converts URLs and emails to HTML hyperlinks
https://github.com/w95/linking
email linkif linkify-text linking url
Last synced: 5 months ago
JSON representation
linking is easy to use linkifier that converts URLs and emails to HTML hyperlinks
- Host: GitHub
- URL: https://github.com/w95/linking
- Owner: w95
- License: mit
- Created: 2019-12-25T22:57:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-25T23:02:33.000Z (over 6 years ago)
- Last Synced: 2025-09-22T01:18:38.226Z (8 months ago)
- Topics: email, linkif, linkify-text, linking, url
- Language: Python
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
linking
=======
[](https://badge.fury.io/py/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](https://pypi.org/project/linking/), so you can install it with ``pip``::
$ pip install linking
Basic use
---------
The simplest way to use linking is:
```python
import linking
linking.text('some text tesla.com, ...')
# -> 'some text tesla.com, ...'
linking.text('https://tesla.com', {'rel': 'nofollow'})
# -> 'https://tesla.com'
linking.text('elon@tesla.com')
# -> 'elon@tesla.com'
```