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

Uploaded Source

Built Distributions

nh3-0.1.0-cp36-abi3-win_amd64.whl (544.4 kB view details)

Uploaded CPython 3.6+ Windows x86-64

nh3-0.1.0-cp36-abi3-win32.whl (529.8 kB view details)

Uploaded CPython 3.6+ Windows x86

nh3-0.1.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-cp36-abi3-macosx_11_0_arm64.whl (663.7 kB view details)

Uploaded CPython 3.6+ macOS 11.0+ ARM64

nh3-0.1.0-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.0-cp36-abi3-macosx_10_7_x86_64.whl (675.1 kB view details)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.0.tar.gz
Algorithm Hash digest
SHA256 0949d95dc67030fdbf0ff74198c28520829cd013e9ede17d76ac8cd9a7bb651b
MD5 8d8c62842333027e54aef69cee5abbb1
BLAKE2b-256 98813a90decd0eb3e81c1b2bce4e69e73a6bb8c76250a65bd167234d99581ae6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 544.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.0-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f059daf5e293d1e39f9264d69911b87a6e97bf24f9f4a1f32de84e0d569917da
MD5 080967e87336b5be10e04d8365108497
BLAKE2b-256 95e494333ea85cace8369cb367c1a551d638446955a3a5b3c2e274cb3b6c63cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-cp36-abi3-win32.whl
  • Upload date:
  • Size: 529.8 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.0-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 984ad87ac8bd9498bda3df42d21d5f1bec1474bef867c8fba8e92c405e42a980
MD5 5c57efbc61535b36f118333e223ecd26
BLAKE2b-256 3f4d108379fea64bc45301e0a6da2a9c3ec4f6e0df5f77e49f9da1e247024207

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-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.0-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 d7b7e79f345c3b32788915163eb00cf91c53e42e649dc127eb6e9b3badf21ca9
MD5 be35154bbee80a261523b4e74b56c7ef
BLAKE2b-256 9624dcb1914289fee7f134dec96a35e26280c33addc12b4407e64a9ce73d51c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.0-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 356231ae04caef195572b54cd09d4be64056d052e2931e8ffc4591d85f9b4492
MD5 fdf1f867701412632c153990151d8883
BLAKE2b-256 58b7a213a4ea9e656327ca87072cb7c497972c3460b0e3b6dd596ca6478fe4bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-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.0-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 93c63ac846cfec1079e1ec0f91e97c82c0c17d0dca1f76d048e3043607cb566f
MD5 6b308a3da6f766a7885d9c3b7ed4c025
BLAKE2b-256 8c5a644617f9d0f67aaeaeed1e514da1ae66610bfb2d0183ee0103ed1a81749f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.0-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 9fd20471530ee871a24ce80356c5055b775723ac3ad32506d92f59f53d4c5d49
MD5 0e2fea68d68ed9c01a6485dd26fdfeca
BLAKE2b-256 18f39e9546bb60da4c8f4631b28496e2fac59175099a58e6d22454241216b32e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.1.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f97240467203fce54fb81bde3f1671e296716eba0215155750870df9c7c00cb9
MD5 726dc624fc42a50a4efe0516a9b5fed5
BLAKE2b-256 a5250a1c26a0b8687012a0bf08b657d467f658dc3f67b35a25ea64f8a3b7524e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-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.0-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 28e20f5373b9e76efd1f3f88d54f567bfeee54719cc0399be2d774be9ded46f8
MD5 c9fa32fd2212bf43106a22684847ee48
BLAKE2b-256 e19dbbdb7b6a416670d747f4ce9c3b23ae2ddd5160f5f00bf6ed305887a47740

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-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.0-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 5be305b30ac19c02bc9b9ffac7ba311428bfed0cb306028e182325f884d0a2de
MD5 187bcf36405a693746c61990ffdd8c2d
BLAKE2b-256 c47762a437d1b45f3645396633623283cbf5e1ae09b3179c3f5bed7b89a05ad0

See more details on using hashes here.

File details

Details for the file nh3-0.1.0-cp36-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: nh3-0.1.0-cp36-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 663.7 kB
  • Tags: CPython 3.6+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for nh3-0.1.0-cp36-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35baf386c5a9437ce4197471395abd79d78def2c419ab815e51c43ba2db042b7
MD5 6117b383e017a82bec9198694b5dbd48
BLAKE2b-256 d02f9d6b8210aae18bb133eb7e7e0ce764515cda61223f294a2ea7b378881699

See more details on using hashes here.

File details

Details for the file nh3-0.1.0-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.0-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8f3da07857c60c767743563662e2fbda056b482cdb4aa3c78d410f7bf2606018
MD5 69940aeb6dd598fa4cbc8264b25fbee4
BLAKE2b-256 6776e742afdfc169d3605258fc4acbe5a951aa7c3d5cfafff484e0a40c60b78d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.1.0-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 675.1 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.0-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 01554bbe4eac92b65a96423a91ebdd93fb9a8c5bce65c83b7ab10bbc0f1a7821
MD5 c73e59138c6e208e3ad210776a47ebf5
BLAKE2b-256 380b518609556c670d9f1a59948e1002368b79703e5ec8d4a75af2395aa42164

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