Skip to content

feat(sdk): generate Python client from proto #19

@EngineerProjects

Description

@EngineerProjects

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__.pyNexusClient 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions