Quick verification for Clarity-Gated Document (.cgd) files - returns pass/fail for CI/CD pipelines
Project description
cgd-verify
Quick pass/fail verification for Clarity-Gated Document (.cgd) files — optimized for CI/CD pipelines.
When to Use
| Tool | Use Case |
|---|---|
| cgd-verify | CI/CD pipelines, git hooks, quick checks |
| cgd-validator | Detailed reports, debugging, development |
Installation
pip install cgd-verify
CLI Usage
# Quick check - exit 0 if valid, exit 1 if invalid
cgd-verify document.cgd
# Multiple files
cgd-verify docs/*.cgd
# Silent mode (only exit code, no output)
cgd-verify document.cgd --silent
In CI/CD
# GitHub Actions
- run: pip install cgd-verify && cgd-verify docs/*.cgd
# Pre-commit hook
cgd-verify $(git diff --cached --name-only -- '*.cgd')
Python API
# Re-exports everything from cgd-validator
from cgd_verify import validate, is_valid, detect
if is_valid(content):
print('Valid')
Related
- cgd-validator - Detailed validation with warnings
- sot-verify - Quick verification for .sot files
- Clarity Gate - Full ecosystem
License
CC BY 4.0
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
cgd_verify-0.1.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cgd_verify-0.1.0.tar.gz.
File metadata
- Download URL: cgd_verify-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c853c19c5e73780e014f205b4a0db47aa830658daa23ed474433b81f3661d698
|
|
| MD5 |
30899baf8385f1d8a693a3c386437475
|
|
| BLAKE2b-256 |
9eb19bc20c13be36c6c5563c833e5f577f7a5ac8ca86b4876bf57d8c2e1745be
|
File details
Details for the file cgd_verify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cgd_verify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb7e72c4bb7f9098cdf818036b51fc1d47b53f73bd26b5e9e6c5d5ecc4f0fdae
|
|
| MD5 |
2cdced96f62b4d2508f8651227696cee
|
|
| BLAKE2b-256 |
f44a330433f9fe04f92a2c5f5fc3e3236ef40c9d81508426f32ec90fd3c42b74
|