MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _policy_for_python_proxy_tests

Function _policy_for_python_proxy_tests

e2e/python/test_sandbox_policy.py:53–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def _policy_for_python_proxy_tests() -> sandbox_pb2.SandboxPolicy:
54 return _base_policy(
55 network_policies={
56 "python": sandbox_pb2.NetworkPolicyRule(
57 name="python",
58 endpoints=[
59 sandbox_pb2.NetworkEndpoint(host="api.openai.com", port=443)
60 ],
61 binaries=[
62 sandbox_pb2.NetworkBinary(path="/sandbox/.uv/python/**/python*")
63 ],
64 )
65 },
66 )
67
68
69# =============================================================================

Calls 1

_base_policyFunction · 0.85

Tested by

no test coverage detected