# RestrictedPython — card for AI agents

Safe Python subset for sandboxed code execution in trusted environments.

Category: Prompts, structured output and evals · PyPI package `restrictedpython` · latest version 8.5 (checked 2026-11-01)
Install: `pip install restrictedpython`
License: ZPL-2.1

## Numbers (AgentGid data)
- Gid Score: 40.8 (#3046 of all tools, 50 of 78 in its category)
- Used in 1 public projects set up for AI coding agents (0.0%)
- Downloads last week: 2,196,415 (as of 2026-11-24), +27.4% over 4 weeks
- GitHub stars: 749 (as of 2026-11-24)
- Last push: 2026-11-04

## Often used with
Pydantic 90.9%, aiohttp 81.8%, pandas 81.8%, python-dotenv 81.8%, FastAPI 72.7%, LangChain 72.7%

## Links
- AgentGid page: https://agentgid.com/tools/restrictedpython/
- Repository: https://github.com/zopefoundation/RestrictedPython

---
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.
