Skip to main content

Marmot Development Kit — Python SDK and CLI for the Komodo Health platform (Snowflake access, OAuth, MCP, and more).

Project description

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, and Snowflake access via a DB-API 2.0 connection
CLI The komodo command-line tool for login, account selection, ad hoc SQL, 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
  • Automatic token refresh
  • Environmentsintegration or production via KOMODO_ENVIRONMENT

Prerequisites

  • Python 3.11 or higher (see requires-python in 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

  1. Log in (opens a browser):

    uv run komodo login
    
  2. Choose your Komodo account:

    uv run komodo account set
    
  3. 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:

https://docs.komodohealth.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

komodo-3.4.1.tar.gz (190.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

komodo-3.4.1-py3-none-any.whl (243.9 kB view details)

Uploaded Python 3

File details

Details for the file komodo-3.4.1.tar.gz.

File metadata

  • Download URL: komodo-3.4.1.tar.gz
  • Upload date:
  • Size: 190.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for komodo-3.4.1.tar.gz
Algorithm Hash digest
SHA256 6a5d0c2fc1faa7f2a3a9928f7566784dfef4dcb825d651df86b3f71158bc25c2
MD5 1d8ca474136214ade4dbb31e22e274a6
BLAKE2b-256 947932c0039661ea33d0921b6b2d6237ba711e8d36f525ce3a054318fe09b44b

See more details on using hashes here.

File details

Details for the file komodo-3.4.1-py3-none-any.whl.

File metadata

  • Download URL: komodo-3.4.1-py3-none-any.whl
  • Upload date:
  • Size: 243.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for komodo-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32135f08e9b3a75688c151abd5f2c9b3f2c03e5ae8901111b812673650351beb
MD5 e6dd977e8d53619a28ecb5cb2550d7b4
BLAKE2b-256 2ab9ab8c6a583359481f884f42630cf77025d18c634684c63e2b3b67675ad0fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page