@e2b/python-sdk@2.64.0
E2B released Python SDK v2.64.0 featuring resizable templates, custom shells in commands.run , OAuth token authentication via headers, and breaking format updates to e2b template list .
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
E2B Python SDK version 2.64.0 introduces several new features and breaking CLI adjustments: - Breaking Change (CLI) : e2b template list -f json now returns SDK TemplateInfo objects (e.g., templateId , buildId , names ) rather than raw API fields ( templateID , buildID , aliases , createdBy ). The CLI pretty table drops the deprecated 'Created by' column. - Resizable Templates : Users can define a template with max cpu count and specify a sandbox's cpu count upon creation. TemplateInfo adds max cpu count ( maxCpuCount ). - Custom Shell Execution : commands.run adds a shell parameter allowing execution via custom shells (e.g., '/bin/sh', '-c' ), retaining '/bin/bash', '-l', '-c' as the default. - OAuth Authentication : The API client now accepts Authorization bearer tokens and X-Team-ID headers inside api headers instead of relying exclusively on static API keys. - Template Management SDK Methods : Adds Template.list() / AsyncTemplate.list() returning paginators over TemplateInfo , and Template.delete() / AsyncTemplate.delete() returning False if not found. Sandbox.delete snapshot now delegates to this implementation and raises TemplateException on failure. - Dependency Updates : Updated @e2b/dockerfile-utils-python@0.1.2 .
可执行摘要
E2B Python SDK v2.64.0 introduces max cpu count for resizable templates, custom shell configuration in commands.run , OAuth bearer token auth support via api headers , new Template.list() and Template.delete() methods, and breaking output schema changes in e2b template list -f json .
- Agent 实用度
- 94/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update scripts parsing e2b template list -f json to handle the new TemplateInfo field casing and properties (e.g., templateId instead of templateID , names instead of aliases ).
- Switch custom command execution pipelines to use the new shell parameter if /bin/bash login shell is not desired.
- Update sandbox creation calls to use OAuth access tokens with X-Team-ID via api headers if replacing static API keys.
- Catch TemplateException when handling snapshot or template deletion errors in Python.