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

Uploaded Source

Built Distributions

nh3-0.2.5-cp37-abi3-win_amd64.whl (556.1 kB view details)

Uploaded CPython 3.7+ Windows x86-64

nh3-0.2.5-cp37-abi3-win32.whl (554.5 kB view details)

Uploaded CPython 3.7+ Windows x86

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

nh3-0.2.5-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.5-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.5-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.5-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.5-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.5-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.5-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.5-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.5-cp37-abi3-macosx_10_7_x86_64.whl (707.2 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: nh3-0.2.5.tar.gz
  • Upload date:
  • Size: 9.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.5.tar.gz
Algorithm Hash digest
SHA256 8c2e197ce5f6eb6b21168c2ad5dc04130b0f3d0a2473f7d005762914c43df85d
MD5 e925302dd233dd79a797c60582e56a8a
BLAKE2b-256 9b45a196b2f537de593fba02222ee01cc78711a059adc451d1cbbb1e7be3d8f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.5-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 556.1 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.5-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a5f851f2c2582265ce91c30db07275caa184e004162973e9d33a3aa30f74b2d2
MD5 8f5151c420f568d02e96d7b6f7566b5f
BLAKE2b-256 c53b5a76a8d043fe414df7e5010438bad96e697a7e9e16363b120f69b3f4d677

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.5-cp37-abi3-win32.whl
  • Upload date:
  • Size: 554.5 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.5-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 9bcbcca0051a9645ec962ad7cde837d91137b837fa39c4299d359418f22a6a7e
MD5 bae27c418ae095d0534cca9476e806b9
BLAKE2b-256 dbc394b6ea2cf8365c4e3289ebfac665840b53d188ba6831d68b025b5700c04a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fb765b52da7efc435e91d8e288a30dc798cf304e3078cfc579709fd195d20364
MD5 dc7e3514fadb3c3a0336e7d6e87d3912
BLAKE2b-256 99d5cc8694c16d00ffde2d148af432003e3fa37433054fd2ad46a8f068e58711

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nh3-0.2.5-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.5-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 8b09b53b5f92e7621cc5f9ef0230e26c5b356febeb60677667a3940ac7a4334a
MD5 5a26e068c10d20ae0c774b2e69839c25
BLAKE2b-256 015c8ae55b793f1d905be6cf5653470e1cadc6bfa33f260eff0ce86ddab1a8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 7de7e4d9619979a78cb34db97ef78ff8224e5cf96049877009715480326c1f5c
MD5 63a59a1d8062790910861b15e784be4e
BLAKE2b-256 c80163993aee52d5cb918df72a3eccfa7db23d5adf814da3871d85e5f6d299a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b0d8e83e875cf6178906f6e62a94b1114f66fede88caa1dc29f9665bbec01367
MD5 0fcf5f4accc456a94ba473b2aa5abd99
BLAKE2b-256 64ec98cd1c8e04707c286466561fac63fcbb46f896ca1c630b9375c4e237e59c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 482b2f352cf57bf70d84cdc134198051f84b5e0112f561a49102a4cc953df07d
MD5 b6f1b99c9e1b20a9ae99bd930a66b230
BLAKE2b-256 ee84332eb3d7f3c46b7fbade318e1a96665b95b1cd211be187b63393c24c891e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 293790da8c9af576c1da4366da943718fbbd51909fcaebcbd758113abcb3de66
MD5 e59b5110c4d5ad4931c3a481b61f9286
BLAKE2b-256 c7ae11551105f07af894de6452743550e1f542c3c6406e11d4a6e6e20d637be1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 8c256f1db8934318ed3b3901d46db2ce95c0807dd181d0ec8b2bdb10fe2d10ee
MD5 85f9ff58fd8df2ffa723fe83e9da6362
BLAKE2b-256 bb7668a5f7fd93bb44ed63a20f3539ceb0887f96010a950d166719e03c0b9109

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 d1406581be90e36344a86f9ec29cb0860b1167e88adf80b1a189ea2f1a00ad4d
MD5 73f6c533207a3f4ab9d99e0a73452644
BLAKE2b-256 56aaefab1a2177d5b175eabf8662c01d679adc309e5ed00a68d40e57a459bf35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 8e673cb3a0ab5ff3a6cd518628295a517768a972490460d69c6b48f25b3e1a6d
MD5 5aebd7b4226ec81f5da4ade8e3475f20
BLAKE2b-256 b63f4e2237d8479741a91679a49aeae8af1836a802a8c1ec67f02b2dcca2d571

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c2cbfa1818fb1530a807825c38db6eee3b87315c6cdacd64af0433f131411052
MD5 9edb098b4c6754f693d44f554557efcd
BLAKE2b-256 027a5e22bfe2b21c463faaa949b7a07468d4d6c2b70a61678961cff47810d637

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 02748542e1e2a82355f943d4908ba90e717d1c4ae58949addc17b35e4477b23b
MD5 babc739c3e20cd076b090221ece3b173
BLAKE2b-256 9588afce444363c962e7fad2d4dc4ffb5a9e9565c6ace5984d0ee6b4422f81da

See more details on using hashes here.

File details

Details for the file nh3-0.2.5-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.5-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d6fff3e41e41b5af77d4570b0712e483f7d42925fe64436123ab96ddeb969eae
MD5 fb9a0370a9e934811d662936ca3e57f8
BLAKE2b-256 44666ce1a62620aa61322618e7bd8c66e8fc8b1d7c4a422611459ba71919ad50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nh3-0.2.5-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0de828c76f31fb2a5b71c28c5cbc9e071232d2fe827ab28b6504f8130b379651
MD5 4ca64ec2e853145f70b4a4735626849e
BLAKE2b-256 40583d8cec3814956c27c09b0ede8e61e990a3a961602df48beab24015e0a033

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