Skip to main content

cognitum

Official Cognitum SDK for Python.

Talk to a Cognitum Seed appliance (direct, over mDNS / USB gadget / LAN) or the Cognitum Cloud control plane (api.cognitum.one).

Install

pip install cognitum
# optional: mDNS discovery
pip install "cognitum[mdns]"

Requires Python >=3.10.

Quick start — talking to a Seed

from cognitum.seed import SeedClient, SeedTLS

client = SeedClient(
    endpoints="https://cognitum.local:8443",
    tls=SeedTLS(insecure=True),  # dev-only
)

status = client.status()
print(f"seed {status.device_id}, epoch {status.epoch}")

result = client.store.query(vector=[0.1, 0.2, 0.8], k=3)

An AsyncSeedClient is available with the same surface for async codebases.

Features

  • 12 typed seed endpoints (status, pair, witness, custody, store, OTA, …)
  • Mesh routing with closest-first, session-sticky reads, failover on 5xx
  • client.mesh() observability wrappers (status / peers / swarm / cluster)
  • Per-call CallOptionspeer / prefer / consistency / timeout / retries
  • Discovery providers: ExplicitDiscovery, MdnsDiscovery, TailscaleDiscovery
  • TLS — explicit CA, fp=sha256:<hex> cert pinning, or dev-only insecure
  • Trust-score 3-strike cutoff; redacting SecretString around pairing tokens
  • ADR-0005 retry / rate-limit (500 ms base, 30 s cap, 60 s wall-clock)
  • MCP client with both HTTP and stdio transports
  • Lazy __getattr__ keeps cold start fast when only cognitum.seed is used

Documentation

License

MIT — see LICENSE.

Download files

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

Source Distribution

cognitum_sdk-0.3.0.tar.gz (214.1 kB view details)

Uploaded Source

Built Distribution

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

cognitum_sdk-0.3.0-py3-none-any.whl (256.7 kB view details)

Uploaded Python 3

File details

Details for the file cognitum_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: cognitum_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 214.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cognitum_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b02d9725e316adcff86830f67894bba504a594128df61ae857d8721309c89444
MD5 66bf094b571f0c6603dee505c85e58c0
BLAKE2b-256 84edd69b5829a5350f42d834dbd4c4e1746bb1a1685a6b60eb6c7e13fb50e1e0

See more details on using hashes here.

File details

Details for the file cognitum_sdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cognitum_sdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 256.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cognitum_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d9ce7b27a73a5459e3f5ae150e31d328ec6241ed772bc23ca493e80dfeb5a79
MD5 434faaa3d37f6175ab3a6a266077a57e
BLAKE2b-256 7807189d1bb8f9f407beb311a3dd51ef1081903a5b7336a37b0afd2f1b69384e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

Supported by

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