From 67971b2544e435e6e94611773cf5040ad92cf1d4 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 16 Mar 2026 22:14:33 +0900 Subject: [PATCH 1/6] Rename artifacts to connectrpc Signed-off-by: Anuraag Agrawal --- connectrpc-otel/pyproject.toml | 4 ++-- example/pyproject.toml | 2 +- protoc-gen-connect-python/pyproject.toml | 2 +- pyproject.toml | 2 +- uv.lock | 18 +++++++++--------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/connectrpc-otel/pyproject.toml b/connectrpc-otel/pyproject.toml index 7e012da..831ec06 100644 --- a/connectrpc-otel/pyproject.toml +++ b/connectrpc-otel/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "connectrpc-otel" +name = "connectrpc" version = "0.1.0" description = "OpenTelemetry instrumentation for connectrpc" maintainers = [ @@ -53,7 +53,7 @@ dev = [ # have a real dependency to avoid any possible version conflicts. But for Python, # the ecosystem vastly favors auto-instrumentation, and it is easier to add than remove # a transitive dependency, so we go ahead and leave it out. - "connect-python>=0.8.0", + "connectrpc>=0.8.0", "opentelemetry-sdk==1.39.1", "opentelemetry-instrumentation-asgi==0.60b1", diff --git a/example/pyproject.toml b/example/pyproject.toml index 005ed82..16236bc 100644 --- a/example/pyproject.toml +++ b/example/pyproject.toml @@ -2,7 +2,7 @@ name = "connect-python-example" version = "0.1.0" dependencies = [ - "connect-python", + "connectrpc", "flask==3.1.3", "protobuf>=5.28", "starlette==0.52.1", diff --git a/protoc-gen-connect-python/pyproject.toml b/protoc-gen-connect-python/pyproject.toml index dfbfcc2..0318803 100644 --- a/protoc-gen-connect-python/pyproject.toml +++ b/protoc-gen-connect-python/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "protoc-gen-connect-python" +name = "protoc-gen-connectrpc" version = "0.9.0" description = "Code generator for connect-python" maintainers = [ diff --git a/pyproject.toml b/pyproject.toml index 33ff670..d21ace8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -246,6 +246,6 @@ exclude = [ members = ["connectrpc-otel", "example"] [tool.uv.sources] -connect-python = { workspace = true } +connectrpc = { workspace = true } connect-python-example = { workspace = true } connectrpc-otel = { workspace = true } diff --git a/uv.lock b/uv.lock index 41222c9..e248103 100644 --- a/uv.lock +++ b/uv.lock @@ -10,7 +10,7 @@ resolution-markers = [ members = [ "connect-python", "connect-python-example", - "connectrpc-otel", + "connectrpc", ] constraints = [ { name = "coverage", specifier = "==7.13.2" }, @@ -411,7 +411,7 @@ name = "connect-python-example" version = "0.1.0" source = { editable = "example" } dependencies = [ - { name = "connect-python" }, + { name = "connectrpc" }, { name = "flask" }, { name = "protobuf" }, { name = "starlette" }, @@ -419,14 +419,14 @@ dependencies = [ [package.metadata] requires-dist = [ - { name = "connect-python", editable = "." }, + { name = "connectrpc", editable = "connectrpc-otel" }, { name = "flask", specifier = "==3.1.3" }, { name = "protobuf", specifier = ">=5.28" }, { name = "starlette", specifier = "==0.52.1" }, ] [[package]] -name = "connectrpc-otel" +name = "connectrpc" version = "0.1.0" source = { editable = "connectrpc-otel" } dependencies = [ @@ -436,8 +436,8 @@ dependencies = [ [package.dev-dependencies] dev = [ - { name = "connect-python" }, { name = "connect-python-example" }, + { name = "connectrpc" }, { name = "opentelemetry-instrumentation-asgi" }, { name = "opentelemetry-instrumentation-wsgi" }, { name = "opentelemetry-sdk" }, @@ -452,8 +452,8 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ - { name = "connect-python", editable = "." }, { name = "connect-python-example", editable = "example" }, + { name = "connectrpc", editable = "connectrpc-otel" }, { name = "opentelemetry-instrumentation-asgi", specifier = "==0.60b1" }, { name = "opentelemetry-instrumentation-wsgi", specifier = "==0.60b1" }, { name = "opentelemetry-sdk", specifier = "==1.39.1" }, @@ -664,7 +664,7 @@ name = "exceptiongroup" version = "1.3.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } wheels = [ @@ -1732,8 +1732,8 @@ name = "taskgroup" version = "0.2.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "exceptiongroup" }, - { name = "typing-extensions" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/f0/8d/e218e0160cc1b692e6e0e5ba34e8865dbb171efeb5fc9a704544b3020605/taskgroup-0.2.2.tar.gz", hash = "sha256:078483ac3e78f2e3f973e2edbf6941374fbea81b9c5d0a96f51d297717f4752d", size = 11504, upload-time = "2025-01-03T09:24:13.761Z" } wheels = [ From f32077c95f1606e634161d7e107d99ae471705bc Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 16 Mar 2026 22:18:42 +0900 Subject: [PATCH 2/6] version Signed-off-by: Anuraag Agrawal --- src/connectrpc/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectrpc/_version.py b/src/connectrpc/_version.py index 3b4962e..e6fe233 100644 --- a/src/connectrpc/_version.py +++ b/src/connectrpc/_version.py @@ -2,4 +2,4 @@ from importlib.metadata import version -__version__ = version("connect-python") +__version__ = version("connectrpc") From 68b4195cc13551befa0ba279c60a07270a102e12 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 16 Mar 2026 22:27:53 +0900 Subject: [PATCH 3/6] facepalm Signed-off-by: Anuraag Agrawal --- connectrpc-otel/pyproject.toml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/connectrpc-otel/pyproject.toml b/connectrpc-otel/pyproject.toml index 831ec06..96ed939 100644 --- a/connectrpc-otel/pyproject.toml +++ b/connectrpc-otel/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "connectrpc" +name = "connectrpc-otel" version = "0.1.0" description = "OpenTelemetry instrumentation for connectrpc" maintainers = [ diff --git a/pyproject.toml b/pyproject.toml index d21ace8..af1efce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "connect-python" +name = "connectrpc" version = "0.9.0" description = "Server and client runtime library for Connect RPC" maintainers = [ From 4bdf67ec56fea6912482f72e072eadb3a228c188 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 16 Mar 2026 22:32:07 +0900 Subject: [PATCH 4/6] instruments Signed-off-by: Anuraag Agrawal --- .../connectrpc_otel/_instrumentor.py | 2 +- uv.lock | 46 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/connectrpc-otel/connectrpc_otel/_instrumentor.py b/connectrpc-otel/connectrpc_otel/_instrumentor.py index ff04d74..5d8773c 100644 --- a/connectrpc-otel/connectrpc_otel/_instrumentor.py +++ b/connectrpc-otel/connectrpc_otel/_instrumentor.py @@ -17,7 +17,7 @@ from connectrpc.interceptor import Interceptor, InterceptorSync -_instruments = ("connect-python>=0.9.0",) +_instruments = ("connectrpc>=0.9.0",) P = ParamSpec("P") R = TypeVar("R") diff --git a/uv.lock b/uv.lock index e248103..f44271c 100644 --- a/uv.lock +++ b/uv.lock @@ -8,9 +8,9 @@ resolution-markers = [ [manifest] members = [ - "connect-python", "connect-python-example", "connectrpc", + "connectrpc-otel", ] constraints = [ { name = "coverage", specifier = "==7.13.2" }, @@ -344,7 +344,26 @@ wheels = [ ] [[package]] -name = "connect-python" +name = "connect-python-example" +version = "0.1.0" +source = { editable = "example" } +dependencies = [ + { name = "connectrpc" }, + { name = "flask" }, + { name = "protobuf" }, + { name = "starlette" }, +] + +[package.metadata] +requires-dist = [ + { name = "connectrpc", editable = "." }, + { name = "flask", specifier = "==3.1.3" }, + { name = "protobuf", specifier = ">=5.28" }, + { name = "starlette", specifier = "==0.52.1" }, +] + +[[package]] +name = "connectrpc" version = "0.9.0" source = { editable = "." } dependencies = [ @@ -407,26 +426,7 @@ dev = [ ] [[package]] -name = "connect-python-example" -version = "0.1.0" -source = { editable = "example" } -dependencies = [ - { name = "connectrpc" }, - { name = "flask" }, - { name = "protobuf" }, - { name = "starlette" }, -] - -[package.metadata] -requires-dist = [ - { name = "connectrpc", editable = "connectrpc-otel" }, - { name = "flask", specifier = "==3.1.3" }, - { name = "protobuf", specifier = ">=5.28" }, - { name = "starlette", specifier = "==0.52.1" }, -] - -[[package]] -name = "connectrpc" +name = "connectrpc-otel" version = "0.1.0" source = { editable = "connectrpc-otel" } dependencies = [ @@ -453,7 +453,7 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ { name = "connect-python-example", editable = "example" }, - { name = "connectrpc", editable = "connectrpc-otel" }, + { name = "connectrpc", editable = "." }, { name = "opentelemetry-instrumentation-asgi", specifier = "==0.60b1" }, { name = "opentelemetry-instrumentation-wsgi", specifier = "==0.60b1" }, { name = "opentelemetry-sdk", specifier = "==1.39.1" }, From 9d0e3e5d5a2f5e0bb244290ec454c3249b5643c2 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 16 Mar 2026 23:39:53 +0900 Subject: [PATCH 5/6] Lock codegen Signed-off-by: Anuraag Agrawal --- protoc-gen-connect-python/uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoc-gen-connect-python/uv.lock b/protoc-gen-connect-python/uv.lock index f1817eb..7899b8b 100644 --- a/protoc-gen-connect-python/uv.lock +++ b/protoc-gen-connect-python/uv.lock @@ -12,7 +12,7 @@ wheels = [ ] [[package]] -name = "protoc-gen-connect-python" +name = "protoc-gen-connectrpc" version = "0.9.0" source = { editable = "." } From 744d80b3bf3aef06f36549c3dcd094d66a1e8343 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 16 Mar 2026 23:44:42 +0900 Subject: [PATCH 6/6] Update codegen exe name Signed-off-by: Anuraag Agrawal --- README.md | 20 ++++++++++---------- protoc-gen-connect-python/.goreleaser.yaml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ca3e3c6..3b1172c 100644 --- a/README.md +++ b/README.md @@ -26,17 +26,17 @@ This repo provides a Python implementation of Connect, including both client and ### Install the runtime library ```bash -pip install connect-python +pip install connectrpc ``` Or with your preferred package manager: ```bash # Using uv -uv add connect-python +uv add connectrpc # Using poetry -poetry add connect-python +poetry add connectrpc ``` ### Install the code generator @@ -58,20 +58,20 @@ plugins: out: . ``` -Or, you can install the compiler (e.g. `pip install protoc-gen-connect-python`), and -it can be referenced as `protoc-gen-connect-python`. -Then, you can use `protoc-gen-connect-python` as a local plugin: +Or, you can install the compiler (e.g. `pip install protoc-gen-connectrpc`), and +it can be referenced as `protoc-gen-connectrpc`. +Then, you can use `protoc-gen-connectrpc` as a local plugin: ```yaml -- local: .venv/bin/protoc-gen-connect-python +- local: .venv/bin/protoc-gen-connectrpc out: . ``` Alternatively, download a precompiled binary from the [releases](https://github.com/connectrpc/connect-python/releases). -`protoc-gen-connect-python` is only needed for code generation. Your actual -application should include `connect-python` as a dependency for the runtime +`protoc-gen-connectrpc` is only needed for code generation. Your actual +application should include `connectrpc` as a dependency for the runtime component. ### Basic Client Usage @@ -383,7 +383,7 @@ When exceeded, returns `RESOURCE_EXHAUSTED` error. ### Proto Editions Support -`protoc-gen-connect-python` supports up to [Protobuf Editions](https://protobuf.dev/editions/overview/) 2024: +`protoc-gen-connectrpc` supports up to [Protobuf Editions](https://protobuf.dev/editions/overview/) 2024: ```proto edition = "2024"; diff --git a/protoc-gen-connect-python/.goreleaser.yaml b/protoc-gen-connect-python/.goreleaser.yaml index 712f7b0..8e8c230 100644 --- a/protoc-gen-connect-python/.goreleaser.yaml +++ b/protoc-gen-connect-python/.goreleaser.yaml @@ -1,6 +1,6 @@ version: 2 dist: ../out -project_name: protoc-gen-connect-python +project_name: protoc-gen-connectrpc builds: - main: . env: