Skip to content

Commit af75035

Browse files
committed
remove source-of-truth service due many bugs that it causes + remove v1 with replacing manually written .proto files support to main library
1 parent 62527d6 commit af75035

28 files changed

+32
-580
lines changed

examples/v2/client_v2.py renamed to examples/client_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from pydantic import BaseModel
2-
from simple_rpc.v2.client import GrpcClientV2
2+
from simple_rpc import GrpcClient
33
import asyncio
44

5-
client = GrpcClientV2(
5+
client = GrpcClient(
6+
proto_file_relpath="simplerpc_tmp/Server.proto",
67
port=50051
78
)
89
command = client.configure_command(
910
functionName="example_method",
1011
className="Server"
1112
)
1213

13-
1414
async def run():
1515
print(
1616
await command()

examples/v2/server_v2.py renamed to examples/server_v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from simple_rpc.v2.server import GrpcServerV2
1+
from simple_rpc import GrpcServer
22
from pydantic import BaseModel
33

44
class RequestModel(BaseModel):
@@ -8,7 +8,7 @@ class ResponceModel(BaseModel):
88
num2: int
99
num4: int
1010

11-
app = GrpcServerV2()
11+
app = GrpcServer()
1212

1313
class Server:
1414
@app.grpc_method()

examples/v1/client.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/v1/proto.proto

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/v1/server.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

examples/v2/simplerpc_client_tmp/proto.proto

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/v2/simplerpc_server_tmp/Server.proto

Lines changed: 0 additions & 26 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "simple-rpc"
7-
version = "0.1.1"
7+
version = "0.2.1"
88
description = "Simple framework to create your own gRPC server with grpcio"
99
authors = [
1010
{name = "NF-coder", email = "reshes@rambler.ru"}

simple_rpc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from .v1.grpc_server_reduced import GrpcServer as GrpcServer
2-
from .v1.grpc_client_reduced import GrpcClient as GrpcClient
1+
from .server.grpc_server_auto import GrpcServer as GrpcServer
2+
from .client.grpc_client_auto import GrpcClient as GrpcClient
File renamed without changes.

0 commit comments

Comments
 (0)