Installation
LH42 provides official SDKs for Python and JavaScript/TypeScript. Choose your preferred language below.
Python
Requires Python 3.8 or higher.
bash
pip install lakehouse42-sdkFor async support:
bash
pip install lakehouse42-sdk[async]Node.js / TypeScript
Requires Node.js 18 or higher.
bash
npm install @lakehouse42/sdk
# or
yarn add @lakehouse42/sdk
# or
pnpm add @lakehouse42/sdkEnvironment Variables
We recommend storing your API key as an environment variable:
bash
export LAKEHOUSE_API_KEY="your_api_key_here"Then in your code:
python
from lakehouse42 import LakehouseClient
client = LakehouseClient() # Automatically uses LAKEHOUSE_API_KEYDocker
For containerized deployments:
dockerfile
FROM python:3.11-slim
RUN pip install lakehouse42-sdk
# Your application codeVerifying Installation
python
import lakehouse42
print(lakehouse42.__version__) # Should print version numberTroubleshooting
SSL Certificate Errors: Ensure your system's CA certificates are up to date.
Import Errors: Make sure you're using the correct Python version.
Connection Timeouts: Check your firewall settings and network connectivity.