Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check_gol-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

check_gol-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for check_gol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ef1b42bc57f260ff9a9b51466edaca04113a1d77d283700d3f0c203e42a193a
MD5 424c3bfad11c91591ce4c89cd7d06012
BLAKE2b-256 b5fadbc52d7cd6801eada1a4bd575565eabd3859c81ab6e8d279c998e88a75b6

See more details on using hashes here.

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

Hashes for check_gol-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40a0b03631f37ea6fe241686c6f5498f5827f9046c75f7c9f79cff073e7bd4de
MD5 dcc33aa45604fe58093fb66f680512b1
BLAKE2b-256 8e098274bf9a628190b8fbf48bf92b032fd18e93ab2ce0ddab31c9a6a19cc722

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page