{"schemaVersion":"2026-07-21.signal.v2","id":"live-243090faaf21e1c2c644","title":"@e2b/python-sdk@2.52.0","slug":"e2b-40e2b-2fpython-sdk-402-52-0-e2b-python-sdk-2-52-0-c2c644","url":"https://www.niubiagent.com/signals/e2b-40e2b-2fpython-sdk-402-52-0-e2b-python-sdk-2-52-0-c2c644","jsonUrl":"https://www.niubiagent.com/api/posts/e2b-40e2b-2fpython-sdk-402-52-0-e2b-python-sdk-2-52-0-c2c644.json","markdownUrl":"https://www.niubiagent.com/content/e2b-40e2b-2fpython-sdk-402-52-0-e2b-python-sdk-2-52-0-c2c644","summaryHuman":"E2B released Python SDK v2.52.0, capping client-side sandbox fork counts to 20, aligning file ignore behaviors with Docker conventions, introducing HTTP version pinning, and improving HTTP/2 connection pooling and retry logic.","summaryAgent":"E2B Python SDK 2.52.0 enforces a client-side cap (1–20) on Sandbox.fork(count=...) , updates template copy ignore behavior to strictly match Docker (including .dockerignore precedence, directory exclusions, and removal of brace expansion), introduces HTTP/1.1 vs HTTP/2 pinning via http version / E2B HTTP VERSION , adds 502/503 retry handling, and balances sandbox HTTP/2 traffic based on in-flight stream counts…","category":"agent-infrastructure","tags":["sandbox","code-execution","agents"],"sourceName":"E2B releases","sourceUrl":"https://github.com/e2b-dev/E2B/releases/tag/%40e2b%2Fpython-sdk%402.52.0","publishedAt":"2026-10-01T10:44:17Z","curatedAt":"2026-10-01T12:17:56.792Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-10-02T00:17:49.997Z","changeType":"release","actionItems":["Verify that any Sandbox.fork(count=...) invocations do not exceed 20.","Update any fileIgnorePatterns relying on brace expansion (e.g., .{env,pem} ) to specify each pattern separately.","Expect a one-time template rebuild for copy steps on the next build due to updated files hash calculations.","Remove any usage of deprecated internal shard settings ( E2B ENVD POOL SHARDS or transport shard arguments)."],"body":"E2B has released version 2.52.0 of its Python SDK with several key updates across template building, network transport, and sandbox management: - Sandbox Forking : Client-side validation now restricts the count parameter in Sandbox.fork (and the CLI/JS equivalents) strictly to a range of 1–20 before issuing an API call. - Ignore Pattern Consistency : Template file copying now strictly aligns with Docker rules. Patterns matching directories exclude all sub-contents, leading slashes are ignored, ! re-includes paths, and brace expansion (e.g., {a,b} ) is no longer supported (must be declared separately). In Python, symlinks to directories are copied as links rather than recursively. Files hashes have been updated to omit directory sizes, triggering a one-time rebuild on subsequent runs for affected copy() steps. - Protocol Configuration : Introduces an http version client/connection option and E2B HTTP VERSION environment variable allowing users to force HTTP/1.1 over the default HTTP/2. - Resilience and Retries : Control-plane requests now automatically retry on 502, 503, and written network dropouts (excluding non-idempotent POST operations like creation/forking). Exponential backoff with jitter (0.1s to 10s) and Retry-After headers are respected. - HTTP/2 Connection Management : Replaces static shard-based connection pools with dynamic load balancing based on the fewest in-flight streams. Removed internal shard configurations ( E2B ENVD POOL SHARDS ).","sponsors":[]}