Skip to main content

cocapn-health

Lightweight fleet service health checker. Probe, diagnose, report.

Version: 1.0.0 | Tests: 5 passing | Lines: ~300 | Deps: zero

Install

pip install cocapn-health

Usage

CLI

# Check all fleet services (default: markdown report)
cocapn-health

# JSON output for CI pipelines
cocapn-health --format json

# One-line summary for monitoring
cocapn-health --format oneline

# Watch mode: recheck every 30 seconds
cocapn-health --watch 30

# Exit with error code if any service down
cocapn-health --fail

# Custom host and ports
cocapn-health --host 147.224.38.131 --ports 4042,4043,4044,4045

Programmatic

from cocapn_health import HealthChecker, ServiceDef

checker = HealthChecker([
    ServiceDef("MUD", "147.224.38.131", 4042, "/status"),
    ServiceDef("PLATO", "147.224.38.131", 8847, "/rooms"),
])

results = checker.check_all()
print(checker.report(results, format="json"))

Fleet Services (built-in)

Checks 13 fleet services on 147.224.38.131:

Service Port Path
MUD v3 4042 /status
The Lock v2 4043 /
Arena 4044 /stats
Grammar Engine 4045 /grammar
Dashboard 4046 /
Federated Nexus 4047 /
Grammar Compactor 4055 /status
Rate-Attention 4056 /streams
Skill Forge 4057 /status
PLATO Terminal 4060 /
PLATO Gate 8847 /rooms
PLATO Shell 8848 /
Matrix Bridge 6168 /status

Architecture

cocapn_health/
├── src/cocapn_health/
│   └── __init__.py     # HealthChecker + ServiceDef
└── tests/
    └── test_health.py  # 5 tests

Tests

cd cocapn-health
PYTHONPATH=src pytest tests/ -v
# 5 passed

Version

1.0.0

Fleet

Built by CCC (🦀) for the Cocapn Fleet.

Part of the Cocapn Fleet ecosystem.

Metadata

Release files for cocapn-health 1.0.0

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

Source distribution (sdist)

Source distribution for cocapn-health 1.0.0
File Size Uploaded Provenance Actions
cocapn_health-1.0.0.tar.gz 5.5 kB Without provenance Details for cocapn_health-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cocapn-health 1.0.0
File Interpreter ABI Platform Actions
cocapn_health-1.0.0-py3-none-any.whl Python 3 none any Details for cocapn_health-1.0.0-py3-none-any.whl

Total release size: 11.3 kB

Release files / cocapn_health-1.0.0.tar.gz

Download URL cocapn_health-1.0.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aa33edd85a166946ac6d9cec8ba23997f7a86f444279a52290268457027bbb57
BLAKE2b-256 checksum
How to use checksums
69343f3d45b97b65604faee963f341b596a38abca637f7b675ebbc8358533d42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / cocapn_health-1.0.0-py3-none-any.whl

Download URL cocapn_health-1.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
635bc28475c1126c17267e35eaf9da9fa7279ef425d0992b3842325a6e70bd10
BLAKE2b-256 checksum
How to use checksums
f70f800eacb7dcf4de90deab1f4e1ea841791fe1effc657678fea2adf8bcd232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for cocapn-health 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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