Repository navigation
@e2b/python-sdk@2.67.0
·
6 commits
to main
since this release
Minor Changes
- 037dd3c: Add the
exposeLocalhostPortsnetwork option (Python:expose_localhost_ports). Set it tofalseon create to keep services that listen only on loopback (127.0.0.1,localhost,::1) unreachable through sandbox URLs; services listening on all interfaces stay reachable. When omitted, the project's default applies.falseneeds a template built with envd 0.12.0 or newer. Sandbox info reports the value. - 4811446: Add paused sandbox retention: how long a sandbox may stay paused and unused before it is deleted. Set it on create with
lifecycle.pausedRetentionMs(Python:lifecycle["paused_retention"], in seconds), change or remove it later withsetPausedRetention()(Python:set_paused_retention()), which also works on paused sandboxes. Sandbox info reports the setting (lifecycle.pausedRetentionMs/lifecycle["paused_retention"]) and when a paused sandbox will be deleted (pausedExpiresAt/paused_expires_at, also on list results).