Skip to main content

datapaw-cli

Standalone command-line interface for DataPaw.

This package provides the datapaw command and connects local host workflows through datapaw-host-core.

The command automatically loads DATAPAW_ENV_FILE when set. Otherwise, an editable checkout is discovered from the CLI package location and the repository root .env is loaded. Existing process environment variables take precedence over dotenv values. Outside an editable checkout, the current working directory is used as the fallback configuration root.

Available command groups:

  • plan
  • execute
  • run
  • chat
  • datasource
  • semantic
  • doctor

Run datapaw doctor before the first task to check supported Python/Node versions, uv, model and authentication configuration, DataPaw Home, DataBridge MCP, Docker, Neo4j, and the DataBridge API. datapaw doctor --json emits a machine-readable report that reports whether credentials are set without printing their values.

datasource manages the datasources configured in DataBridge:

datapaw datasource list
datapaw datasource get <datasource_id> [--show-config]
datapaw datasource create --name <n> --type <t> \
  (--config-file <f.json> | --config '<json>') [--test]
datapaw datasource update <datasource_id> [--name <n>] [--type <t>] [--config-file <f>]
datapaw datasource delete <datasource_id> [--yes]
datapaw datasource test (<datasource_id> | --type <t> --config-file <f>)

Set DATAPAW_CM_BASE_URL to the DataBridge origin. It defaults to http://127.0.0.1:8765. Every command emits JSON and masks saved passwords, AccessKeys, and STS tokens before writing anything to stdout; there is no option that prints stored credentials. list uses the credential-free discovery endpoint, while the management subcommands call the /api/semantic-config routes and need an API key with the credentials:manage scope when scoped keys are configured (DATAPAW_CLIENT_API_TOKEN or DATAPAW_API_TOKEN).

semantic manages the DataBridge semantic configuration layer. The seven resources domain, dataset, column, dimension, binding, metric, and formula share the same verbs:

datapaw semantic <resource> list [filters] [--page N --size N | --all]
datapaw semantic <resource> get <id>
datapaw semantic <resource> create (field flags | --file payload.json)
datapaw semantic <resource> update <id> (field flags | --file payload.json)
datapaw semantic <resource> delete <id> [--yes]

binding and formula also support dataset-level batch deletion with delete --dataset-id <id>. Reads require the query scope and writes the manage scope. Two more subcommands cover import and publishing:

# Import a semantic configuration workbook into the draft store
datapaw semantic import --file demo_semantic_config.xlsx

# Publish (weave) the configuration into the graph store
datapaw semantic weave submit --datasource-id <id> [--mode FULL] [--wait]
datapaw semantic weave list [--datasource-name <n>] [--task-name <n>]
datapaw semantic weave kill <task_id>

With --wait the CLI polls until the task reaches a terminal state (success, failed, killed), printing progress to stderr and the final task record as JSON to stdout; the exit code is 0 only for success.

The default CLI model uses provider openai together with LLM_MODEL, OPENAI_API_KEY, and OPENAI_BASE_URL. Set the corresponding DATAPAW_MODEL_PROVIDER, DATAPAW_MODEL_NAME, DATAPAW_MODEL_API_KEY, and DATAPAW_MODEL_BASE_URL variables to override individual values for the CLI.

Output and logs

The CLI writes streamed agent events, final answers, and execution summaries to stdout. Interactive prompts and concise command errors remain explicit CLI output on the terminal rather than raw log records. Python logging is written to ${DATAPAW_HOME}/host/datapaw.log at INFO level and above; DATAPAW_HOME defaults to ~/.datapaw.

The log rotates at 50 MB and keeps two backups as datapaw.log.1 and datapaw.log.2. Rotation assumes one active CLI process per DATAPAW_HOME. Direct users of datapaw-host-core continue to own their process logging configuration.

This package intentionally omits serve and local initialization helpers from the public CLI help.

Download files

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

Source Distribution

datapaw_cli-0.2.0.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

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

datapaw_cli-0.2.0-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file datapaw_cli-0.2.0.tar.gz.

File metadata

  • Download URL: datapaw_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for datapaw_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6412bb55fb0906310d3b475b3d55add6cfa5c1d31b1ec538713f742ae4311dcd
MD5 edbc796da3e81c2d47d1d53fde5d2458
BLAKE2b-256 2c4f2910a6efa50f089415a0774f9e9eea48f3dda27c648c1d829ef5c9bdc3ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for datapaw_cli-0.2.0.tar.gz:

Publisher: publish.yml on agentscope-ai/QwenPaw-Data

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

File details

Details for the file datapaw_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: datapaw_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for datapaw_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4924846b44e6da1219c9940a64f5c05b79c947758f47feb8c56cac9bfdcce51f
MD5 7db79d000dc37f5f917c4f9dc24cdb96
BLAKE2b-256 01c7f36b36855f41d71380432e43f65dba131e8b6f7b457178ddb765d7f8758b

See more details on using hashes here.

Provenance

The following attestation bundles were made for datapaw_cli-0.2.0-py3-none-any.whl:

Publisher: publish.yml on agentscope-ai/QwenPaw-Data

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

Release history Release notifications | RSS feed

0.2.4

2 files

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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