Skip to main content
HAPE Framework

HAPE Framework

A Python CLI and FastAPI toolkit for platform and DevOps automation.

Same commands, safety levels, and approval rules for engineers and AI coding agents.

Get started

View demos

How it compares

HAPE complements CI and IaC.

It does not replace Terraform or Kubernetes.

✅ Yes ❌ No ◐ Partial

Approach Named repeatable CLI Safety level before run Approval for write or delete Shared human and AI rules Secret redaction
Ad-hoc scripts plus kubectl ❌ ❌ ❌ ❌ ◐
GitHub Actions or GitLab CI ◐ ❌ ◐ ❌ ◐
Terraform ✅ ◐ ◐ ❌ ◐
Unrestricted AI agent in an IDE ❌ ❌ ❌ ❌ ❌
HAPE Framework ✅ ✅ ✅ ✅ ✅

Read the Comparison notes.

Benefits for engineers

  • Repeatable commands: keep automation in auditable CLI and API paths instead of one-off scripts.
  • Readable safety: see read, write, or delete before a command runs.
  • Shared rules: humans and AI coding agents follow the same approval workflow.
  • Redacted secrets: sensitive values stay hidden unless you pass --reveal-secrets.

First useful output

Two read commands produce reports you can inspect.

AI-assisted automation

Agents can propose a hape command.

You still see the safety level, the side effects, and whether approval is required.

  • Same surface: CLI and HTTP API stay aligned for most commands.
  • Agent rules: repository LLM rules classify tools, redact secrets, and stop for approval.
  • Explicit gates: write, delete, remote, publish, apply, and rollout need a yes.

Add those rules from the AI IDE integration guide.

What it automates

How it works

CLI and API call the same services, then clients, then the external systems.

flowchart LR
  cli[CLI]
  api[HTTP API]
  services[Services]
  clients[Clients]
  systems[External systems]
  cli --> services
  api --> services
  services --> clients
  clients --> systems

Read the CLI, API, service, and client model for layer ownership.

Safety and trust

Classify a command before you run it.

  • Read: fetch, list, describe, or show only.
  • Write: create or update.
  • Delete: destructive actions such as delete, purge, rotate, apply, or rollout.

Start with Command safety.

Get started

Install the CLI, then run a read command.

  1. Install HAPE
  2. Five-minute quick start
  3. First useful output
  4. Configure one integration
  5. Understand command safety
  6. Add HAPE rules to your AI IDE
python -m pip install hape
hape --version
hape --help
hape config show

hape config show is a read command with no side effects.

Demos

Runnable examples live with the source and in the documentation portal.

Open source

HAPE Framework is licensed under the MIT License.

License

MIT License.

Copyright (c) 2026 Hazem Ataya.

See LICENSE.

Contributions

Public pull requests are accepted.

Every pull request requires personal review and explicit approval from Hazem Ataya.

See CONTRIBUTING.md.

Security

Report vulnerabilities privately to hazem.ataya@hapesolutions.com.

See SECURITY.md.

HAPE Solutions

  • HAPE Solutions is the company website.
  • HAPE Vibes is a separate product for service creation and deployment workflows.

Docker

A container image is published on Docker Hub as hazemataya/hape.

Author

Metadata

Release files for hape 1.2.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hape 1.2.12
File Size Uploaded
hape-1.2.12.tar.gz 149.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hape 1.2.12
File Interpreter ABI Platform
hape-1.2.12-py3-none-any.whl Python 3 none any Details

Total release size: 368.9 kB

Release files / hape-1.2.12.tar.gz

Download URL hape-1.2.12.tar.gz
Size 149.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a8f5299f71a8d7ae8e26afeb0028bb89ecc3e5ebe1be0ac303d0fa78e7616671
BLAKE2b-256 checksum
How to use checksums
d9ea9a83184eece22f5112badd117a323f53758f048e5752ab06f6421334b4aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / hape-1.2.12-py3-none-any.whl

Download URL hape-1.2.12-py3-none-any.whl
Size 219.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a2dfedf2d6624f8db639e2ef7c083f1b6e4cb2361d20f7cbeea32d29afc113b
BLAKE2b-256 checksum
How to use checksums
6b74593cb869e70d79e13f018b12338ab59dbd6162720980590b11936b191f04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.2.12 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.1

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

0.2.99

2 release files

0.2.98

2 release files

0.2.97

2 release files

0.2.96

2 release files

0.2.95

2 release files

0.2.94

2 release files

0.2.93

2 release files

0.2.92

2 release files

0.2.91

2 release files

0.2.90

2 release files

0.2.89

2 release files

0.2.88

2 release files

0.2.87

2 release files

0.2.86

2 release files

0.2.85

2 release files

0.2.84

2 release files

0.2.83

2 release files

0.2.82

2 release files

0.2.81

2 release files

0.2.80

2 release files

0.2.79

2 release files

0.2.78

2 release files

0.2.77

2 release files

0.2.76

2 release files

0.2.75

2 release files

0.2.74

2 release files

0.2.73

2 release files

0.2.72

2 release files

0.2.71

2 release files

0.2.70

2 release files

0.2.69

2 release files

0.2.68

2 release files

0.2.67

2 release files

0.2.66

2 release files

0.2.65

2 release files

0.2.64

2 release files

0.2.62

2 release files

0.2.59

2 release files

0.2.58

2 release files

0.2.57

2 release files

0.2.56

2 release files

0.2.55

2 release files

0.2.54

2 release files

0.2.53

2 release files

0.2.51

2 release files

0.2.50

2 release files

0.2.49

2 release files

0.2.46

2 release files

0.2.45

2 release files

0.2.44

2 release files

0.2.43

2 release files

0.2.41

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page