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

Uploaded Source

Built Distributions

nh3-0.1.1-cp36-abi3-win_amd64.whl (545.4 kB view details)

Uploaded CPython 3.6+ Windows x86-64

nh3-0.1.1-cp36-abi3-win32.whl (530.6 kB view details)

Uploaded CPython 3.6+ Windows x86

nh3-0.1.1-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.1-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.6 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ppc64le

nh3-0.1.1-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.7 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ppc64

nh3-0.1.1-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.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARM64

nh3-0.1.1-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.1-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.1-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.1-cp36-abi3-macosx_10_7_x86_64.whl (676.5 kB view details)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a40ac3549a0d45687873a8c48474a178083ccbf6c6bc46f3691670ac0450be47
MD5 98379e24a3f21568a9631dcf40b2f420
BLAKE2b-256 1d3c584364db5658bf81f7d92bdb832ba03a959c2f97615177404a6c36d437c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 545.4 kB
  • Tags: CPython 3.6+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bab8b3fd2f1b8de177e9000e21ddd75a57aca2865bcdade640119fc58f1008c3
MD5 c185eebfc6846f7fbb92d167333c196f
BLAKE2b-256 01044ba581120edbf4db7dd249944e43117eb6ed72f55a079c649d354b9a70fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-cp36-abi3-win32.whl
  • Upload date:
  • Size: 530.6 kB
  • Tags: CPython 3.6+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 00df2c7f7dac27774baf183bbd64710ba6cdf9f0d9dfde6b215585bf90a22222
MD5 332712eceeb798416b688c8b14a5c6c1
BLAKE2b-256 8d3673834482c414305e2461a79410ae3449318538de64c816370d74a76113cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-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.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 ff1575485110083176778f165fdb47a499a7d0f0478077b86c368b0a1d9060c2
MD5 eef15d25c0fcf3ad42f0a1a9afd2578a
BLAKE2b-256 55f32e94b0485ee752ba568914569d9b75f221f0be4646d3d2b34a68eff93339

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 2940d548c44e74d76a2917fb5236827f13cafec553835b6e74940ed3f3ed1ec1
MD5 728ae825dd892707df7221ad721bde34
BLAKE2b-256 6039aa785927b672f89021cb44cae5d0016cc317891db32d9e3c4f995b6ccb0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ ppc64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 364e957e082e0a01db83afdff4de8ebfd434450d7cdbb1c1b3c7b89acf7c15a4
MD5 5d230c6c46b7e50b42483686cbefb78b
BLAKE2b-256 c46f9d71cd0a01188238614d84de72f10ec78be0b6fcabc8546f1541efd2b348

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 6689a351a5fd912f3733e82dd6ced3c1d45c88649adf53c34074c21350e03a98
MD5 e4f22271cb4107eb1824fc5fe4fa367e
BLAKE2b-256 66f7251caca4b8d60593063139d2081ae5de79474b62c2d17d614fa9d0bac518

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 63a3049753490349dcd6b4bc28275be5355901e59d4ce13098fec32014f90d44
MD5 5a5e0b07c06bc746e3ecdfc1fa391416
BLAKE2b-256 fc96c0b8cf0a39652ad251a0da957911c62e943ec67a26383c1ed1eec02eb6d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-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.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9ce9c40a5a724b6882794875a8304243e8fb9a6224c22736b3f556d2e74d98ac
MD5 ab93e1edf8b0df5b44f07dcd54d1cccc
BLAKE2b-256 7a16027cb1cb9940653aafe3b8d24d1a748f0d2ffae2a5a4374b9e745ce2444c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-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.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 31988a68deb877d46b5a10d3f57d7553b16f017cab86dbfab1797484794a2239
MD5 a210871271d057e530213c0b36a7e5ba
BLAKE2b-256 404ad1f39375659ea0c120327569bd5012d6b0827962866b3720a9f0e51e98c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.1-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f2ffd6090ef318142c5259cbcb793a6fb25e8c7ec150d64529cead45f6de5fb0
MD5 acb4c0409a4473231e6b79bbbb2ab93b
BLAKE2b-256 3a1b8311dd044c98f2fd4b0597d0051cba250615f977b07ff6fda01997a3377a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.1-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 676.5 kB
  • Tags: CPython 3.6+, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.1-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c83f738e9d24dae7211fa0fc7e1aa308c3e8163c4d8aaa6557ea360634269d4b
MD5 8966416dc088a3db8b9b2efa631671a1
BLAKE2b-256 761d71b768e5b2b8190bad3636c7857e821c55e3fb4a158023f4dfae45f3d766

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