Marmot Development Kit
The komodo PyPI package is the Python SDK and CLI component of the Marmot Development Kit for the Komodo Health platform. It ships three main surfaces:
| Surface | What you get |
|---|---|
| SDK | Python APIs for OAuth-backed sessions, account context, Snowflake access via a DB-API 2.0 connection, and the Marmot Analysis API (client.marmot) |
| CLI | The komodo command-line tool for login, account selection, ad hoc SQL, chatting with Marmot (komodo marmot -c), running the MCP server, and more |
| MCP tools | A Model Context Protocol server you can attach to compatible AI clients so assistants can call Komodo-backed tools (see the docs for configuration) |
Together they cover authentication, querying your Komodo data warehouse, and optional assistant-driven workflows.
Features
- OAuth 2.0 device flow — browser-based login and persisted credentials
- Snowflake access — query your warehouse through the platform proxy (SDK or CLI)
- Sync and async queries — blocking execution and async submit/poll helpers in Python
- Marmot chat — create Marmot analyses and chat from the terminal (
komodo marmot -c, interactive) or from Python (client.marmot), and read the files an analysis produces (requires a Marmot subscription) - Automatic token refresh
- Environments —
integrationorproductionviaKOMODO_ENVIRONMENT
Prerequisites
- Python 3.11 or higher (see
requires-pythonin this package) - uv (recommended)
Installation
From a new directory, initialize a uv project and add the package:
uv init
uv add komodo
Confirm the CLI:
uv run komodo --version
Quick start
-
Log in (opens a browser):
uv run komodo login
-
Choose your Komodo account:
uv run komodo account set
-
Use the SDK from Python — create
first_query.py:from komodo import get_snowflake_connection conn = get_snowflake_connection() cursor = conn.cursor() cursor.execute("SELECT 1") print(cursor.fetchone()) conn.close()
uv run first_query.py
Documentation
Full guides for the Marmot Development Kit—SDK, CLI, MCP setup, authentication (including machine-to-machine), pandas, and API reference:
Release files for komodo 3.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| komodo-3.4.4.tar.gz | 210.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| komodo-3.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 477.5 kB
Release files / komodo-3.4.4.tar.gz
| Download URL | komodo-3.4.4.tar.gz |
|---|---|
| Size | 210.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
398ac24810ca93f764cfb3fe461b580da5a8568ebb692a289bedd0f590040a6a
|
|
BLAKE2b-256 checksum How to use checksums |
4e6aa06a9b603eea4b4d70817866ade57e22d92831e95ac612ab82c2c9c45030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / komodo-3.4.4-py3-none-any.whl
| Download URL | komodo-3.4.4-py3-none-any.whl |
|---|---|
| Size | 267.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c54531240c8637e6c8ad631924030a59ac11d4849fc2683046870725fcabe84
|
|
BLAKE2b-256 checksum How to use checksums |
e8b8ff26c16cae97d7992faff765f5110ffae31f13caf4e39f78a7fd96ec972a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|