Skip to main content

Kater command-line interface

Project description

kater-cli

The official command-line interface for Kater — a semantic analytics platform that turns parameterized query templates into governed, multi-tenant SQL.

What is Kater?

Kater lets data teams build a small library of composable query templates with slots for metrics, dimensions, filters, and calculations. Those templates combine into hundreds of governed query variations, which product and ops teams can run without writing SQL.

The CLI is how you develop locally: sync your files to the platform, validate your schemas, compile templates to SQL, and execute queries against your warehouse.

Installation

pipx install kater-cli

Requires Python 3.12+.

Quick start

# Initialize a new Kater project in the current directory
kater install

# Log in via browser-based OAuth
kater login

# Sync your local files to the Kater platform (keep this running while you work)
kater dev

# In another terminal: validate your schemas
kater validate

# Compile a query template to SQL
kater compile COMPLIANCE_OVERVIEW

# Execute a query and display results
kater run COMPLIANCE_OVERVIEW

Commands

kater install

Scaffolds a new Kater project in the current directory, creating the standard file structure including config, admin settings, and a getting-started guide.

kater dev

Syncs your local repository files to the Kater platform over a persistent WebSocket connection. File changes are detected and synced automatically. Keep this running in the background while working on your templates.

kater validate

Validates all semantic layer schemas (views, queries, filters, measures) for correctness. On success, writes the dependency graph and tenant schemas back to your local repo.

kater validate                          # validate all connections
kater validate -c snowflake_prod        # validate a specific connection
kater validate --topic compliance -c snowflake_prod
kater validate --branch main            # validate from a git branch

kater compile

Compiles a query template to SQL and writes the output back to your repo via the dev session.

kater compile COMPLIANCE_OVERVIEW
kater compile COMPLIANCE_OVERVIEW --combination 'measure=Compliance Rate,dimension=Department'
kater compile --topic compliance -c snowflake_prod
kater compile COMPLIANCE_OVERVIEW --branch main

kater run

Executes a compiled query against your warehouse and displays results as a table.

kater run COMPLIANCE_OVERVIEW
kater run COMPLIANCE_OVERVIEW --tenant acme_corp
kater run COMPLIANCE_OVERVIEW --limit 20
kater run topics/compliance/queries/ --sample 1   # run one combination per query in folder

kater scaffold topic

Creates a new topic directory with the standard subdirectory structure (queries, query_views, dashboards, reportflows).

kater login / kater logout / kater status

OAuth-based authentication. Credentials are stored securely in the system keychain (macOS Keychain, Windows Credential Locker, Linux Secret Service).

Configuration

The CLI connects to https://api.kater.ai by default. Override with environment variables:

Variable Default Description
KATER_API_URL https://api.kater.ai Kater API base URL
KATER_OAUTH_AUTH_URL https://auth.kater.ai/propelauth/oauth/authorize OAuth authorization endpoint
KATER_OAUTH_TOKEN_URL https://auth.kater.ai/propelauth/oauth/token OAuth token endpoint
KATER_OAUTH_CALLBACK_PORT 9876 Local port for OAuth callback

Links

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

kater_cli-0.1.4-py3-none-any.whl (94.6 kB view details)

Uploaded Python 3

File details

Details for the file kater_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: kater_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 94.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kater_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 106928eaec223bb2eb26312cef7953415b208682d0357526b23e5bad1af6a06b
MD5 125f4ee9d6bdf83e60a657a774b534c4
BLAKE2b-256 92b36b67997f38f8813ae28605b72c807e5e9ad1afd28af7515206d6fddb822b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kater_cli-0.1.4-py3-none-any.whl:

Publisher: release-kater-cli.yml on kater-ai/kater

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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