Skip to main content

NerveMind CGOS Python SDK

Developer-oriented client for decision intake (v2), proof validation, and execution invoke (gateway).

Install (local / editable)

cd sdks/python
pip install -e .

Quick start

from cgos_sdk import CGOSClient

client = CGOSClient(
    base_url="https://cgos-api.example.com",
    api_key="your-api-key",
    internal_service_token="...",  # for verify_proof / invoke_execution
)

out = client.submit_decision(
    source_system="core-payments",
    sector="banking",
    decision_type="limit_increase",
    decision_id="dec-001",
    context={"amount": 5000},
    policy_set="ORGANIZATION_POLICY_V1",
    callback_url="https://your-bank.example/callbacks/cgos",
    correlation_id="trace-abc",
)

proof_check = client.verify_proof(out.get("proof_id") or "prf_...")
exec_resp = client.invoke_execution(
    proof_id="prf_...",
    path="/api/v1/payments/transfer",
    organization_id="org_123",
    http_method="POST",
    json_body={"to": "x", "amount": 1},
)

Auth

Call Header
Intake v2 X-API-Key or Authorization: Bearer <api_key> (matches brain-api)
Proof validate / execution X-CGOS-Internal-Token (S2S)

Optional bearer JWT (UI / ops) enables wait_for_decision() polling on GET /api/v1/cgos/decisions/{id}.

Reliability

CGOSClient supports timeout_s, max_retries, Idempotency-Key on intake (passed as header when provided), and optional traceparent / correlation_id on every request.

External attestation

This SDK cannot prove mesh or gateway posture. Pair with SPIFFE/SPIRE, signed policy bundles, and CI validators — see docs/CGOS_EXTERNAL_ATTESTATION_AND_SDK.md at repo root.

Metadata

Release files for nervemind-cgos 0.1.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 nervemind-cgos 0.1.0
File Size Uploaded Provenance Actions
nervemind_cgos-0.1.0.tar.gz 4.9 kB Without provenance Details for nervemind_cgos-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nervemind-cgos 0.1.0
File Interpreter ABI Platform Actions
nervemind_cgos-0.1.0-py3-none-any.whl Python 3 none any Details for nervemind_cgos-0.1.0-py3-none-any.whl

Total release size: 10.2 kB

Release files / nervemind_cgos-0.1.0.tar.gz

Download URL nervemind_cgos-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
820b74924862b147744fc7b6944892e6583d59e0ad7cda0b177c24299ae7112a
BLAKE2b-256 checksum
How to use checksums
87719e9a523e0afff86ad0d77b2c117fc87f9f627ca4e6aa0148f091a0cf5a33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / nervemind_cgos-0.1.0-py3-none-any.whl

Download URL nervemind_cgos-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a7696962880dac79e6b39c5e86a94dd75fcfa536f96966007326643a50692b5
BLAKE2b-256 checksum
How to use checksums
43b6dcce6be819b4b86660ccc1d33744b25f9c10a9192ef2195808d9afbce4d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for nervemind-cgos 0.1.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

0.1.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