Skip to main content

A CLI library for HarmonyHub

Project description

HarmonyHub

Overview

  • This is a Visual API Orchestrator POC created for Rest API Calls.
  • UI Generates YAML. Written in static HTML using WebComponents.
  • Python-based CLI is used to run YAML generated from UI. It can sequence and execute API Calls.

Commands

  • harmonyhub-cli init
    • harmonyhub-cli init --file workflow.yaml
  • harmonyhub_cli run <<workflow.yaml>>
    • harmonyhub-cli run <<workflow.yaml>> --debug
    • harmonyhub-cli run <<workflow.yaml>> --toolsFile <<integration.yaml>> --debug
  • harmonyhub-cli server
  • harmonyhub-cli --help
  • harmonyhub-cli --version

Operator Supported

  • Simple comparisons (==, !=, >, <, >=, <=)
  • Logical operations (and, or, not)
  • Basic arithmetic operations (+, -, *, /, %)

Body Templating Engine

Output Parser

System Defined Variables

  • RestAPI
    • $today_datetime
    • $today_date
    • $today_time
    • $today_date_zero_time
    • $request_http_method
    • $request_url
    • $request_headers
    • $request_body
    • $response_http_status
    • $response_headers
    • $response_body
    • $random.randint(1000,9999)
    • $random.uniform(15.5, 80.5)
  • Database
    • $response_body

Roadmap

  • Kafka
  • GraphQL
  • Grpc

Demo

  • Demo created here
    # https://pypi.org/project/harmonyhub-cli/
    pip install harmonyhub-cli/
    harmonyhub-cli serve
    
    # To run yaml generated standalone
    harmonyhub-cli <<file name.yaml>>
    

Credits

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

harmonyhub-cli-0.0.8.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

harmonyhub_cli-0.0.8-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file harmonyhub-cli-0.0.8.tar.gz.

File metadata

  • Download URL: harmonyhub-cli-0.0.8.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for harmonyhub-cli-0.0.8.tar.gz
Algorithm Hash digest
SHA256 925a77aea7496f2646867029e351f237966760f1d663d9db12ecaf0471096b64
MD5 359a18083c82fa774b50af47013b9e13
BLAKE2b-256 39ccb829b1c8ff0214aec329213bf81aed48b3caa65dfded18217adf39bf8b4c

See more details on using hashes here.

File details

Details for the file harmonyhub_cli-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: harmonyhub_cli-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for harmonyhub_cli-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1898c7080cbae683289195fe55d4aff53d31c891af116897debe1642aeae4c92
MD5 2a43a798a28bac0fd98d1aa94109e453
BLAKE2b-256 469336ce3fc3a39ccf7af32bfe4f8ba20846c64431b97f0b663d7b779522b8fc

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