Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

nh3

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

Auth and security librariesPYPI

GitHub

1. License

License from PyPI license field.

github.com/messense/nh3

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What nh3 does

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

nh3 popularity

47 / 100
Gid Score, #2276 overall
10.8M
downloads a week, pypi
410
GitHub stars
2
agent projects use it
nh3: downloads per weekPyPI, nh3 10,664,145
nh3: GitHub starsmessense/nh3 410

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How nh3 is used

  • nh3 is a dependency in 2 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 31 projects, and what it is used with below comes from all of them.
  • Projects that use it most often also use Click (80.6%), Pillow (77.4%), markdown-it-py (77.4%).

Often used with

In 80.6% of its projects
In 77.4% of its projects
In 77.4% of its projects
In 77.4% of its projects
In 77.4% of its projects
In 77.4% of its projects
In 74.2% of its projects

More about nh3

Funding
  • GitHub Sponsors: https://github.com/messense
  • 24 GitHub sponsors

See all

More in Auth and security libraries

Alternatives

nh3 This page

MITGid 4710.8M/wk

Compare nh3 with another tool

Get started

Install it.

pip install nh3

No step-by-step start for nh3 yet: we have not written its hand-checked card.