Skip to main content

Universal Command Line Interface for Hive agent.

Project description

Hive-CLI

Hive-CLI is a command-line interface for managing and deploying the Hive agent and experiments on Kubernetes and other platforms.

     ███          █████   █████  ███
    ░░░███       ░░███   ░░███  ░░░
      ░░░███      ░███    ░███  ████  █████ █████  ██████
        ░░░███    ░███████████ ░░███ ░░███ ░░███  ███░░███
         ███░     ░███░░░░░███  ░███  ░███  ░███ ░███████
       ███░       ░███    ░███  ░███  ░░███ ███  ░███░░░
     ███░         █████   █████ █████  ░░█████   ░░██████
    ░░░          ░░░░░   ░░░░░ ░░░░░    ░░░░░     ░░░░░░

Installation

Pre-requisites

  • Python 3.8 or higher
  • docker for image building.
  • gcloud CLI via brew install gcloud for authentication.

Notes:

  • Make sure to enable the ✅ Use containerd for pulling and storing images option in Docker Desktop settings, which is required for multi-arch image support.

Install via pip

pip install hiverge-cli==0.2.2

Install from source

source start.sh

How to run

Note: Hive-CLI reads the configuration from a yaml file, by default it will look for the ~/.hive/sandbox-config.yaml. You can also specify a different configuration file using the -f option. Refer to the config.yaml for examples.

Below we assume that you have a ~/.hive/sandbox-config.yaml file.

Edit the experiment

Edit command will open the configuration file in your default editor (e.g., vim, nano, etc.) for you to modify the experiment configuration. You can also specify a different editor using the EDITOR environment variable, by default it will use vim.

hive edit config

Create an experiment

hive create exp my-experiment

Note: This will build a Docker image for the experiment and push it to the container registry which may take some time, based on the Dockerfile and network speed. You can enable the Debug mode in the configuration file to see more detailed logs.

List experiments

hive show exps

Visit Dashboard

hive dashboard

Delete an experiment

hive delete exp my-experiment

More

See hive -h for more details.

Development

Debugging

Change the log_level in the configuration file to DEBUG to see more detailed logs.

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

hiverge_cli-0.2.4.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

hiverge_cli-0.2.4-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file hiverge_cli-0.2.4.tar.gz.

File metadata

  • Download URL: hiverge_cli-0.2.4.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for hiverge_cli-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ea14d9943553e3607d8bead092c5d5045eda5534d0f5d24f51acb9a0d326e58e
MD5 71d75aab0e9d9745391fb6cbbae60bc8
BLAKE2b-256 257eb82becee45049124c20d735f9bdd0c7e72a3d4f4ab37f4f2524887012c64

See more details on using hashes here.

File details

Details for the file hiverge_cli-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: hiverge_cli-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for hiverge_cli-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 895bb75262295ac62d544566ba4e803cf6049d9f360f9c5bee6fcc1f56fc3534
MD5 31d6fe0eafd4f9e206ba717cd91ba45f
BLAKE2b-256 d4ced81b5f8d3d92082f0616f18605be72f44d87dfe4ed6034f8af21d0f51af2

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