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

This version

1.2.2

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.2.tar.gz (117.0 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.2-py3-none-any.whl (182.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hape-1.2.2.tar.gz
Algorithm Hash digest
SHA256 da6e8887f0d5cda0008ef1049e4d27f7d95acaf2312bd60f0997c1f2c1cdfac1
MD5 7c4ef6b7bb51884d10d0d419b7e0156c
BLAKE2b-256 384b5b9f35b500a1e67faa6cc0934cc6cbe000af086e95cd1f630c8ea86e589a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hape-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3fca58d00e4ccba4fb94c60210778fd8641c47d434d547832e3685b7aeaea8f6
MD5 1bad00a8fa53e4a88b3185ecffdb951f
BLAKE2b-256 9890e92bdea9b61eb757525c6701932c072409f74f0d042fb5a7df7ecbdf6b05

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