GitHub
Your app's network firewall — in one function call.
GitHub – Network firewall for Python apps with one function call
Summary: GitHub is a zero-dependency Python library that restricts outbound network access at runtime by enforcing an allow list. It blocks any socket calls outside this list using Python's audit hook system, providing supply chain defense, AI agent guardrails, and test isolation.
What it does
It intercepts socket calls via Python's PEP 578 audit hooks and blocks unauthorized network requests without monkey-patching or proxies. It supports libraries like requests, httpx, aiohttp, Django, and FastAPI.
Who it's for
Developers needing runtime network restrictions for supply chain security, AI agent control, or test environment isolation in Python applications.
Why it matters
It prevents unauthorized outbound connections, enhancing security by blocking compromised dependencies or uncontrolled network activity.