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.1.7.tar.gz (114.9 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.1.7-py3-none-any.whl (178.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hape-1.1.7.tar.gz
Algorithm Hash digest
SHA256 34c907750e9dad5bb756892b5afa3691e80baa1718a433e01c24f30df80314a4
MD5 def33924212a934fc7e9d18e080a217e
BLAKE2b-256 cc5856a8c08ea8d0ab2b3cda18f6fc7c2359d6c404f7a407be465f8df34a2110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hape-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 178.5 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.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bff4fe57812653793d0be9e1b2fa9f3d91ca48d0137769c845b2ac7a2fd23e0f
MD5 f38411e3d5e06c6352b3332c6b1cfd3f
BLAKE2b-256 891d0efc37a095f99f9307c5bff98ca2d8d211e6f0951cde22b4fb72119c15eb

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