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
CallOptions—peer/prefer/consistency/timeout/retries - Discovery providers:
ExplicitDiscovery,MdnsDiscovery,TailscaleDiscovery - TLS — explicit CA,
fp=sha256:<hex>cert pinning, or dev-onlyinsecure - Trust-score 3-strike cutoff; redacting
SecretStringaround 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 onlycognitum.seedis used
Documentation
- Cross-cutting:
../../docs/adr/ - Python-specific ADRs:
docs/adr/ - Changelog:
CHANGELOG.md
License
MIT — see LICENSE.
Metadata
Release files for cognitum-sdk 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cognitum_sdk-0.3.0.tar.gz | 214.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cognitum_sdk-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 470.7 kB
Release files / cognitum_sdk-0.3.0.tar.gz
| Download URL | cognitum_sdk-0.3.0.tar.gz |
|---|---|
| Size | 214.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b02d9725e316adcff86830f67894bba504a594128df61ae857d8721309c89444
|
|
BLAKE2b-256 checksum How to use checksums |
84edd69b5829a5350f42d834dbd4c4e1746bb1a1685a6b60eb6c7e13fb50e1e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / cognitum_sdk-0.3.0-py3-none-any.whl
| Download URL | cognitum_sdk-0.3.0-py3-none-any.whl |
|---|---|
| Size | 256.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d9ce7b27a73a5459e3f5ae150e31d328ec6241ed772bc23ca493e80dfeb5a79
|
|
BLAKE2b-256 checksum How to use checksums |
7807189d1bb8f9f407beb311a3dd51ef1081903a5b7336a37b0afd2f1b69384e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|