Shell Escape for Python

JSON →
library 3.8.1 ·python
verified May 22, 2026

The `shellescape` Python module provides the `shellescape.quote()` function, which is a backport of Python 3.8's `shlex.quote()` functionality. It safely escapes strings for use as single tokens within shell commands, mitigating shell injection vulnerabilities when executing external commands from Python scripts. The library is currently active, with its latest release `v3.8.1` in January 2020.

total hits 12
actors 5 distinct systems
last hit 5d ago GPTBot
GPTBot
6
Script
2
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada