Summary
Generate a Python gRPC client from nexus.proto and publish it as a
pip-installable package so Python developers can use Nexus without
running Go.
Deliverables
sdk/python/ — generated stubs + thin wrapper with a friendly API
sdk/python/nexus/__init__.py — NexusClient class
sdk/python/pyproject.toml — installable as pip install nexus-engine
- README in
sdk/python/README.md with quickstart
NexusClient API (proposed)
from nexus import NexusClient
client = NexusClient(host="localhost:50051", api_key="...")
# One-shot query
response = client.query("Refactor the auth module")
print(response.content)
# Streaming
for event in client.stream("Write a Go HTTP handler"):
if event.HasField("text_chunk"):
print(event.text_chunk.text, end="", flush=True)
# Sessions
session = client.create_session()
session.submit("First message")
session.submit("Follow-up question")
Acceptance criteria
Summary
Generate a Python gRPC client from
nexus.protoand publish it as apip-installable package so Python developers can use Nexus without
running Go.
Deliverables
sdk/python/— generated stubs + thin wrapper with a friendly APIsdk/python/nexus/__init__.py—NexusClientclasssdk/python/pyproject.toml— installable aspip install nexus-enginesdk/python/README.mdwith quickstartNexusClient API (proposed)
Acceptance criteria
sdk/python/nexus/_generated/NexusClientwraps stubs with a Pythonic API (no raw proto objects exposed)make sdk-pythonregenerates stubs from protosdk/python/examples/