Django Evade is a Django template filter application to pseudo-randomly convert literal HTML characters into equivalent named, numeric, or hexadecimal HTML character entity references.
Useful for obscuring mailto hyperlinks to prevent spammers from collecting e-mail addresses. Inspired by a Django snippet, but rewritten to use the Format Specification Mini-Language. The result is a more severe form of escape, leading to the name “evade.”
Install
$ pip install django-evade
Add to settings.py.
INSTALLED_APPS = [
# ...
'evade',
]
Usage
{% load evade_tags %}
{{ "me@example.com"|evade }}
One possible result:
me@example.com
Note the use of named (@), decimal (p), hexadecimal lowercase (m), and hexadecimal uppercase (l) forms, and the varying length of zero fills (m, e). Each character entity reference is pseudo-randomized.
Can also be imported as a standalone Python module:
>>> from evade import evade
>>> evade("©")
'©'
>>> evade("©")
'©'
>>> evade("©")
'©'
Metadata
Release files for django-evade 0.2.3
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 | |
|---|---|---|---|---|
| django-evade-0.2.3.tar.gz | 2.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_evade-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.9 MB
Release files / django-evade-0.2.3.tar.gz
| Download URL | django-evade-0.2.3.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dcd10a0ad1ca333cd81ed93dc2a2d23d416995e6189a96f7cba4cd97b11c46b
|
|
BLAKE2b-256 checksum How to use checksums |
9bedeb9e284fdc0fd12dace9a22eec99aa52b48819f845bcd640982e4655aae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.9
|
Release files / django_evade-0.2.3-py3-none-any.whl
| Download URL | django_evade-0.2.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae65f0ace768c7d6aee1d27850e923ee96a0d0770d91c6b4711aaabf067e0e35
|
|
BLAKE2b-256 checksum How to use checksums |
fdbff363f2d7c43669b3ca987b5831977696d0132765bac67e202b19618d265e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.9
|
Security for django-evade 0.2.3
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.