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

Uploaded Source

Built Distributions

nh3-0.2.4-cp37-abi3-win_amd64.whl (555.6 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.4-cp37-abi3-win32.whl (553.9 kB view details)

Uploaded CPython 3.7+ Windows x86

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.4-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.4-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.4-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.4-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.4-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.4-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.4-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.4-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.4-cp37-abi3-macosx_10_7_x86_64.whl (705.9 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.2.4.tar.gz
  • Upload date:
  • Size: 9.8 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.4.tar.gz
Algorithm Hash digest
SHA256 5c28e4d34ed37c05ea9d18aadef8169349ae7b42e6da636e02a826afa650568f
MD5 2707918d21b80f600615ddba3f06c884
BLAKE2b-256 cb0fc1f45a6870efbd5a27738fc5ae039d8382b032fbcb2961f8930d6bd519b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.4-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 555.6 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.4-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 31e96c048eb4f69278d192015f0362648c0e1674f3410bb367189395eaaedc99
MD5 d90ac03c391e0caecb5fa222b3617b5f
BLAKE2b-256 81dc15e7de632474aa658538c5a828efd064b38074372de9d77ce7225db5c633

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.4-cp37-abi3-win32.whl
  • Upload date:
  • Size: 553.9 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.4-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 e7853fb8a3fef15c26397939ff9c6732be5a77bbe50376973b046b7ef039715a
MD5 2479e2a45045aafa5f03df2e042422be
BLAKE2b-256 a768b95f59b3ef084eb5fd9d3f60c11c88c35a88558e3d66dabe8b3ed89bd634

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b1bf3302479b5bdadca2a5ca77cdb070ae2ee797eb08d95e5179f09ae70f10e6
MD5 9b2c9c2ea70bbcf4fcf2a2e7f25cf5bc
BLAKE2b-256 ec6a7fa4a12e8f96610e0d0abc6d8a3d2c67ae5ddc97ee5d59712cf4c14a58e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.4-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.4-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 cd664719a7a6f8a4bbc1e0a9713df8bc38dabf3c1dd0754e1e1fb787b375ceef
MD5 c8021e520ba0284613e2a8ddfb837622
BLAKE2b-256 7b76c4ef7534e9082e2536ec93793b8b97b59ad49d2bb5d7c2ecddd6ab66e761

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 96630f3e62c73ae90983039fd3e6b6827391840047780d0f06220b6803eded3b
MD5 97485f9a37f021a484c88fc5eb8ecc75
BLAKE2b-256 a8e024c1c90173737848a7b96272acdeea68f64610954c018219a2e49f05d607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 36cbd34b804e29675b9e157403d1dcf9a732831eff31c2dfb60fc6420a03a348
MD5 df9e28fcee3ec0ed61d2fd4e96baf651
BLAKE2b-256 90ec4c189a763bcf44f7cee6d992320673ae9ecd73e70ba330973b429fd84b0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a0dbcd93dd8ae37228814f150f9d8b04ad79a1980b9c46d2b762108b711fd96
MD5 9b24f152091890835d085d2a0aa15560
BLAKE2b-256 4e86619ee65fb5816004f7ab5c735d8f8818779b5f3a324255501df8ca540a47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 0130d5f570fd4e4ff0cab50f65e56659bf5aafbae0b060c0269bce8352ac7732
MD5 c618e1c86728569bc24041632f9348cc
BLAKE2b-256 541fede06e4b24d7af5ad1dd0a4d817ae13bd37761cdb8ac2f7a0f8d4e13dd0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 e3d87955d6979361d8434829db1ab987e8da35ada8bdf7fea0951e134d409014
MD5 e39922ab657fb85cea6b46d4aa1993bd
BLAKE2b-256 d6faaeb2f6f4170f5a4a3c120fd9eb941e665b17467bfc8bfb26667a95159050

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 9542c6a53359c95e30f8343c42d63046eb750300d3a93a52d01cbe199c19ee16
MD5 2947397c81d763e42ac18048b07b082e
BLAKE2b-256 77a1876df0babacb0a598637a2758162cbd6da32c764fa3f65bdad7527db87c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 e920bd2f3b16671b384d90a4f9a438eaa337de590658db0df89379dcb12ed533
MD5 ffefb06f71903e4468724ce3c60bffb3
BLAKE2b-256 051303746ad8736f559bfcf662528437ccf48c99138c61c0b8d0a708366e4d8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7a7c43ef12b8f44695e79b328ae4375b9ab47f02a2d458f07cc5fcb511ea218b
MD5 e5281d5697eaa983443815fa5d0069af
BLAKE2b-256 d84aea2ae4c146cc54052b6bb8825f431a5324421898fe8fe3d2ef6119a92450

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 206c2a5cb3c4486b74dd62c1fe0f74ae977cec84c4a385bf2f3b5d84dd2c0efc
MD5 e2c364531bb41762d75f5b2535e38f47
BLAKE2b-256 fdbed6e974451d6e21273c8cc9f7ae0f1f4683479a7cce589ea2626464b2cdbd

See more details on using hashes here.

File details

Details for the file nh3-0.2.4-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.4-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5c3e1dc4071a9e06ac039e8ca8a856511d69c57679fbfc5f83943df8ea9ed514
MD5 536e0fd3891364224cb36370754df469
BLAKE2b-256 fa283ba3f86db97bbf632a1d85bdfe778a3e87f8b3604731aef0021f63c357c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.4-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a8528d4bcce27ed51f3f000501c601786b04563356bba8b605f80e7402d8cecb
MD5 dd51457fa6ce7921d342dcd1d5b8af08
BLAKE2b-256 cf7b6621595dd719927956f4cf04233da0478f330ce7e81b5fbd805487165708

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