Skip to main content

Depictio CLI to interact with the Depictio API

Project description

Depictio CLI

A command-line interface for interacting with the Depictio API.

Installation

From Source

To install the CLI directly from the repository:

# Clone the repository
git clone https://github.com/depictio/depictio.git
cd depictio

# Install the CLI package
cd depictio/cli
pip install -e .

Usage

The Depictio CLI provides commands for managing projects, scanning data, and processing datasets.

Configuration Commands

# Sync a project configuration to the server
depictio-cli config sync-project-config-to-server \
  --agent-config-path ~/.depictio/admin_config.yaml \
  --project-config-path path/to/project_config.yaml \
  --update

# Show CLI configuration
depictio-cli config show-cli-config \
  --CLI-config-path ~/.depictio/admin_config.yaml

# Check S3 storage configuration
depictio-cli config check-s3-storage \
  --CLI-config-path ~/.depictio/admin_config.yaml

Data Commands

# Scan data files
depictio-cli data scan \
  --agent-config-path ~/.depictio/admin_config.yaml \
  --project-config-path path/to/project_config.yaml

# Process data
depictio-cli data process \
  --agent-config-path ~/.depictio/admin_config.yaml \
  --project-config-path path/to/project_config.yaml

Development

Package Structure

The CLI package is structured as follows:

depictio/cli/
├── pyproject.toml  # CLI-specific package configuration
├── setup.py        # Setup script with version synchronization
├── README.md       # This file
├── test_cli_install.py  # Script to test CLI installation
└── depictio_cli.py      # Main CLI entry point
    └── cli/             # CLI implementation
        ├── commands/    # CLI commands
        └── utils/       # Utility functions

Testing the Installation

You can test if the CLI package is correctly installed by running:

python test_cli_install.py

Versioning

The CLI package version is synchronized with the main Depictio package version. When you install the CLI package, the setup.py script reads the version from the main pyproject.toml file and updates the CLI's pyproject.toml accordingly.

CI/CD Integration

For CI/CD integration, see the following files in the root directory:

  • run_ci_locally.sh: Script to run the GitHub Actions workflow locally
  • debug_cli_steps.sh: Script to debug CLI-specific steps
  • debug_docker_services.sh: Script to debug Docker services
  • CI_DEBUGGING_GUIDE.md: Guide for debugging CI issues
  • CI_LOCAL_TESTING_README.md: Overview of local testing tools

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

depictio_cli-0.0.6b2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file depictio_cli-0.0.6b2.tar.gz.

File metadata

  • Download URL: depictio_cli-0.0.6b2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for depictio_cli-0.0.6b2.tar.gz
Algorithm Hash digest
SHA256 96364e4b372bacd6e289dab26f76b8db43097eef290e105415dc8f432686c08f
MD5 08039fa221bfe2a5a75b486ede3d2138
BLAKE2b-256 8b3a108cb95c35fce2f624bb806e00d718faee1a01a8122a89cca7ceec1c6441

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