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

Uploaded Source

Built Distributions

nh3-0.2.2-cp37-abi3-win_amd64.whl (551.6 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.2-cp37-abi3-win32.whl (550.0 kB view details)

Uploaded CPython 3.7+ Windows x86

nh3-0.2.2-cp37-abi3-musllinux_1_2_x86_64.whl (1.7 MB view details)

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

nh3-0.2.2-cp37-abi3-musllinux_1_2_i686.whl (1.8 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-cp37-abi3-macosx_10_7_x86_64.whl (702.0 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.2.2.tar.gz
  • Upload date:
  • Size: 8.9 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.2.tar.gz
Algorithm Hash digest
SHA256 26a521e6390cbb51fd34f766175bedbe66a8caaeb9337b4a99b4717911bdda59
MD5 b880104edb59cbbd98d5fe3e75ea24e5
BLAKE2b-256 95972685d39fac8c7aeebaa6c500f970d115259ce847dbfaa30f1e0b6c4f26f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.2-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 551.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.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 41b381461f2baecefcce703e3589e76b0b69e7f4fc6d56708ca8951eb2d57134
MD5 27b93a7404203d7b1b34e694851886eb
BLAKE2b-256 e87fac5cb072a25eab56832e60f968576e4653eb8dfa9b08d535367937fe86fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.2-cp37-abi3-win32.whl
  • Upload date:
  • Size: 550.0 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.2-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 a32d4e243cd404bcef207767e3cfbed0f1aa4eb204ace2ac18894ca60a833a1b
MD5 8342a3a8af6b764e9a7de1e6787bcd83
BLAKE2b-256 b31a889da960b5b05e0980c2af0ecca2013738488bb155e0b21a364525af9cf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 050dbb9d1862d3b9e333546f7f3cd513fd55a1225a8d5144b6b55b6da4890c21
MD5 556ab5436a2570d83d949748fd7c1025
BLAKE2b-256 a68a2091dd0c5440f6ce981542df8eacd83dd91da3db07f51142a8012e7a2d1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.2-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.2-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 7590362043caf6010288313647bcf2b524336713404e0e0114f849b0a47de931
MD5 f18cb62cc973cbc2a7f6bb3ff500f287
BLAKE2b-256 5642235159d2beb8eb3177c129b864e67d78d770311e940ebbde6b1a6bb8c061

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 570daa23111d0326ec4898ba2bade1c2ad99ec871ae695cbb4c9e4cde14e8c47
MD5 a0d6f062d79ef3845899c6f355882073
BLAKE2b-256 3c64f0f88f4e1867d3462096cc5380f502dfa113013bc7dbfdbf7d137e4afdbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c9f05cf609bc5747d9a50584f5650a611e49ca9f65ccbf541899924e599f902a
MD5 262317bbfda361eda2045cf19ec739c1
BLAKE2b-256 5e41943a7a520f8df634ae33b689aa5486120d14af309e64722903ef73299f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb8b39a4861fd6a365b6dde9a86041fd7f2923b56ec9c518bb2968de09bf5eda
MD5 a5bceaaae33525085b685e6a74087d57
BLAKE2b-256 75b32d46e70e338bf65687ab6230da45ed70c7ff3be1422e39e8d7eb0660b5ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 313cc99d6f8fc18d2b7c2195d036eef5582c7675c07adb69ef8dad226bac7dbc
MD5 78baa1db7069a8ce91397f9d6cf70612
BLAKE2b-256 5177b9280199699a69422bb268e1e344daf49f5e95054869b84cf65ac9269e2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 42c5c30346d2c976a86604a0ee96183d9c621b20df14447b453bcda46624c5a5
MD5 a2e55ea23d23f04153cce035ec1cd593
BLAKE2b-256 363e8a253af82af0ac047bd9375973d7d87885b1e45ee2f3df9b25aa75dcebf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 e9809d78ec101812c35a416f9ddb589a38754a20533c3e3d2415af9a758a8825
MD5 f5fe1fb5a902d7ca546945cb2cf599ab
BLAKE2b-256 d3d9363079ebd8a90da39ba6ae033e93b30d5d8492ac4cb03669dec713f3ca67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 82c9b1140c6a62f36f2969f5cec35016d328efb52db01002267a2a2e602f2f80
MD5 3b580c06387373a4c2c982e43d4ab857
BLAKE2b-256 2b338457e77cd8ee49b2d9bac5000d759bd285679f13b4ad6869e2bb17d5cac0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3c337b7689c20efc3782b03a68a9154b1f9eb042ca233b3ec6f7ef0b388cb0e3
MD5 083a3939fff9d7ed70e0ac83dfd7aea6
BLAKE2b-256 0d16e0a47b5fe987f2219db5ffb09ec6f276ce076f5e25642f62c37a3e92f4ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 5c6f998ad4d42af6629c0da358ef1e8bc8ae6e666f464eea90d81ff19d63d6fd
MD5 06616cbee4a54d7bd3ec37f5e904c3c5
BLAKE2b-256 e56e6c8722ad136aa976622069a11f16469bec75b78efc15b1c704d6084297e4

See more details on using hashes here.

File details

Details for the file nh3-0.2.2-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.2-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 62c1b7a0aa0e38e12c4ff927ee6e30a5fe50d969f43659eb6b43f8bf48b2cafd
MD5 07dcaf9f99b7544b3fbdc2c7e1baeda2
BLAKE2b-256 b12065496bcba02a829736f620172ae73a7b54b3760401df0bab8721005e0f41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.2-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 664fb3c1051417dc8af0bcc0809b136e4f86fabf665ff5a1b13e335860a9b99b
MD5 0976d1b1f0ea9cce0d3aca74faebe9e3
BLAKE2b-256 4cd7175f947495364d8dce7ff8fa33a631c1604a134ae8af4396e5c45c8b81d7

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