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

Uploaded Source

Built Distributions

nh3-0.2.3-cp37-abi3-win_amd64.whl (552.3 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.3-cp37-abi3-win32.whl (550.6 kB view details)

Uploaded CPython 3.7+ Windows x86

nh3-0.2.3-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.3-cp37-abi3-musllinux_1_2_i686.whl (1.8 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3-cp37-abi3-macosx_10_7_x86_64.whl (702.6 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.2.3.tar.gz
  • Upload date:
  • Size: 9.0 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.3.tar.gz
Algorithm Hash digest
SHA256 0c2d3d6e0553f907a140304ba1f510a4dd8f3803dc7805fb6b357d32ede23a68
MD5 02e822448efd79f4fcc0c2f896e1ccc7
BLAKE2b-256 353392aa8fbd0bb4e546f2b35635debccf69540fbe9791b4d982bf9e601524bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.3-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 552.3 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.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 de4e57ffa84ba52503736f1812c2d10cde5b50b2e7b35e415995f7b75f670689
MD5 0125caccbda8b74487212352bf8d6718
BLAKE2b-256 0b8b4fbae3c90e1a41bde6152f074a62ab035f6ab4e053c7ca1c9893be7103d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.3-cp37-abi3-win32.whl
  • Upload date:
  • Size: 550.6 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.3-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 0c2ffaea0348d8cac48c5911708b9887b77b954e6f1d5e7f079e9a8fedaf6984
MD5 9f29c02a1babfa53f704afccc6edc59c
BLAKE2b-256 a94fd4a4df3f7209c0496bed28cc615d1d55ae4c2ed3b2d88c2eaf195964f932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0d45a7d6930ab5c8c86ce49d5e9eca43a40d5ed942db8e8213f50dbfef7c3de4
MD5 6e67590459cc13d8fc598b075f4ec2b6
BLAKE2b-256 01cbb41d0d3d22e3f139c7273fad0d608126a77332bb983649618b1a69628ee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.3-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.3-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e02df7f281ac2d1823333cd35606bbb4d0f0e97ba78e31d867fa0aa2af278f8f
MD5 b88cb4f506150aa7a918a1d47a0b5fd1
BLAKE2b-256 1fe366d733dd86a96bf2559fdd866d0a09968cc3f7b9d8be7b9f8c833e92d469

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 fddd7a50d71c96bc0854e2f6dda4106d4d63c9a2813adda756b56e50da6f597f
MD5 b3b8e38fcb31302ecea820023f7b3452
BLAKE2b-256 bef08eb9bc49bc863e408abe1bbf458f30568c18637d91ec4ca06d6b2fe70a0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f8deb2c6e3547b924deeef38ca34d59210c1c0de49f28c8ae5181d6bec6d6811
MD5 b50a1206887a69ab905d0a2e734dff5d
BLAKE2b-256 ae6ab4cd785425444d58d52a9308e71b02bc20c6c5be2b41ecf2e75884abe896

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dea4894d0774280ba4a90035a6b3f1ddb17e85c317cbaae6ff74333627a74407
MD5 a8dd1adddb0d341b80f3662dfc381d38
BLAKE2b-256 bc68d55a13a9050277263a7c5cd873c2b1d0a5a96cc43f68aa10bb0af009499e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 858ec7e89cb428e0b3332f69a99b3785b369725725d24c3e4835402c2a698e4b
MD5 08183af6a97b29acc130c5150b7dace2
BLAKE2b-256 36fa5ee66cb4905a7d00b52a543958fbcacac084670d4886a9252af89884d9de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 9690db220444d829ce27a7d0e1b5e4c0f299369ed6726e7e4653da1a0b7c15f7
MD5 0a4c13b45ae309642eae84f40af52e2b
BLAKE2b-256 ca3d16e15b5c73c5dc311237d34f3fad72152452a5f06cefbab8cf903803af78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 19fb90b7a9e1a1f0f964d9bf64a8ed95421be3354293c6e41d87dfef1df9f398
MD5 280e3a421f32524322e610a1edb9106a
BLAKE2b-256 2118a630c101ded4fe4255b30d40d48bb1b8745d8572b591b2de8308cceba199

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ccbf14f683ca34352396397c228a0a55235f8468f437b466e6047774a749c417
MD5 13c0ea91d831512604584898e27acc93
BLAKE2b-256 10cb8ffcbeb7a529391f8987d8d87150366a68b10cc0f5eaa36fc91e6faa0a17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 24e8b5cb00b36976953727b24a2d7b5f898a4d861dffa176ac8a057e778eabc2
MD5 f0ea0129ef1654064cb6ec9eb3669a61
BLAKE2b-256 4430903cde274c11367662009dbdbd02c4cd312c7c07f3a6e60d4fdb66cbd153

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 65be8d65f61eef0130708289b1a607e2f35d9b1d29fa06549e12777422de5975
MD5 05b27323a791544606d73481f2f864cc
BLAKE2b-256 443c3f8bce495cbab129958380fcfc09de8b2dba05f1cb77707580731c4d5ff1

See more details on using hashes here.

File details

Details for the file nh3-0.2.3-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.3-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a7e7965755a3cdc8954b55aa5610ec30c664b646d6f7e388c7c6b3a082c5976a
MD5 386ffb84d34e69f362df4f706abc0ad6
BLAKE2b-256 5b781541aed0ae65e384034b8bf26a6c4432700e23921af2c36a87c960132c8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.3-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 cfc6ed80b2b7cd40096d8a0cfb5345a644e093ed92fc84c282621bfa0b10efda
MD5 991a5c7aa87faf77b26806e54aba442e
BLAKE2b-256 f92f93544f50f65ef6e2c0e9839dd50b7fdfb8c04e74b4644fbd75701a7f6389

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