Skip to main content

Ammonia HTML sanitizer Python binding

Project description

nh3

CI PyPI Documentation Status

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

Uploaded Source

Built Distributions

nh3-0.2.7-cp37-abi3-win_amd64.whl (576.7 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.7-cp37-abi3-win32.whl (573.6 kB view details)

Uploaded CPython 3.7+ Windows x86

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-cp37-abi3-macosx_10_7_x86_64.whl (730.1 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.2.7.tar.gz
  • Upload date:
  • Size: 13.2 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.7.tar.gz
Algorithm Hash digest
SHA256 6cb41d30226f566cada0596e91b16b24c888b694b8c5b4ee7b69bb06c41a41eb
MD5 fd94e7c41b8f3fc25e466932e1292a3b
BLAKE2b-256 3ae526c1b21eaa94f8c1f8589a1fc4fc27399e2c1aff3ac483c407bd302c0410

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.7-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 576.7 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.7-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c8047185c604cb92f62bfef43c0d851705c26ee21a607db21e4ed5c6c5b05fc3
MD5 3c7cc704e98969e95e4458b880b48607
BLAKE2b-256 ae04465c5b3e935ead8cbb45c9cbc543ba0d30415e284a7f834d2fc274701b8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.7-cp37-abi3-win32.whl
  • Upload date:
  • Size: 573.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.7-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 1bc9d342ef7a79f42291ea9c3c0145903120689a42b390de2763a28dd2d60d9c
MD5 235ed80016f77521b85ee828502336bb
BLAKE2b-256 5697ea2bd7f461a1f06712defebfcb575bb403258eefcddfaf759a1987e1c6ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 66a9f6ebdd1d814b30888b0b3279b21493076bc0fe07f891199065be734eef1f
MD5 1de4c9862c7b55f496612265bf6f58fe
BLAKE2b-256 86e0ad8e46b3f9623834a8e08f52c6536bdadca758996174579776df88957b23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.7-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.7-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 47509292594cd422760fc1e25d0a39931ac889e4bcb32c33a256309ccf6bb167
MD5 cb9d040e33e5e712367038d2691cf1ad
BLAKE2b-256 cbbd0a78028e2c0d725d7042efaa22eba39d12d83c2e3848855e2b23494eb15c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 f63072406db848d6817b8270e543dfd890bab118de9e9e913f58717886686aad
MD5 3f5becd64fcb2f13d56f58d9ab8bf9c1
BLAKE2b-256 7749e9d9a9c2a89e6695bf0eed44bec519ac7a7a1327a9691d339108af9f72ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f7b28a2f2a91a216db4ab33697750e8efcd865e0001f03ade543d6c806f1ebdf
MD5 3bb2bbf706984c5203f9a1759864122e
BLAKE2b-256 2e22167b81aebc3e91f62679353a3cdd9f083b9c7f9b6c8cb496ccacb1d30a5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 086d85aa8061db9ce6fe75c2c11821187ed20f6199a71295c10b5f68954d3283
MD5 59faa8b9b63509fce90f0623c56924e8
BLAKE2b-256 d52013a691acb7a163c3625b6f008729e1d6d4d7b7bce2554fadfe99a64363cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 75a7c0f1d00453b69d94c3b97a905201cd9626a55b10dd57fa914a456fb5befd
MD5 6868a0496624139f6a21559ad19b587c
BLAKE2b-256 57d146fba2d3c6f772a1017eb02c39f6e4834613edbae8e8994add890df9d957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4dd8fe9c062601e7387cf80c98a16c14b0becbfb24a922a4c1cec9a471061b73
MD5 dbf85b6816200724ccc35929f7664df4
BLAKE2b-256 025fcf9fe6f134a3ecf2517cdbdd1341854563c2b330be173109ee5115d93d22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 839252dcf467c43fba08d5ce07ed6d003621858d8e49fad4f217cda12c197fe0
MD5 b4a5cfe2a1f559d38792acc387c2c539
BLAKE2b-256 0bed209b2b6993a1f9862af92df7641c506694aefad094f1bc3b36d4061cb40c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 1ff36c7815b4a4e2fb6602532f9d28e6c214a787043bc6006e51025984b2e1f7
MD5 9e23d1e81f594c0e6ae9b27070c5650b
BLAKE2b-256 456690a8830bc5f35d07bdeb561355e1e1431acc76ddeaa62d6962adfc1bd60b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91b4857c093969424285cf33a0139f71567932244beabe0fc52b36936d25fd7d
MD5 08a111ea43c62fd9034cb59be07a6fb0
BLAKE2b-256 7c9cfac08db35ba8a9bee1d96b62598a5dc920b34c1090dfd611205cc73d2861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 0b8a4949c0f70ed6333bb876a3d47a82d6330eacb795d91d39aee3c8ac35c5ab
MD5 6fdd000ca0ba8b3e112dece03d47b270
BLAKE2b-256 f905e0f56dc8389a05b80f83cbecdb3de2a75f8646fdf96aeba4df3c3cc70757

See more details on using hashes here.

File details

Details for the file nh3-0.2.7-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.7-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 66da2da5d17e8e439af5557c24e1c4a1461fb72b846f453d37da98fa576c3a97
MD5 373fa5e5f2b36120b4ebf3c61372ca9d
BLAKE2b-256 cbdc3efeae9d97790dab87b448c682080a76ec52bff436625ab6daf5cf15e2c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.7-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 137c770b327261114275c6184028046dad62fc7dfdf55b5afee1b06bbf67c1ed
MD5 2215e509c72c9806b5ac7787c70bd765
BLAKE2b-256 f26f6525d72fa747fa1e495d1527f8142a28393b670b9afc39356fe56948478e

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