{"title":"SDKs","description":"Find the Altertable client libraries for lakehouse queries, ingestion, Product Analytics, and data apps, with links to setup guides and source repositories.","order":700,"askSuggestions":["Which environment variables do the lakehouse SDKs read?","Can I use the JavaScript lakehouse client in the browser?"],"navigation":true,"body":{"code":"var Component=(()=>{var p=Object.create;var l=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),S=(t,e)=>{for(var n in e)l(t,n,{get:e[n],enumerable:!0})},r=(t,e,n,s)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of g(e))!m.call(t,i)&&i!==n&&l(t,i,{get:()=>e[i],enumerable:!(s=b(e,i))||s.enumerable});return t};var y=(t,e,n)=>(n=t!=null?p(k(t)):{},r(e||!t||!t.__esModule?l(n,\"default\",{value:t,enumerable:!0}):n,t)),f=t=>r(l({},\"__esModule\",{value:!0}),t);var h=v((R,c)=>{c.exports=_jsx_runtime});var D={};S(D,{default:()=>u,frontmatter:()=>A});var a=y(h()),A={title:\"SDKs\",description:\"Find the Altertable client libraries for lakehouse queries, ingestion, Product Analytics, and data apps, with links to setup guides and source repositories.\",order:700,askSuggestions:[\"Which environment variables do the lakehouse SDKs read?\",\"Can I use the JavaScript lakehouse client in the browser?\"]};function d(t){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",p:\"p\",...t.components},{DocsPreviewDocument:n,DocsPreviewSection:s,DocsTable:i}=e;return n||o(\"DocsPreviewDocument\",!0),s||o(\"DocsPreviewSection\",!0),i||o(\"DocsTable\",!0),(0,a.jsxs)(n,{anchors:\"sdks lakehouse-sdks lakehouse-environment-variables product-analytics-sdks data-app-sdk\",children:[(0,a.jsxs)(s,{sectionId:\"sdks\",sectionTitle:\"SDKs\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,a.jsx)(e.h1,{id:\"sdks\",children:\"SDKs\"}),`\n`,(0,a.jsx)(e.p,{children:\"Choose the library for the data or workflow you need. The setup guides show working examples; each repository documents its package and supported API.\"}),`\n`]}),(0,a.jsxs)(s,{sectionId:\"lakehouse-sdks\",sectionTitle:\"Lakehouse SDKs\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,a.jsx)(e.h2,{id:\"lakehouse-sdks\",children:\"Lakehouse SDKs\"}),`\n`,(0,a.jsxs)(e.p,{children:[\"Install a published client before using the \",(0,a.jsx)(e.a,{href:\"/docs/lakehouse/query/http-api\",children:\"query examples\"}),\" or \",(0,a.jsx)(e.a,{href:\"/docs/lakehouse/ingest/http-api\",children:\"ingestion examples\"}),\". JavaScript clients should run on the server so lakehouse credentials stay private.\"]}),`\n`,(0,a.jsx)(i,{columns:[\"Language\",\"Installation\"],columnWidths:[\"10rem\",\"auto\"],data:[{Language:\"[JavaScript / TypeScript](https://github.com/altertable-ai/altertable-lakehouse-js)\",Installation:\"`npm install @altertable/lakehouse`\"},{Language:\"[Python](https://github.com/altertable-ai/altertable-lakehouse-python)\",Installation:\"`pip install altertable-lakehouse`\"},{Language:\"[Ruby](https://github.com/altertable-ai/altertable-lakehouse-ruby)\",Installation:\"`gem install altertable-lakehouse`\"},{Language:\"[Go](https://github.com/altertable-ai/altertable-lakehouse-go)\",Installation:\"`go get github.com/altertable-ai/altertable-lakehouse-go`\"},{Language:\"[Java](https://github.com/altertable-ai/altertable-lakehouse-java)\",Installation:'Gradle: `implementation(\"ai.altertable:altertable-lakehouse-java:0.1.4\")`. Maven: `ai.altertable:altertable-lakehouse-java:0.1.4`.'},{Language:\"[Rust](https://github.com/altertable-ai/altertable-lakehouse-rust)\",Installation:\"Not yet published on crates.io; use HTTP for an installable integration.\"},{Language:\"[PHP](https://github.com/altertable-ai/altertable-lakehouse-php)\",Installation:\"Not yet published on Packagist; use HTTP for an installable integration.\"}]}),`\n`]}),(0,a.jsxs)(s,{sectionId:\"lakehouse-environment-variables\",sectionTitle:\"Lakehouse environment variables\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,a.jsx)(e.h2,{id:\"lakehouse-environment-variables\",children:\"Lakehouse environment variables\"}),`\n`,(0,a.jsxs)(e.p,{children:[\"JavaScript, Python, Ruby, and Go accept \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_USERNAME\"}),\" and \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_PASSWORD\"}),\". Java and the CLI use \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_LAKEHOUSE_USERNAME\"}),\" and \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_LAKEHOUSE_PASSWORD\"}),\". All of these clients also accept \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_BASIC_AUTH_TOKEN\"}),\" for a base64-encoded username/password pair. Follow the chosen client's README when relying on automatic environment configuration.\"]}),`\n`,(0,a.jsxs)(e.p,{children:[\"The \",(0,a.jsx)(e.a,{href:\"/docs/lakehouse/query/http-api#1-verify-authentication\",children:\"HTTP query example\"}),\" uses \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_USERNAME\"}),\" and \",(0,a.jsx)(e.code,{children:\"ALTERTABLE_PASSWORD\"}),\" with cURL's \",(0,a.jsx)(e.code,{children:\"--user\"}),\" option, which constructs the Basic Auth header.\"]}),`\n`]}),(0,a.jsxs)(s,{sectionId:\"product-analytics-sdks\",sectionTitle:\"Product Analytics SDKs\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,a.jsx)(e.h2,{id:\"product-analytics-sdks\",children:\"Product Analytics SDKs\"}),`\n`,(0,a.jsxs)(e.p,{children:[\"Use \",(0,a.jsx)(e.a,{href:\"/docs/product-analytics/setup\",children:\"tracking setup\"}),\" to install and verify an SDK. The versions below support both product analytics and \",(0,a.jsx)(e.a,{href:\"/docs/product-analytics/track#audience-measurement\",children:\"audience measurement\"}),\".\"]}),`\n`,(0,a.jsx)(i,{columns:[\"SDK\",\"Package\",\"Version\",\"Runs in\"],columnWidths:[\"10rem\",\"auto\",\"6rem\",\"auto\"],data:[{SDK:\"[JavaScript](https://github.com/altertable-ai/altertable-js/tree/main/packages/altertable-js)\",Package:\"`@altertable/altertable-js`\",Version:\"1.6.0\",\"Runs in\":\"Browsers and custom JavaScript runtimes\"},{SDK:\"[React](https://github.com/altertable-ai/altertable-js/tree/main/packages/altertable-react)\",Package:\"`@altertable/altertable-react`\",Version:\"1.6.0\",\"Runs in\":\"React 16.14+, alongside the JavaScript SDK\"},{SDK:\"[React Native](https://github.com/altertable-ai/altertable-js/tree/main/packages/altertable-react-native)\",Package:\"`@altertable/altertable-react-native`\",Version:\"1.6.0\",\"Runs in\":\"iOS and Android with React Native 0.81+ and React 19.1+\"},{SDK:\"[Python](https://github.com/altertable-ai/altertable-python)\",Package:\"`altertable` on PyPI\",Version:\"0.3.0\",\"Runs in\":\"Backend services and jobs\"},{SDK:\"[Ruby](https://github.com/altertable-ai/altertable-ruby)\",Package:\"`altertable` on RubyGems\",Version:\"1.4.0\",\"Runs in\":\"Backend services and jobs\"},{SDK:\"[Swift](https://github.com/altertable-ai/altertable-swift)\",Package:\"`altertable-swift` via Swift Package Manager\",Version:\"0.3.0\",\"Runs in\":\"iOS 13+, tvOS 13+, macOS 11+, and watchOS 6+\"},{SDK:\"[Kotlin](https://github.com/altertable-ai/altertable-kotlin)\",Package:\"`ai.altertable.sdk:altertable-kotlin`, plus `altertable-android` for Android\",Version:\"0.2.0\",\"Runs in\":\"Android, and JVM apps on JDK 17+\"}]}),`\n`,(0,a.jsxs)(e.p,{children:[\"In these versions, the API key selects the environment that receives events, and the \",(0,a.jsx)(e.code,{children:\"environment\"}),\" option is ignored. Before upgrading from an earlier version, switch to an API key bound to the target environment and flush pending events.\"]}),`\n`]}),(0,a.jsxs)(s,{sectionId:\"data-app-sdk\",sectionTitle:\"Data-app SDK\",anchors:\"\",ancestors:\"\",index:\"4\",children:[(0,a.jsx)(e.h2,{id:\"data-app-sdk\",children:\"Data-app SDK\"}),`\n`,(0,a.jsxs)(e.p,{children:[\"Use the \",(0,a.jsx)(e.a,{href:\"/docs/data-apps/local-development\",children:\"local development guide\"}),\" for the CLI scaffold, preview, checks, and publishing commands. The \",(0,a.jsx)(e.a,{href:\"https://github.com/altertable-ai/data-app\",children:\"data-app repository\"}),\" documents the SDK.\"]}),`\n`,(0,a.jsxs)(e.p,{children:[\"Lakehouse requests use \",(0,a.jsx)(e.a,{href:\"/docs/administration/lakehouse-credentials\",children:\"lakehouse credentials\"}),\". Product Analytics requests use a \",(0,a.jsx)(e.a,{href:\"/docs/product-analytics/authentication\",children:\"Product Analytics API key\"}),\".\"]})]})]})}function u(t={}){let{wrapper:e}=t.components||{};return e?(0,a.jsx)(e,{...t,children:(0,a.jsx)(d,{...t})}):d(t)}function o(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return f(D);})();\n;return Component;"},"_id":"docs/api-references/sdks.mdx","_raw":{"sourceFilePath":"docs/api-references/sdks.mdx","sourceFileName":"sdks.mdx","sourceFileDir":"docs/api-references","contentType":"mdx","flattenedPath":"docs/api-references/sdks"},"type":"Docs","path":"/api-references/sdks","level":2,"parent":"api-references"}