{"id":15707984,"url":"https://github.com/h3poteto/grpc_example","last_synced_at":"2025-07-18T20:33:35.062Z","repository":{"id":147905393,"uuid":"103350187","full_name":"h3poteto/grpc_example","owner":"h3poteto","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-16T04:13:18.000Z","size":31,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T21:00:14.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h3poteto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-13T03:44:31.000Z","updated_at":"2023-01-19T23:28:10.000Z","dependencies_parsed_at":"2023-05-22T00:30:33.438Z","dependency_job_id":null,"html_url":"https://github.com/h3poteto/grpc_example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h3poteto/grpc_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fgrpc_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fgrpc_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fgrpc_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fgrpc_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h3poteto","download_url":"https://codeload.github.com/h3poteto/grpc_example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fgrpc_example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265828833,"owners_count":23835081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T20:43:10.215Z","updated_at":"2025-07-18T20:33:35.020Z","avatar_url":"https://github.com/h3poteto.png","language":"Python","readme":"# gRPC example\n\n## configure\nSet ip address and port in `.envrc`, for example:\n\n```bash\nexport SERVER_IP=127.0.0.1\nexport SERVER_PORT=9090\n```\n\nAnd Install `protobuf`:\n\n```bash\n$ brew install protobuf\n```\n\n## server\n### python\nInstall `grpcio` and `grpcio-tools`:\n\n```bash\n$ pip install grpcio grpcio-tools\n```\n\nGenerate a server interface, and start gRPC server.\n\n```bash\n$ python server_codegen.py\n$ cd server/python\n$ python server.py\nStarting server...\nListen :50051\n```\n\n\n\n\n### go\n\nGenerate a server interface, and start gRPC server.\n\n```\n$ protoc  \\\n        --go_out=plugins=grpc:./server/go \\\n        proto/*.proto\n$ go run server/go/server.go\n```\n\n### scala\n\nGenerate a server interface, and start gRPC server.\n\n```\n$ cd server/scala\n$ sbt \"compile\"\n$ sbt \"run\"\n```\n\n## client\n### ruby\n\nGenerate a ruby interface.\n\n```\n$ gem install grpc\n$ gem install grpc-tools\n$ grpc_tools_ruby_protoc -I ./proto --ruby_out=client/ruby/lib --grpc_out=client/ruby/lib ./proto/customer_service.proto\n```\n\n\n### python\n\nGenerate a python interface.\n\n```bash\n$ client_codegen.py\n```\n\nAnd request to server.\n\n```bash\n$ python add.py\nAdded\n\n$ python list.py\nName: akira, Age: 12\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3poteto%2Fgrpc_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh3poteto%2Fgrpc_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3poteto%2Fgrpc_example/lists"}