Skip to main content

Django integration with for nh3, Python binding to Ammonia HTML sanitizer Rust crate.

Project description

actions pypi black pre-commit

Django integration with for nh3, Python binding to Ammonia HTML sanitizer Rust crate.

nh3 docs

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_nh3-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file django_nh3-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_nh3-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for django_nh3-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10df44fd9c1d1bc5d88739094826c636c2c256ba9d89d17e4356280bb8e159a0
MD5 5694b44151f980510a48f47401573ad3
BLAKE2b-256 1e2bbc9c86932e568af2e70cff0498450eec10efe3c004b764d27ea17c6586a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page