Skip to main content

HAPE Auatomation: CLI for Platform and DevOps automations.

Project description

HAPE Framework

Table of Contents

HAPE Solutions

  • HAPE Solutions is the official website for the HAPE company and product ecosystem.
  • HAPE Vibes is the product for end-to-end service creation and deployment with integrated logging, monitoring, testing, planning, and architecture diagram workflows to help software architects and engineering teams deliver reliably and fast.

Intellectual Property / Permissions

Copyright (c) 2026 Hazem Ataya. All rights reserved.

This repository is not licensed. No permission is granted to use, copy, modify, merge, publish, distribute, sublicense, or sell any part of this repository or its contents without explicit written permission from the copyright holder.

Contributions

Contributions are not accepted at the moment.

Demos

DORA GitHub Project Dashboard

HAPE DORA GitHub Project Dashboard

EKS Deployment Cost Dashboard

EKS Deployment Cost Grafana Dashboard

Architecture

graph TD
  U[User]
  G[Visualization Tool]
  AG[DevOps Platform Agent]

  subgraph APP["Application Layer"]
    CLI[CLI]
    API[API]
  end

  subgraph BL["Business Logic Layer"]
    SVC[Services]
    EXP[Metrics Collectors]
  end

  subgraph INT["Integration Layer"]
    CP[Clients]
    K[Kubernetes]
    CLOUD[AWS GCP]
    VCS[GitHub GitLab]
    WM[Jira Confluence]
    TF[Terraform State]
  end

  subgraph DATA["Data Layer"]
    P[TSDB Time Series Database]
  end

  U --> CLI
  U --> API
  G --> U
  AG --> CLI
  AG --> API
  CLI --> SVC
  API --> SVC
  SVC --> CP
  EXP --> CP
  P --> EXP
  P --> G
  P --> AG
  CP --> K
  CP --> CLOUD
  CP --> VCS
  CP --> WM
  CP --> TF

Makefile

To list all available Make commands and their descriptions:

make help

Documentation

API

Docker

HAPE Framework is available as a Docker image on Docker Hub:

Getting started

Install HAPE with pip:

python3 -m pip install hape

Show available commands:

hape --help

Run FastAPI interface:

make run-api

HAPE supports both CLI and API workflows. API endpoints mirror CLI commands with strict 1:1 naming parity. Example: hape github init-repo maps to POST /github/init-repo.

API endpoints require bearer token auth. Token management uses admin key-protected endpoints.

Generate API token:

curl -s -X POST "http://localhost:8080/auth/tokens" \
  -H "Content-Type: application/json" \
  -H "X-Hape-Admin-Key: <YOUR_ADMIN_KEY>" \
  -d '{"name":"automation-bot"}'

Use API token:

curl -s -X POST "http://localhost:8080/github/init-repo" \
  -H "Authorization: Bearer <API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"repo_path":"/path/to/repo","owner":"hape-vibes"}'

See docs/api/auth-and-tokens.md for token lifecycle and security guidance.

Expected output:

usage: hape [-h] [command] ...

CLI for platform and DevOps automations.

commands:
    config                      config file operations.
    gitlab                      GitLab operations.
    github                      GitHub operations.
    jira                        fetch Jira issue data, remote links, or add comments.
    confluence                  confluence page operations.
    csv                         csv conversion operations.
    dora                        DORA metrics operations.
    eks-deployment-cost         generate EKS Deployment/StatefulSet cost report.
    kube-agent                  investigate Kubernetes incidents from CLI triggers.
    init-cicd                   scaffold deployment and CI files for supported projects.
    markdown                    markdown table import/export operations.

options:
  -h, --help                    show this help message and exit
  --version                     print the installed hape version and exit.
  --config-file-path CONFIG_FILE_PATH
                                path to config.json (default: ~/.hape/config.json).

Author

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

hape-1.2.3.tar.gz (118.3 kB view details)

Uploaded Source

Built Distribution

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

hape-1.2.3-py3-none-any.whl (182.0 kB view details)

Uploaded Python 3

File details

Details for the file hape-1.2.3.tar.gz.

File metadata

  • Download URL: hape-1.2.3.tar.gz
  • Upload date:
  • Size: 118.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.14.3

File hashes

Hashes for hape-1.2.3.tar.gz
Algorithm Hash digest
SHA256 5c8574e9212cfa02a820f6795e7b6f3d3fb5428d48a4fb8f322fc60f36ccd8c4
MD5 72f114090b6103cf77de46c353e26ec7
BLAKE2b-256 2c82e7db5cc605d753fbe1facc9b3fb9548b92ca62ce3473ad47bd35bf0ee4e0

See more details on using hashes here.

File details

Details for the file hape-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: hape-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 182.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.14.3

File hashes

Hashes for hape-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 77fe37ba1f762ac2f525b9ce1234df4d4f03737af95b332af654b57f3fd1c981
MD5 1ff70ac5cfe135df40d4853eb69437fc
BLAKE2b-256 81ee0895b1129abc47882d5be743328697c348c168a2150772288681153e71a4

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