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.1.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.1.tar.gz.
File metadata
- Download URL: cgd_verify-0.1.1.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 |
3e04fc16b46ef37331f550272f116f58865cf0877f28b6d373c44e76b1181306
|
|
| MD5 |
567d1ff5020e1c0d996fee7697d99cd8
|
|
| BLAKE2b-256 |
9100782935df9f46ee586ef8c22f2a8ae036546d8e0996485d6d2e46ab678362
|
File details
Details for the file cgd_verify-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cgd_verify-0.1.1-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 |
80e2eefcb9028a0a867c82ef4642e6a9aacaebd95808e4523b20c5baf52d7142
|
|
| MD5 |
be522e6acc857091c7c012d5d6d0285b
|
|
| BLAKE2b-256 |
5b098a8d6cca1d1420256818880c1a8dcb0f58795f9d3208a7c168300d726a73
|