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

Uploaded Source

Built Distributions

nh3-0.2.0-cp37-abi3-win_amd64.whl (549.2 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.0-cp37-abi3-win32.whl (545.4 kB view details)

Uploaded CPython 3.7+ Windows x86

nh3-0.2.0-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.0-cp37-abi3-musllinux_1_2_i686.whl (1.7 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-cp37-abi3-macosx_10_7_x86_64.whl (681.2 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for nh3-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c25804e2212dbddc1a6853a94c8f9c38ce051bffb882d0b155716e1e0e16e5fd
MD5 6e7663a36afa083c542c61c3a8482c2e
BLAKE2b-256 1208a7d8a00f2de597f6a67200902ae06e61eed33004e9fe1f86d34599f98d9c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nh3-0.2.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 69a1f1c70c2dffe24afe57aeec2fea8b07bd9417d4ace8b6513b070144c1aa3d
MD5 779e9a5a9a3e058f66ff57251e76f4fb
BLAKE2b-256 208d23ec22b170b4b5d3070e2abbb3aa809e8e13495f14b1f9207f1f65a2f198

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.0-cp37-abi3-win32.whl
  • Upload date:
  • Size: 545.4 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for nh3-0.2.0-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 67d5d264b11b12e2d348edb90098301cd1675e66b0182dd297b12fc1c1a542fa
MD5 81c1b48fe24f5d598c13c6ca913b67c0
BLAKE2b-256 ab831001a074ff004873068daae645422ef6845947ed26f0811e4bed1fbb3499

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ff2cf5aeb75c9068706fd2146a925ec77b9a0aab80e6c9e12887b07529d6465d
MD5 747f67e6b18b404b98180c70bb511f14
BLAKE2b-256 0fbfcc828e3e90c59215f79ac7d67894c705cbf1b0459fd6761f8864fe16fff5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nh3-0.2.0-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 5cbdba05f219ee8464db2a7b663cd480120fa5c29a22dac81527b42ef62ebb3e
MD5 35772640e80faed2622659947542b430
BLAKE2b-256 f43ad53da9e0b704f6aa9815cd10057ab7472cf4bbf6ccbde75805534e7fc137

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 141469132d229dcf7ea222787a1b2267cb844c6259cdfe3fe2aa93c9517cc0bc
MD5 2c35caceee6df3e1727778a5285036fa
BLAKE2b-256 ef7707351388b00d036dba5082da343ac9f483c60b7447e0e7fc1bfea2b63a62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 070abc4f02f6389568f5bbc56260fcbd6a170458d4bd3faaa0c0a1faa8a94c5c
MD5 dbe937def637177c6fd7f4afd2d579ba
BLAKE2b-256 0155073cabaa434f2ba9b55959d9543288bd05ce3d01ecabdad8ba63f45e3f21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e88c4e5fc9838fa905d59c445200814f4c39363553be2e538626646fe93a5037
MD5 5f0ad3fa78d18a193b54879e5deb9751
BLAKE2b-256 eb2890c4327db999e4c0e0df0b32610560fb9945266ddf20eb87283d685a6322

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 ec6d773d64733550ac9d6583c1e516849c0d4c16971c5d99c53cfa86e8aa310d
MD5 05613420b048b31e721cbb006a366028
BLAKE2b-256 ce545b4ebe377d8fcca289c3cafda578a31cce08a9ff4b62ef524adaf5a3c992

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 5771901dd50fd3407e38471f1c53988bd3c4caa852261f3e5659965b2ca14521
MD5 138a1db42b54f5974994f96dface9c93
BLAKE2b-256 4df573a0b74fb16e82649fe4906bcee5df0d9a539c2223f646aedf29bde35782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 ed6c77ff67e8748ca3e2ce5837673cb74caee9655968ee522de40d5f454eb72b
MD5 4a99e2165aec5155163164eed7c6bf06
BLAKE2b-256 f9572efde9f1ecd7dbe152b501c58196a9f58a753a975586fcccd0aa7429a981

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 667a4e799647ed5b2f931eabccbac36e6e055ab2aec2275ba279f1d1c1f13ce2
MD5 ee1f730a90a3ec9cded84a07e2cc72e0
BLAKE2b-256 0057aa4b4594f4adfdb1991303f392494c2af322a69c3220879c452ab662e833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2838533e0023ac3f41f5d382df397cdf85f34cce7dfca350715de990b19ce10f
MD5 51d4db4d4b2a84fccbaae1b3f1141e2e
BLAKE2b-256 5283c9829f99fe7a49ced9c06879777d6fc7392c9abe2806dbb504d3e2571dfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 c029d3b1daad44dec07735cf14fad00c263df67706af08302d6c9fd1d18343c1
MD5 e9c353d47bd1aa2c18a6727beb44b30b
BLAKE2b-256 70c88cfe9fd9e5e6c58dad0f9b79cd2835b322e4d20a7c746112ee2186977f03

See more details on using hashes here.

File details

Details for the file nh3-0.2.0-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.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 03ec26dc5814ad595e51c7d1d88f6d9f894f9dbdf0529faeb1781ecf498615f6
MD5 56290a03203f51880c1b8f0fc57de7ca
BLAKE2b-256 d3fa5c9ca73c533f1a93887fa9dc1b4ebcaef2939a7b4913dd5e9ce4ac2746f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 215f897cdbc88f83ae1d52fb8a78e59c25920fed2de68dc01bd8ee9d7620c51a
MD5 c3c60a1bed50ee99a87c6509b965731e
BLAKE2b-256 130c6882a53994efd7227154984c21d350a7942b4c4b32527d65a92f63cfcd3a

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