Python Bindings for Ammonia (HTML sanitization library)
It's not a super-frequent need for me, but sometimes I'd like to be able to accept markdown from users and include the rendered output on my site. This is risky, because markdown can include arbitrary html, and libraries that process it may not focus on making sure it's safe to include in a site. For a while, bleach was the common recommendation, but it's deprecated. Since then, the ammonia library, which is written in rust, has emerged as a good functional equivalent of bleach, with a very similar interface. Python bindings are available for that in NH3.
These bindings were created using PyO3. As a result, performance is good provided you’re using a platform supported by the build tooling. There seems to be an early attempt at a django-integration package for it, as well.
I haven’t used this in anger yet; I’m saving it heare because I had a hard time discovering it in web searches, and I hope that saving it here makes me both more likely to remember it and makes it more likely to turn up in future web searches.