Installation¶
This guide covers installing the Griddy SDK for both Python and TypeScript.
Python SDK¶
Requirements¶
- Python 3.14 or higher
- pip or poetry for package management
Basic Installation¶
Install from PyPI:
Development Installation¶
For development with testing and documentation tools:
This includes:
- pytest, pytest-cov, pytest-mock for testing
- black, isort, flake8 for code formatting
- mypy for type checking
- pre-commit for git hooks
Documentation Dependencies¶
To build documentation locally:
From Source¶
Clone and install in development mode:
git clone https://github.com/jkgriebel93/griddy-sdk-python.git
cd griddy-sdk-python
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in editable mode
pip install -e ".[dev]"
Playwright Setup (Optional)¶
For browser-based authentication, install Playwright browsers:
TypeScript SDK¶
Requirements¶
- Node.js 18.0.0 or higher
- npm, yarn, or pnpm for package management
Basic Installation¶
Using npm:
Using yarn:
Using pnpm:
From Source¶
Clone and build from source:
git clone https://github.com/jkgriebel93/griddy-sdk-typescript.git
cd griddy-sdk-typescript
# Install dependencies
npm install
# Build the SDK
npm run build
TypeScript Configuration¶
The SDK requires TypeScript 5.0+ for full type support. Recommended tsconfig.json settings:
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
}
}
Verifying Installation¶
Python¶
TypeScript¶
Troubleshooting¶
Python: Module Not Found¶
If you get ModuleNotFoundError, ensure you're using the correct Python version:
TypeScript: Type Errors¶
Ensure your TypeScript version is compatible:
Playwright Issues¶
If browser authentication fails, try reinstalling Playwright: