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

Uploaded Source

Built Distributions

nh3-0.1.2-cp36-abi3-win_amd64.whl (534.3 kB view details)

Uploaded CPython 3.6+ Windows x86-64

nh3-0.1.2-cp36-abi3-win32.whl (521.3 kB view details)

Uploaded CPython 3.6+ Windows x86

nh3-0.1.2-cp36-abi3-musllinux_1_2_x86_64.whl (1.7 MB view details)

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

nh3-0.1.2-cp36-abi3-musllinux_1_2_i686.whl (1.7 MB view details)

Uploaded CPython 3.6+ musllinux: musl 1.2+ i686

nh3-0.1.2-cp36-abi3-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.6+ musllinux: musl 1.2+ ARM64

nh3-0.1.2-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.9 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ s390x

nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.7 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ppc64le

nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.8 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ppc64

nh3-0.1.2-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARMv7l

nh3-0.1.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARM64

nh3-0.1.2-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.5+ x86-64

nh3-0.1.2-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.5+ i686

nh3-0.1.2-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 MB view details)

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

nh3-0.1.2-cp36-abi3-macosx_10_7_x86_64.whl (679.8 kB view details)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2.tar.gz
Algorithm Hash digest
SHA256 328b7f8a3a9ac6e1aacca1b0f9ce85be8151cf6aa91f8ef8b2a74e6301293830
MD5 119ee23caa8ec939ac305645c26f0880
BLAKE2b-256 e3cd70f00de0505ce8cab056285023be42707fa077e22c27639a755a8f43f3e1

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 534.3 kB
  • Tags: CPython 3.6+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e9bbee5d1e0d7a1666cd3c43e717b4a215ac792eb097b2303f1b722662f488ad
MD5 38b55a25973a200067e4da71b8638bea
BLAKE2b-256 d1d4e851080069a31e28d0026c3860e37174190319e8d33a7612ce46e4a58789

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-win32.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-win32.whl
  • Upload date:
  • Size: 521.3 kB
  • Tags: CPython 3.6+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 9ae2526a95fdc7731ec1be15e4528bbc229482759e1380b68f80f2dec477c4b1
MD5 773fcae9451e08562a330dd97ba5b0f8
BLAKE2b-256 339d09f16f7d87ea125cf8c227c642d82d676859757520b647447af8a6391b9f

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.6+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bcc296729c018d6411fde807627d468808f659f949d856219321fb35dacea68b
MD5 f8d78628c07ea31a0d7092503314681b
BLAKE2b-256 dbd568c09138bb9f2fae415c02cd76aca047a92459a076907646b3e0f0358811

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-musllinux_1_2_i686.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.6+, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 100c7758443ef6b5a3265595436821841dc3ea09349c39912b2fe5ef58422b76
MD5 9b9ff3af4738f9f697f7a130189327e2
BLAKE2b-256 bd296a34c86565cdab8cd97131fbb6ec3fab7db1fd6f62a70428747fff313663

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-musllinux_1_2_aarch64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 be024ff206f2833ad2b3155492476998b2a218b729f2a6dd3c2126c61170cd4b
MD5 16abdfd04bf1cf436804c21a80273ff0
BLAKE2b-256 d7e31b827a18d97cad57871e11d2a2d8ef81d12ccdfe59394e35d9b085d26b9b

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ s390x
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 7c575a85623f2b0ea9d13fa38a1698ff315ab2349bd7cdcd2eb5e6f7383ebbdc
MD5 a5bbbc849099677e26d246ca7fe58293
BLAKE2b-256 deef0fd46fc2883f87ab0de230caa2e46c9bda94639f8dc70293311b366605d0

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ ppc64le
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 504c2eec31f66919b6e0f9a59734750ad8bb373cae815341659029edecca1351
MD5 4e81f551cbcf2356243dc352e94c50c9
BLAKE2b-256 ed043cb0aa6da87acbdeed1009dac61a57cd23de10755fc15969fb644eae5906

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ ppc64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 cd646765acf6ff45c909eda81befaa004ad37d8906616dd5a94ccf6289d87913
MD5 4cd8bc1b7085afd492ae854e1f660ab6
BLAKE2b-256 d9afae3758e74106627c353be8ff65db0927ca070ec2f95e2654367aa935cb92

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ ARMv7l
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ac9ee31cfab890c4876d77e290a1910cd10702f04fc503fad27035a54040db09
MD5 bdc910a463d273b6e543ab20d3bb8a87
BLAKE2b-256 79c1d16e87f65f3e5967d8b1fdae2fae2d67b46d3f42c693c054c7c71b3c3da5

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a30c8d8e305972b514cc83e28ba0353f90286df435f51c0fd0990986c0fe874a
MD5 458286d5848166f4e2ebfbdb53a4d4e6
BLAKE2b-256 bbc7f550f9dffcf6b9f9eeca8b3bc97e97a8d43cd24e7efc875ae7c713789b50

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.5+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 56a0b6217c28a477bfc41d366d2f34526ef5f3a70096bae8e959ff2a7a6024f3
MD5 651f0529d78a67f882814ce3150f9a7c
BLAKE2b-256 158a85c307fb551bc6b71ec09909e91e8628addc55a113259eb87e7142079694

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.5+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 7c077dcf161cb78a4e4b0b3dfa4959ee41afff939c06a3b64cc6700966530da1
MD5 a6ee8426b0eaafa74fa8e508cd3d47e8
BLAKE2b-256 503308b69d85be158942b3337065a90d6a2eb782dba7cc12bd35a9ff8886ca8e

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6+, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bf461b258294b6a2a69aa541d92d991773eef18c45c96c83d27662da5adc76a6
MD5 92b17cbf049dc0f4a6977fe067facc42
BLAKE2b-256 fde5a746220d4b957f316145734aeedcb49350eaac218abd9dfcd7fa1c961623

See more details on using hashes here.

File details

Details for the file nh3-0.1.2-cp36-abi3-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: nh3-0.1.2-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 679.8 kB
  • Tags: CPython 3.6+, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nh3-0.1.2-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 42c931472724bdfc9aba4fefbb11de9d771d6cdfcb1ce6bbb3c282cdfa56cca8
MD5 a6f1533e4cc0c738d25e55a27da976d6
BLAKE2b-256 d4b528e4720ffbba1b9bd8f56f95798f50ceae07d5bbd28e2116d0424fcb5ae0

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