zwsp_linker
zwsp_linker is a Python package designed to insert zero-width spaces into URLs within text. This is particularly useful for preventing automatic hyperlinking in markdown or other text rendering environments, while still allowing users to easily copy and paste the complete URL.
Installation
To install zwsp_linker, use pip:
pip install zwsp_linker
Usage
Using zwsp_linker is straightforward. Import the safelink_zwsp function and pass your text to it.
from zwsp_linker import safelink_zwsp
text_with_urls = "Check out this link: http://example.com and another one https://anothersite.org."
modified_text = safelink_zwsp(text_with_urls)
print(modified_text)
# Expected output (the zero-width space is invisible):
# Check out this link: http://example.com and another one https://anothersite.org.
How it works
The safelink_zwsp function uses regular expressions to find common URL schemes (like http:// or https://) and inserts a zero-width space character (U+200B) immediately after the scheme. This subtle modification disrupts the automatic hyperlinking behavior of many renderers without affecting the visual appearance or the ability to copy the URL.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
zwsp_linker is licensed under the MIT License.
Author
Eugene Evstafev hi@eugene.plus - LinkedIn
Repository
The project is hosted on GitHub: https://github.com/chigwell/zwsp_linker
Metadata
Release files for zwsp-linker 2025.9.1498
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zwsp_linker-2025.9.1498.tar.gz | 2.6 kB | Without provenance | Details for zwsp_linker-2025.9.1498.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zwsp_linker-2025.9.1498-py3-none-any.whl | Python 3 | none | any | Details for zwsp_linker-2025.9.1498-py3-none-any.whl |
Total release size: 5.8 kB
Release files / zwsp_linker-2025.9.1498.tar.gz
| Download URL | zwsp_linker-2025.9.1498.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac67eb552a8bbe9d00549f4f0b8475a65b390935472e5da24e428ebaa854cdbe
|
|
BLAKE2b-256 checksum How to use checksums |
a53b39c8204ee668fc9166d8b7dce2934b5899ea099a3ffaf34ddfb1265e1611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / zwsp_linker-2025.9.1498-py3-none-any.whl
| Download URL | zwsp_linker-2025.9.1498-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fd479104eb180dc715aef08bf0cae5440eb5e5abda149f9b232457690ae6efc
|
|
BLAKE2b-256 checksum How to use checksums |
f159b758296433f41639190c11f2336d043bed3baa44a0b340b530994b0ff787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for zwsp-linker 2025.9.1498
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.