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.6.tar.gz (10.1 kB view details)

Uploaded Source

Built Distributions

nh3-0.2.6-cp37-abi3-win_amd64.whl (576.0 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.6-cp37-abi3-win32.whl (573.2 kB view details)

Uploaded CPython 3.7+ Windows x86

nh3-0.2.6-cp37-abi3-musllinux_1_2_x86_64.whl (1.8 MB view details)

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

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

nh3-0.2.6-cp37-abi3-musllinux_1_2_armv7l.whl (1.9 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.6-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.6-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.9 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

nh3-0.2.6-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.6-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.6-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.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

nh3-0.2.6-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.6-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.6-cp37-abi3-macosx_10_7_x86_64.whl (729.4 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.2.6.tar.gz
  • Upload date:
  • Size: 10.1 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.6.tar.gz
Algorithm Hash digest
SHA256 aeab40c636c3daa79008299701c36d71a971c1564b897af22c2093f14693e94a
MD5 f902084be0dea0654182fa341c3bc1f3
BLAKE2b-256 bcc3ff2a0d58e52072ce5ccf75218f63b5aa7a9c62bef79b8b74eb9a700e7aff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.6-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 576.0 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.6-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d7d27fae7a5453096a7e22c7b37098b35e4afad662a9e845f00d8b6f3f55a13f
MD5 f8ced3cd4cbfa5ad44390217911a4d14
BLAKE2b-256 bd8f7b9a2c3d4d4f21a61dc97b0a5f2e573dc0b28709b4094c396436695e6ef8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.6-cp37-abi3-win32.whl
  • Upload date:
  • Size: 573.2 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.6-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 ce0e339930d4d8bf7cdc7f85dd5f5fd8fa82741536591216837536bd5fc380b2
MD5 fc217d6b7f460e9f4e4b7c79b46dae16
BLAKE2b-256 17e0116b2b1de49f85d0090589bfc9a5581cfa07796edec1703446045e32da21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8081f9f55638b9b7b51f2136c3ba2dc2c52fe58310be252800f8f54d6211675b
MD5 c226469294a001167a124ff127b720e6
BLAKE2b-256 6c8dc63e75a413871722aa98a1218655db2461b7f1abafcc4700a190fccd6110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.6-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.6-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c2b9146b5d85324f8d827847aed0e7fc42056223501ecb5b1ebb4b5a827f5091
MD5 b9637765297383ac47edb6769dc26bfb
BLAKE2b-256 47c27540dd1b4866eb9899d1eea86ee30e593042a4a5482281b76b8c8c69dd0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 0c98889e9528e2ca73bc83ccfca06b12e28acb17a6ede546b23538f28ac7a284
MD5 177c3e94545dc3bc265000bb832cff25
BLAKE2b-256 7210b78315648c761c9b0b749b123f97cd1f0f79eceefb595a99dbf29f8f5fdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3fbdc98da0064d3f0572de92dbe43b005078f2daa7e67ae7be3284ef290d43dd
MD5 10e36d70a6430430256ea23f5697ea7c
BLAKE2b-256 55d720748799ae1503810462a5d13f32bbc08c727b813fbd79b1cb2ee8710807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a52369ae45364be71a664d0bb798a144944f66758c87c4c4e17eb1735a4d34f5
MD5 8a4d1001f77b741e919e754b8a0360fd
BLAKE2b-256 31363b629152e4c9da5beddf6f10edbef4f95df8989284b25f5cff38192ff332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 73cc969187822b939afc82a780b5ce474b8438a7c0bb0501a678e273529fb0fd
MD5 ba1c53c6dbf95e9b2173367b43e99c38
BLAKE2b-256 2c8889afc1615adf2973255c5abf7b930302b8f54ae26ddb63f54f12e5975e31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 adae39bfe066223eeb1ac4cc63a55709fb00a9291f073122ccf0ec014090ef0e
MD5 b625cf72431f4e3503fea5e2a734c37e
BLAKE2b-256 240dec451b63091585ac8ffc44c472737d821696457438ec9e4a37cfb4a3e9bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 1207dc958e760e51e07a3b00734582ff848372a17b5e43f106e738db5ca72503
MD5 b2ea9e638b000f4d8e0ba1eb7f53fc34
BLAKE2b-256 feb4d531985bbaf3bc012937de8c376573c3e651f6fc76267df5c1e4e510c94c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 5ea61b8055c6b4a8c4e6914f0ba457c152de48b8b3c5f936373dfeecf59c4281
MD5 e5d95efb8484c010c7de060a15e1fdc4
BLAKE2b-256 8389fc223677cbf6a69c3bff969f9fa1a100baf3a390f6ab6724d924fa1988b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 34edffd2cbe299107fde5e0444c504ebb8f311bf77ca605f8484cbe0bcb2c99c
MD5 c1aec05a43daccd2ab45b2a8bb822fd9
BLAKE2b-256 24b45423eb804918a11004f8ef1ce6a0052276628611d95f73d59a6a31f54f9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 e75018473fc6ad76e9a2d4573777410a0044107d10e8ee8710728c0818a583e9
MD5 4944f674d033bd53a605d9b97bc646b5
BLAKE2b-256 fa25f7e15b415402aa50f1c22c6fdb5a77138dea424d5c8ee481d05363720f33

See more details on using hashes here.

File details

Details for the file nh3-0.2.6-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.6-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1163fe4e124504856fd48635850c486600811bbc3f6817666d5c9582436a8a9e
MD5 2fa4c215b0d34e39926e654dc2cc9dc6
BLAKE2b-256 346da0c72ef3d50f3eaa5af4a7ae7edaa8636d37edc8da47a946ec790d747198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.6-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4eac6b1f17a54c73c86edb481f53ed2d908b7c3083004c927e5a8e017540f741
MD5 69b264eeeb25897ccb24e32de78e6692
BLAKE2b-256 8b0eb7c6976ca7b23de7f67cd4be89b5fab79b7274ab3910880c78dec53e4ac1

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