Skip to main content

Python CLI for scaffolding and managing Terse projects.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

terse-cli

Python CLI for scaffolding, generating, testing, and deploying Terse jobs.

Installation

pipx install terse-cli

The CLI installs the published terse-sdk automatically.

Don't have pipx? Install it first:

# macOS
brew install pipx && pipx ensurepath

# Ubuntu/Debian
sudo apt install pipx && pipx ensurepath

# Generic
python3 -m pip install --user pipx && python3 -m pipx ensurepath

Then restart your shell.

Requirements

  • Python >=3.11
  • uv for working with scaffolded projects

The CLI is installed via pipx, but the generated project scaffold uses uv sync and uv run.

Quick Start

terse init my-terse-job
cd my-terse-job
uv sync
terse test

If you connect integrations later, regenerate the project helpers:

terse generate

Commands

  • terse init [PROJECT_NAME]
  • terse generate
  • terse integrate
  • terse test [JOB_NAME]
  • terse deploy

Supported Generated Helpers

The current Python codegen surface is:

  • Schedule.cron(...)
  • Attio.skill(...)
  • Snowflake.skill(...)
  • deterministic wrappers on agent.tools.attio and agent.tools.snowflake

terse generate writes these helpers into src/terse_generated.py inside your project.

For example, after generating Snowflake helpers and registering skills=[Snowflake.skill()], a job can call:

from terse_sdk import CronJobInputEvent
from terse_generated import TerseAgent

def handle(event: CronJobInputEvent, agent: TerseAgent) -> None:
    result = agent.tools.snowflake.execute_query(query="select current_date()")
    print(result.rowCount)

Environment Variables

  • TERSE_API_KEY: required for terse generate, terse deploy, and any agent/tool calls made by your job

Typical Workflow

terse init my-terse-job
cd my-terse-job
uv sync
terse test
terse deploy

Source

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

terse_cli-0.1.6.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

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

terse_cli-0.1.6-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file terse_cli-0.1.6.tar.gz.

File metadata

  • Download URL: terse_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for terse_cli-0.1.6.tar.gz
Algorithm Hash digest
SHA256 18ff077e568395ff32535a874c82d3fd1f14b503eddf0a8dcf663bb003e96fe9
MD5 dbd61c3caf4e1bb7546a11486e105bfa
BLAKE2b-256 6b0dfea0e66edaba34fd47063abe5b948bb5da9cea767bd43bfdcb95acf8fb12

See more details on using hashes here.

File details

Details for the file terse_cli-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: terse_cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for terse_cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5b589470de66a0c8e03cfb63e970ee9693b078c29b3ee2fae6a85c312163c283
MD5 7c6134db5a0dfb100b4f92a09e0e4cc4
BLAKE2b-256 2f2d52aeea21ccce6941a8ce59290b71421975e3835b5955c52cc9730424c93c

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