Skip to content

Commit 05a3471

Browse files
authored
all: fix project name (#108)
1 parent 1ca4bf3 commit 05a3471

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+343
-349
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Connect is a simple, reliable, and interoperable RPC framework that combines the
1414
## Installation
1515

1616
```bash
17-
pip install connectpy
17+
pip install gconnect
1818
```
1919

2020
**⚠️ Dependency Notice**: For gRPC/gRPC-Web support, this package uses forked libraries:
@@ -70,9 +70,9 @@ protoc --plugin=$(go env GOPATH)/bin/protoc-gen-connect-python -I . --connect-py
7070
### 3. Implement your service
7171

7272
```python
73-
from connect.connect import UnaryRequest, UnaryResponse
74-
from connect.handler_context import HandlerContext
75-
from connect.middleware import ConnectMiddleware
73+
from gconnect.connect import UnaryRequest, UnaryResponse
74+
from gconnect.handler_context import HandlerContext
75+
from gconnect.middleware import ConnectMiddleware
7676
from starlette.applications import Starlette
7777
from starlette.middleware import Middleware
7878

@@ -118,8 +118,8 @@ if __name__ == "__main__":
118118
### 5. Use the client
119119

120120
```python
121-
from connect.client import UnaryRequest
122-
from connect.connection_pool import AsyncConnectionPool
121+
from gconnect.client import UnaryRequest
122+
from gconnect.connection_pool import AsyncConnectionPool
123123
from ping_pb2 import PingRequest
124124
from ping_connect_pb2 import PingServiceClient
125125

@@ -266,7 +266,7 @@ This project includes a Protocol Buffer plugin (`protoc-gen-connect-python`) wri
266266

267267
## Contributing
268268

269-
We warmly welcome and greatly value contributions to the connectpy. However, before diving in, we kindly request that you take a moment to review our Contribution Guidelines.
269+
We warmly welcome and greatly value contributions to the gconnect. However, before diving in, we kindly request that you take a moment to review our Contribution Guidelines.
270270

271271
Additionally, please carefully read the Contributor License Agreement (CLA) before submitting your contribution to Gaudiy. By submitting your contribution, you are considered to have accepted and agreed to be bound by the terms and conditions outlined in the CLA, regardless of circumstances.
272272

cmd/protoc-gen-connect-python/generator/generator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (g *Generator) generate(gen *protogen.GeneratedFile, f *protogen.File) {
177177
p.P(`import abc`)
178178
p.P(`from enum import Enum`)
179179
p.P()
180-
p.P(`from connect import (`)
180+
p.P(`from gconnect import (`)
181181
p.P(` Client,`)
182182
p.P(` ClientOptions,`)
183183
p.P(` HandlerOptions,`)
@@ -189,8 +189,8 @@ func (g *Generator) generate(gen *protogen.GeneratedFile, f *protogen.File) {
189189
p.P(` UnaryRequest,`)
190190
p.P(` UnaryResponse,`)
191191
p.P(`)`)
192-
p.P(`from connect.connection_pool import AsyncConnectionPool`)
193-
p.P(`from connect.handler import BidiStreamHandler, ClientStreamHandler, ServerStreamHandler, UnaryHandler`)
192+
p.P(`from gconnect.connection_pool import AsyncConnectionPool`)
193+
p.P(`from gconnect.handler import BidiStreamHandler, ClientStreamHandler, ServerStreamHandler, UnaryHandler`)
194194
p.P(`from google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor`)
195195
p.P()
196196

cmd/protoc-gen-connect-python/generator/package.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
// p.P(`import abc`)
88
// p.P(`from enum import Enum`)
99
// p.P()
10-
// p.P(`from connect.connect import UnaryRequest, UnaryResponse`)
11-
// p.P(`from connect.handler import UnaryHandler`)
12-
// p.P(`from connect.options import HandlerOptions`)
10+
// p.P(`from gconnect.connect import UnaryRequest, UnaryResponse`)
11+
// p.P(`from gconnect.handler import UnaryHandler`)
12+
// p.P(`from gconnect.options import HandlerOptions`)
1313
// p.P(`from google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor`)
1414

1515
// PythonIdent is a Python identifier, consisting of a name and import path.

conformance/client_runner.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
from collections.abc import AsyncGenerator
2727
from typing import Any
2828

29-
from connect.call_options import CallOptions
30-
from connect.connect import StreamRequest, UnaryRequest
31-
from connect.connection_pool import AsyncConnectionPool
32-
from connect.error import ConnectError
33-
from connect.headers import Headers
34-
from connect.options import ClientOptions
29+
from gconnect.call_options import CallOptions
30+
from gconnect.connect import StreamRequest, UnaryRequest
31+
from gconnect.connection_pool import AsyncConnectionPool
32+
from gconnect.error import ConnectError
33+
from gconnect.headers import Headers
34+
from gconnect.options import ClientOptions
3535
from google.protobuf import any_pb2
3636
from google.protobuf.internal.containers import RepeatedCompositeFieldContainer
3737

conformance/gen/connectrpc/conformance/v1/conformancev1connect/service_connect.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import abc
88
from enum import Enum
99

10-
from connect import (
10+
from gconnect import (
1111
Client,
1212
ClientOptions,
1313
HandlerOptions,
@@ -17,10 +17,10 @@
1717
StreamRequest,
1818
StreamResponse,
1919
)
20-
from connect import UnaryRequest as ConnectUnaryRequest
21-
from connect import UnaryResponse as ConnectUnaryResponse
22-
from connect.connection_pool import AsyncConnectionPool
23-
from connect.handler import BidiStreamHandler, ClientStreamHandler, ServerStreamHandler, UnaryHandler
20+
from gconnect import UnaryRequest as ConnectUnaryRequest
21+
from gconnect import UnaryResponse as ConnectUnaryResponse
22+
from gconnect.connection_pool import AsyncConnectionPool
23+
from gconnect.handler import BidiStreamHandler, ClientStreamHandler, ServerStreamHandler, UnaryHandler
2424
from google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor
2525

2626
from .. import service_pb2

conformance/pyproject.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@ description = "Add your description here"
55
readme = "README.md"
66
authors = [{ name = "tsubakiky", email = "[email protected]" }]
77
requires-python = ">=3.13"
8-
dependencies = [
9-
"anyio>=4.8.0",
10-
"connectpy",
11-
"cryptography>=44.0.2",
12-
"hypercorn",
13-
]
8+
dependencies = ["anyio>=4.8.0", "gconnect", "cryptography>=44.0.2", "hypercorn"]
149

1510
[tool.uv.sources]
16-
connectpy = { path = "../" }
11+
gconnect = { path = "../" }
1712
hypercorn = { git = "https://github.com/tsubakiky/hypercorn" }
1813

1914
[dependency-groups]

conformance/server.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
import typing
2222

2323
import google.protobuf.any_pb2 as any_pb2
24-
from connect.code import Code
25-
from connect.connect import StreamRequest, StreamResponse, UnaryRequest, UnaryResponse
26-
from connect.error import ConnectError, ErrorDetail
27-
from connect.handler_context import HandlerContext
28-
from connect.headers import Headers
29-
from connect.middleware import ConnectMiddleware
24+
from gconnect.code import Code
25+
from gconnect.connect import StreamRequest, StreamResponse, UnaryRequest, UnaryResponse
26+
from gconnect.error import ConnectError, ErrorDetail
27+
from gconnect.handler_context import HandlerContext
28+
from gconnect.headers import Headers
29+
from gconnect.middleware import ConnectMiddleware
3030
from starlette.applications import Starlette
3131
from starlette.middleware import Middleware
3232

0 commit comments

Comments
 (0)