Repository navigation
@e2b/python-sdk@2.64.0
Minor Changes
-
6a976f3:
e2b template listande2b template deletenow use the SDK'sTemplate.list()andTemplate.delete().TemplateInfogainsmaxCpuCount(max_cpu_countin Python) for resizable templates.Breaking:
e2b template list -f jsonnow prints the SDK'sTemplateInfoobjects (templateId,buildId,names, …) instead of the raw API response (templateID,buildID,aliases,createdBy, …), and the pretty table drops theCreated bycolumn (the API deprecated the creator's email). -
1b3b2a4: Add
shelloption tocommands.runto run the command in a custom shell, e.g.shell: ['/bin/sh', '-c']runs/bin/sh -c <cmd>(default stays['/bin/bash', '-l', '-c']) -
6ee9a4b: Add resizable templates: build a template with
maxCpuCountand pick each sandbox'scpuCounton create.e2b template listshows aMax vCPUscolumn. -
106efea: The API client accepts an
Authorizationheader in place of an API key. Requests can now authenticate with an OAuth access token passed throughapiHeaders(JS) orapi_headers(Python), together with theX-Team-IDheader that selects the team:await Sandbox.create({ apiHeaders: { Authorization: `Bearer ${accessToken}`, 'X-Team-ID': teamId }, })
Sandbox.create(api_headers={"Authorization": f"Bearer {access_token}", "X-Team-ID": team_id})
-
c513ae1: Add
Template.delete(nameOrId)(JS) andTemplate.delete(name_or_id)/AsyncTemplate.delete(name_or_id)(Python) to delete a template or snapshot; returnsfalsewhen it isn't found.Sandbox.deleteSnapshot/Sandbox.delete_snapshotnow share its implementation and raiseTemplateError/TemplateException(subclasses ofSandboxError/SandboxException) on failure -
e50db00: Add
Template.list()returning aTemplatePaginator(AsyncTemplatePaginatorforAsyncTemplate) that pages through the project's templates asTemplateInfo, likeSandbox.list()andSecret.list().
Patch Changes
- Updated dependencies [aec4543]
- @e2b/dockerfile-utils-python@0.1.2