Metadata-Version: 2.4
Name: ekos
Version: 1.6.1
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Summary: EKOS — an embedded knowledge engine for Python: open a compiled, evidence-backed knowledge ledger and query it in-process
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://ekos.dev
Project-URL: Repository, https://github.com/alexeyban/EKOS

# ekos

An embedded knowledge engine for Python: open a compiled, evidence-backed
[EKOS](https://github.com/alexeyban/EKOS) knowledge ledger and query it in-process. No server,
no Rust toolchain.

**Status: provisional (RFC 0269).** Not on PyPI yet; the API may change.

```python
import ekos

kb = ekos.open("path/to/workspace")          # read-only; never creates or changes a ledger
hits = kb.search("payment status", limit=10)
state = kb.get(hits[0].id)                   # the object, its relationships and its evidence
for e in state.evidence:
    print(e.path, e.line, e.fragment)

kb.impact(hits[0].id, hops=3)                # what a change to it would reach
answer = kb.query("which tables reference customers?")   # claims with evidence, no model call
```

The package reads. Knowledge enters a ledger by compiling sources with the `ekos` command.

Full guide: [docs/python.md](https://github.com/alexeyban/EKOS/blob/main/docs/python.md).
Build from a checkout: `uvx maturin build --release` in this directory.

