Check — preflight validation for shell commands. Know if a command will work before running it.
Project description
check-gol
Check — preflight validation for shell commands. Know if a command will work before running it.
$0.0068 AUD per check. Zero dependencies.
Install
pip install check-gol
Usage
from check_gol import Check
check = Check() # reads GOL_CLIENT_ID from env
result = check.command("curl https://api.example.com/health")
print(result.runnable) # True
print(result.verdict) # "runnable"
Guard pattern
from check_gol import Check, InvalidCommand
check = Check()
try:
check.guard("curl https://dead.endpoint.example")
except InvalidCommand:
print("Command would fail — skipping")
OpenAI function calling
from openai import OpenAI
from check_gol import Check
client = OpenAI()
check = Check()
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Check if this API is live: https://api.example.com"}],
tools=[check.openai_tool()],
)
for tool_call in response.choices[0].message.tool_calls or []:
if tool_call.function.name == "check":
output = check.handle_openai_call(tool_call.function.arguments)
LangChain
pip install check-gol[langchain]
from check_gol.langchain import CheckTool
tools = [CheckTool()]
CrewAI
pip install check-gol[crewai]
from check_gol.crewai import CheckTool
agent = Agent(tools=[CheckTool()])
Claude MCP
Use the check-mcp npm package instead.
Environment
Set GOL_CLIENT_ID or pass it directly:
check = Check(client_id="gol_xxxx")
Get your key at golproductions.com/check.html
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
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 check_gol-0.1.0.tar.gz.
File metadata
- Download URL: check_gol-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ef1b42bc57f260ff9a9b51466edaca04113a1d77d283700d3f0c203e42a193a
|
|
| MD5 |
424c3bfad11c91591ce4c89cd7d06012
|
|
| BLAKE2b-256 |
b5fadbc52d7cd6801eada1a4bd575565eabd3859c81ab6e8d279c998e88a75b6
|
File details
Details for the file check_gol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: check_gol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40a0b03631f37ea6fe241686c6f5498f5827f9046c75f7c9f79cff073e7bd4de
|
|
| MD5 |
dcc33aa45604fe58093fb66f680512b1
|
|
| BLAKE2b-256 |
8e098274bf9a628190b8fbf48bf92b032fd18e93ab2ce0ddab31c9a6a19cc722
|