SDKs
Client libraries for querying Spice.ai Cloud and a local Spice runtime
Last updated
Was this helpful?
Client libraries for querying Spice.ai Cloud and a local Spice runtime
Client SDKs connect to a Spice app over Apache Arrow Flight and return results as Apache Arrow record batches, which convert cheaply into the dataframe type of each language. They are the recommended way to query Spice from application code.
Every SDK connects to either Spice.ai Cloud or a local Spice runtime. Authentication against Cloud uses an app API key.
Each SDK ships defaults for both Cloud and a local runtime. The exact values and how to override them are on each SDK's page, but the hosts are common:
Spice.ai Cloud
flight.spiceai.io port 443
https://data.spiceai.io
Local runtime
localhost port 50051
http://localhost:8090
Most SDKs default to the local runtime for Flight. Connecting to Spice.ai Cloud generally requires setting the Cloud endpoint explicitly, or calling the SDK's Cloud helper — supplying an API key alone is not always enough. Each page states what its own defaults are.
An SDK is preferable for application code: it handles the Flight handshake, authentication headers, and retries. Query directly against the HTTP API or Arrow Flight API when a language has no SDK, or for one-off requests from a shell.
Last updated
Was this helpful?
Was this helpful?