Skip to main content

Ammonia HTML sanitizer Python binding

Project description

nh3

CI PyPI

ammonia Python binding.

Installation

pip install nh3

Usage

import nh3

print(nh3.clean("<b><img src=\"\">I'm not trying to XSS you</b>"))

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

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

nh3-0.2.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distributions

nh3-0.2.1-cp37-abi3-win_amd64.whl (551.1 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.1-cp37-abi3-win32.whl (546.8 kB view details)

Uploaded CPython 3.7+ Windows x86

nh3-0.2.1-cp37-abi3-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ x86-64

nh3-0.2.1-cp37-abi3-musllinux_1_2_i686.whl (1.8 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

nh3-0.2.1-cp37-abi3-musllinux_1_2_armv7l.whl (1.8 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

nh3-0.2.1-cp37-abi3-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

nh3-0.2.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

nh3-0.2.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.7 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

nh3-0.2.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64

nh3-0.2.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

nh3-0.2.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

nh3-0.2.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.6 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

nh3-0.2.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.4 MB view details)

Uploaded CPython 3.7+ macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

nh3-0.2.1-cp37-abi3-macosx_10_7_x86_64.whl (697.7 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

Details for the file nh3-0.2.1.tar.gz.

File metadata

  • Download URL: nh3-0.2.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nh3-0.2.1.tar.gz
Algorithm Hash digest
SHA256 24ddfa84a4bcc222f04da13cd6706adb01a2c21f1fbf4ac8b808bc599599d3ce
MD5 0ecc6904ca1b4f73ee93c75c27c5b68c
BLAKE2b-256 4bb69d635dc0ae57f2274c6f32b84618d1bd01bfcf55bf30905aa15f9ac5a3a9

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: nh3-0.2.1-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 551.1 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nh3-0.2.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ad18e692e608cb9f3a96850f5b0b3619f95713ce8c88a0ae90ae554ed2e8f77f
MD5 f2671094fb5c308d948ef3ceb266ebd4
BLAKE2b-256 32d45e3c7bd5e51e4878b97b7025006b668939cee44aa4c1a4b3f876c72d9f12

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-win32.whl.

File metadata

  • Download URL: nh3-0.2.1-cp37-abi3-win32.whl
  • Upload date:
  • Size: 546.8 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nh3-0.2.1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 5406973bc66f8edf140f35b25fc002d527223625fe168c0e39bf180425532941
MD5 81925d2087479a3935a712714b17f16c
BLAKE2b-256 2b689ff36ece65b278a40bfb06e798abded7e6633c0800c24e9ad296b5cc7d07

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5ae9205385ca89bec62ba6345b5468033c557aeac0c3b321848746e4abb94744
MD5 f11f007d269f24efe3ca48b4c3a8f643
BLAKE2b-256 c68b26fab0f52615d929b9bd02515c3c8320a13726be4b3618694dcf87e841b6

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

  • Download URL: nh3-0.2.1-cp37-abi3-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7+, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nh3-0.2.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 177fd543a26ea062a8182627b473f65a889e1591647a4a8c1d2cf75384587756
MD5 fc127a5b3a425d200cd337583a037dad
BLAKE2b-256 e4f498c55690e8b09a68742a4ba06cf143f64dc88d3629200bfda995a6444bbe

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 609a8e8871cf396e783cb1ce34e68079c8a8fa89052c3a487fe6e453f11fc698
MD5 a43018f3984ae1a2b5d6aa3a2bbd100b
BLAKE2b-256 f99f1d67010917c7ff4f1ebd3cb7b957c555c6e6668e9934af71d1e00a99e3db

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cdd174407b95b867b6577901213272e468012922525be4c94000152a321f554a
MD5 2818af91249401622fd2414a816cc186
BLAKE2b-256 f71d991f3b27d940444e2deb3f31944afb3b7178b2bc42fee0801e2c755b3787

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc32992a458d803729a60e1e3fb6b7cc8d2df78967c3b70454851ea3bf3b71fe
MD5 11d5cab8a498d78e87451ea6f957bf79
BLAKE2b-256 e523f5bb83c81f6450032bd71b990bd907a2a133f125b0320207b7a1476e383b

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 30b74b3638b7a6111ca9cd2cf4985baf04677098e7b37578fe3b14c84d715360
MD5 78fc4724499d03cf3ed1a0f170dc4803
BLAKE2b-256 ae481a410ca34d4e3e7c5bf2fdb3b71fae2d053704d92641738befbf85e52c86

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 737083d621d3db7a104965155d22d78aaf4a236ad25ff03637d3fccfe03f3a6d
MD5 030e1ae0858f9851d9147e407c313fad
BLAKE2b-256 e38624d0e1609112325cab14389cf57ebaebe47df9dd89c37ff1dfba91056192

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 55374559eacecd594d81fb1eff5736749c5187c710b9bc76829a37e52db6782e
MD5 7d849af47d7760a8621be4e41a9af3a2
BLAKE2b-256 5f72deafb380692d77805e3b4838661778d41939e8e7ade4fbba854c8ddb9c77

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 6c46f22558070ace947b0375cd60fd94d7a8d813e002bf6a57213b6c637c8aeb
MD5 e6bebab85083b1a3c498adfedae4d657
BLAKE2b-256 8e824184c5b90f8ce4d947aae3d65ab0ae3bd768ac51e4d14776f3f5c507d394

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 55205298e4c7945e2d3b23c71084d57704e78070e2d57c83d29f76ce72f5fb59
MD5 53147065a37531b31ae283df21b22117
BLAKE2b-256 6896f4418335377b5f3fa8c5eff7a64b981cf2089a56293ef966e100367d89ee

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 aa19b7ef050b7f27ea25466b7862709d25228fd23f59a1f9f38d1e8c350f1a07
MD5 16640a67ca89f3f8a3a9bcdb8495121f
BLAKE2b-256 4ba86843d8c74ca6149621b7da0826aedd5f4a1f72f35efda32880bbc8443778

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 904d920e6ec003b0dc37bf15c399362d7ca43b0b31f96ddd730964265b9d0b84
MD5 acaf6b09903f93b0d82b3e6b096cea60
BLAKE2b-256 6bad6e76a00eec09e6e8ee8bce16279c537eefab31d949db06341df2904b658e

See more details on using hashes here.

File details

Details for the file nh3-0.2.1-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for nh3-0.2.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e7ca5478f10b39761b9b562813d78601b34ab1ca919c64a55cae24f0214581f8
MD5 7ecf394772dc72936b9216742d4b8b39
BLAKE2b-256 ef1108965e80596845abd633b1be3866440001480fa4f55008cc41b354c0fdbb

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