Metadata-Version: 2.5
Name: deft-subspace-kernel
Version: 0.1.0a1
Summary: Protocol-neutral kernel: channels, NDJSON framing, a JSON-RPC peer with one owner for every request's lifecycle, and supervised agent processes. No dependencies.
Project-URL: Homepage, https://github.com/deftai/subspace/tree/main/python
Project-URL: Source, https://github.com/deftai/subspace
Project-URL: Issues, https://github.com/deftai/subspace/issues
Project-URL: Changelog, https://github.com/deftai/subspace/blob/main/python/CHANGELOG.md
Author: Deft
License-Expression: MIT
License-File: LICENSE
Keywords: acp,agent-client-protocol,asyncio,json-rpc,ndjson
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# deft-subspace-kernel

The protocol-neutral kernel of [Deft Subspace for Python](https://github.com/deftai/subspace/tree/main/python): channels, NDJSON framing, a JSON-RPC 2.0 peer (timeouts, cancellation, middleware, one owner for every request), abort signals, traces, and supervised child processes. Plain asyncio, Python 3.11 or later, no dependencies.

```python
from deft_subspace.kernel import RpcPeer, channel_pair

a, b = channel_pair()
server = RpcPeer(b).on_request("echo", lambda params, _ctx: params).start()
client = RpcPeer(a).start()
assert await client.request("echo", {"hi": 1}) == {"hi": 1}
```

Most programs want [`deft-subspace-acp`](https://pypi.org/project/deft-subspace-acp/), which builds the Agent Client Protocol on this.

MIT licensed.
