# nh3 — card for AI agents

Fast HTML sanitizer for Python, bindings to the Rust Ammonia crate.

Category: Auth and security libraries · PyPI package `nh3` · latest version 0.3.7 (checked 2026-11-01)
Install: `pip install nh3`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 47.4 (#2276 of all tools, 83 of 141 in its category)
- Used in 2 public projects set up for AI coding agents (0.0%)
- Downloads last week: 10,783,556 (as of 2026-11-24), +18.4% over 4 weeks
- GitHub stars: 410 (as of 2026-11-24)
- Last push: 2026-11-17

## Often used with
Click 80.6%, Pillow 77.4%, markdown-it-py 77.4%, more-itertools 77.4%, NumPy 77.4%, Requests 77.4%

## Links
- AgentGid page: https://agentgid.com/tools/nh3/
- Repository: https://github.com/messense/nh3

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
