Django integration with for nh3, Python binding to Ammonia HTML sanitizer Rust crate.
Project description
Django integration with for nh3, Python binding to Ammonia HTML sanitizer Rust crate.
Requirements
Python 3.10 to 3.12 supported.
Django 3.2 to 5.0 supported.
Contributing
The project is in it’s infancy, setup because of bleach becoming deprecated.
It is setup with pre-commit to maintain code quality. This includes black for formatting, ruff for linting & checks. This is much like django, so currently referring to django’s own style docs will be most helpful
To contribute, fork the repo and clone your fork to your machine. Then setup a virtual environment however you prefer to do this. Then run the following setup the basics:
python -m pip install pre-commit tox
pre-commit install
Tox is used to run tests locally and on github. The test requirements are generated using pip-tools via requirements/compile.py.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_nh3-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 454f852d231ca42f4fca8563386723aad337d240b71e8a0733d1448f787a3534 |
|
MD5 | 739ed5c362821acce36d8055c6e507d9 |
|
BLAKE2b-256 | bdf34026eef3ae313ff733b92441f17085dd9f1f6bf48afc18be54f9b8814294 |