Skip to content

Commit 0228c84

Browse files
committed
add poetry + remove asyncio in server example
1 parent 26df5e2 commit 0228c84

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

examples/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from SimpleRPC import GrpcServer
22
from pydantic import BaseModel
3-
import asyncio
43

54
class RequestModel(BaseModel):
65
num1: int

project.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[tool.poetry]
2+
name = "simple-rpc"
3+
version = "0.0.1"
4+
description = "Simple framework to create your own gRPC server with grpcio"
5+
authors = ["NF-coder"]
6+
license = "MIT License"
7+
readme = "README.md"
8+
packages = [
9+
{ include = "SimpleRPC" },
10+
]
11+
12+
[tool.poetry.dependencies]
13+
python = "^3.12"
14+
grpcio = "~1.71.0"
15+
pydantic = "^2.8.2"
16+
17+
[build-system]
18+
requires = ["poetry-core"]
19+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)