An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

linking
=======

[![Badge](https://badge.fury.io/py/linking.svg "Badge")](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'
```