Skip to content
Open
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
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion connectrpc-otel/connectrpc_otel/_instrumentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion connectrpc-otel/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion example/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-connect-python/.goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
dist: ../out
project_name: protoc-gen-connect-python
project_name: protoc-gen-connectrpc
builds:
- main: .
env:
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-connect-python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-connect-python/uv.lock

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

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "connect-python"
name = "connectrpc"
version = "0.9.0"
description = "Server and client runtime library for Connect RPC"
maintainers = [
Expand Down Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion src/connectrpc/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from importlib.metadata import version

__version__ = version("connect-python")
__version__ = version("connectrpc")
52 changes: 26 additions & 26 deletions uv.lock

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

Loading