Client parity¶
This page compares the public behavior of the Python, JavaScript, and Go clients. Complete means the client preserves the same API semantics. Idiomatic means the behavior is equivalent through language-native APIs.
Current status¶
Capability |
Python |
JavaScript |
Go |
Status |
|---|---|---|---|---|
Generated API |
Sync and async methods |
Promise-based methods |
Context-aware methods |
Complete: 33 wire operations and all schemas; two redirect routes have no client method |
Simple instance creation |
|
|
|
Idiomatic; |
Optional JSON fields |
|
|
|
Complete |
Client construction |
Five transport adapters |
Injectable |
Functional options and injectable |
Idiomatic |
Saved profiles |
|
Node-only |
|
Complete; Go resolves and constructs in two calls |
Environment profile |
|
|
|
Complete |
Typed errors |
Connection and HTTP status subclasses |
Equivalent error hierarchy |
Typed errors, the common |
Idiomatic |
Offline test client |
Method-level result queues and call log |
Method-level result queues and call log |
|
Idiomatic; Go exercises the real request builders, helpers, and decoders |
Retry and deadlines |
Retry policy and numeric timeouts |
Retry policy and numeric timeouts |
Finite or unbounded retries, per-attempt timeout, and context deadline |
Idiomatic; interrupted buffered reads participate in request retries |
Gzip and large responses |
Decoded and raw streams |
Fetch-managed decoded streams |
Decoded and raw streams |
Transport-specific; Fetch does not expose compressed bytes |
Operation events |
SSE iterator, reconnecting follower, terminal probe, wait |
Equivalent async helpers |
Native |
Idiomatic; iteration closes the event stream automatically |
Operation waiting |
Automatic events/polling selection and explicit override |
Same selection |
|
Complete: instance events, import polling, unchanged failed/cancelled responses |
Stream payload decoding |
Typed methods and raw-payload helpers |
Same helpers |
Typed methods, |
Idiomatic |
Literal values |
Literal type annotations |
Literal type annotations |
Generated constants for model fields and operation arguments |
Idiomatic; Go string fields retain future server values |
Pagination |
Lazy image, file, and operation iterators |
Async iterators |
Native |
Idiomatic; errors are yielded once and |
File and image helpers |
Deduplicated upload and image resolution |
Equivalent helpers |
Reader-aware upload and image resolution |
Complete |
Subprocess lifecycle |
Create, inspect, stdin, kill |
Same four operations |
Same four operations |
Complete |
Live instance filesystem |
List, download, archive, grep, existence checks, and apply uploaded files |
Same operations |
Same operations |
Complete; archives stream, file application preserves explicit false flags |
Resource limits |
Instance and process models |
Same models |
Same models with |
Complete; omitted or null process limits inherit operation limits |
Tutorial coverage |
Executed examples |
Subprocess, grep, and download examples executed |
All Go blocks compile; subprocess, grep, and download snippets also execute |
Compile gate runs in the Go test suite on every CI platform |
Intentional differences¶
Go uses
context.Contextfor stream and operation deadlines.Go has no client
Closemethod because callers own the suppliedhttp.Client.Go stops event followers on permanent HTTP and malformed-event errors.
Go iterators yield a zero item with the first error, then stop. Each traversal starts again; event streams close automatically when iteration ends.
Go limits buffered success bodies to 64 MiB and error bodies to 1 MiB. Use
InspectImageDownloadStreamfor larger downloads.Go keeps request specifications and the SSE parser private. Public generated methods own request and response resources.
Go tests configure generated wire operations through
MockTransport. Helpers execute normally, results pass through JSON or stream decoding, and call logs record HTTP attempts. Python and JavaScript replace public methods directly and record method arguments. Go constructor settings can be asserted through recorded request headers and URLs instead of aconstructedWithsnapshot.Python alone can save profiles. JavaScript and Go only read profiles because the Contree CLI owns credential-file updates.