This release is a pre-release and may not be stable for production use.
dig-client
Python client for a local dig daemon — search, organize, reconcile, and export a knowledge base over HTTP. Dependency-free (standard library only), local-first.
Install
pip install dig-client
Start a daemon next to your KB (dig binary from https://dig.vllnt.com):
dig serve # binds 127.0.0.1:3978 (loopback only)
Use
from dig_client import DigClient
dig = DigClient() # http://127.0.0.1:3978
# search — fts (default), vector, or hybrid (semantic)
hits = dig.find("invoice acme 2024", mode="hybrid", limit=5)
# agent memory — capture, then recall a token-budgeted pack
dig.retain(session_markdown, as_="memory/sessions/today.md")
pack = dig.recall("billing ledger decision", budget=1000)
# reorganize by policy — preview, then apply (reversible)
dig.org(apply=False) # preview the plan
dig.org(apply=True) # commit it
dig.undo() # step back
# reproducible dataset export (JSONL text)
jsonl = dig.export(filter="label:finance")
# read-only inspection
dig.drift()
dig.log()
Target a specific KB with kb="/path/or/name" on any call; omit it to use the
KB at the daemon's working directory. Errors raise DigError carrying the HTTP
status.
The client speaks the same contract as dig serve, a thin adapter over the dig
CLI — so it never drifts from the tool.
Metadata
Release files for dig-client 0.1.0.dev8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dig_client-0.1.0.dev8.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dig_client-0.1.0.dev8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / dig_client-0.1.0.dev8.tar.gz
| Download URL | dig_client-0.1.0.dev8.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c052c8da338612e59eac17c79397d4ca5e7516c42fd1dab2b247c7e8af00a305
|
|
BLAKE2b-256 checksum How to use checksums |
b9935e204b2754e4285d30df0b509223e08d602d9380ac3af750dc5384eec19b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / dig_client-0.1.0.dev8-py3-none-any.whl
| Download URL | dig_client-0.1.0.dev8-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f36783bf2a82c810f47ac53eb3e3fb37a9b1cedaa9401236cc5d7a6787aed7b1
|
|
BLAKE2b-256 checksum How to use checksums |
80b945cdb0acd1592666b407d063158cc9535d7dff815eb9366adf44fd045a3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|