Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.7.12] - 15-09-2025

### Added

- Server reflection

## [v0.7.10] - 10-09-2025

### Fixed
Expand Down
8 changes: 8 additions & 0 deletions orca_python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import google.protobuf.struct_pb2 as struct_pb2
from google.protobuf import json_format
from service_pb2_grpc import OrcaProcessorServicer
from grpc_reflection.v1alpha import reflection

from orca_python import envs
from orca_python.exceptions import (
Expand Down Expand Up @@ -692,6 +693,13 @@ def Start(self) -> None:
# add our servicer to the server
service_pb2_grpc.add_OrcaProcessorServicer_to_server(self, server)

# Enable reflection for service discovery
SERVICE_NAMES = (
pb.DESCRIPTOR.services_by_name["OrcaProcessor"].full_name,
reflection.SERVICE_NAME,
)
reflection.enable_server_reflection(SERVICE_NAMES, server)

# add the server port
port = server.add_insecure_port(self._processorConnStr)
if port == 0:
Expand Down
106 changes: 61 additions & 45 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "orca-python"
version = "0.7.11"
version = "0.7.12"
description = "Python SDK for the Predixus Orca product"
authors = [
"Frederick Mannings <contact@predixus.com>"
Expand All @@ -18,6 +18,8 @@ build-backend = "poetry.core.masonry.api"
python = ">=3.10"
grpcio-tools = "^1.71.0"
grpcio = "^1.71.0"
mypy = "^1.18.1"
grpcio-reflection = "^1.74.0"

[tool.poetry.group.dev.dependencies]
poethepoet = "^0.34.0"
Expand Down