RestrictedPython
Safe Python subset for sandboxed code execution in trusted environments.
2. Maintained
github.com/zopefoundation/RestrictedPython3. Used by agents' projects
Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What RestrictedPython does
Safe Python subset for sandboxed code execution in trusted environments.
RestrictedPython popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How RestrictedPython is used
- RestrictedPython joined the catalog on its public numbers (2,196,415 downloads a week on PyPI and 749 GitHub stars), not on our project count: it is a dependency in 11 public GitHub projects of our scan, 1 of them set up for AI coding agents.
- Projects that use it most often also use Pydantic (90.9%), aiohttp (81.8%), pandas (81.8%).
Often used with
More about RestrictedPython
More in Prompts, structured output and evals
Alternatives
RestrictedPython This page
Get started
Install it.
pip install restrictedpythonNo step-by-step start for RestrictedPython yet: we have not written its hand-checked card.