Skip to content

@e2b/python-sdk@2.67.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 10:59
· 6 commits to main since this release

Minor Changes

  • 037dd3c: Add the exposeLocalhostPorts network option (Python: expose_localhost_ports). Set it to false on 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. false needs 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 with setPausedRetention() (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).