{"id":25429989,"url":"https://github.com/davidyslu/grpc-practice","last_synced_at":"2026-04-27T11:31:40.327Z","repository":{"id":93934171,"uuid":"161914053","full_name":"davidyslu/grpc-practice","owner":"davidyslu","description":"This repository is used to practice some basic operations gRPC.","archived":false,"fork":false,"pushed_at":"2018-12-16T10:07:57.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-29T13:47:02.730Z","etag":null,"topics":["grpc","protobuf","python"],"latest_commit_sha":null,"homepage":"https://grpc.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidyslu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2018-12-15T14:43:33.000Z","updated_at":"2018-12-16T10:45:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0307e98-7e69-4e67-baeb-9887b92a951e","html_url":"https://github.com/davidyslu/grpc-practice","commit_stats":null,"previous_names":["davidyslu/grpc-practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidyslu/grpc-practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Fgrpc-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Fgrpc-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Fgrpc-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Fgrpc-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidyslu","download_url":"https://codeload.github.com/davidyslu/grpc-practice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Fgrpc-practice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["grpc","protobuf","python"],"created_at":"2025-02-17T02:33:06.154Z","updated_at":"2026-04-27T11:31:40.305Z","avatar_url":"https://github.com/davidyslu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC Practice\n\nThis repository is used to practice some basic operations in **gRPC** and the original repository is [here](https://github.com/grpc/grpc).\n\n\u003e The following opreations are used in **Ubuntu Linux 16.04 LTS**.\n\n---\n## Introduction\n\n\u003e The following descriptions are from [here](https://grpc.io/docs/guides/index.html).\n\n### What is \"gRPC\"?\n\nIn **gRPC** a client application can directly call methods on a server application on a different machine as if it was a local object, making it easier for you to create distributed applications and services. \n\nAs in many RPC systems, gRPC is based around the idea of defining a service, specifying the methods that can be called remotely with their parameters and return types. \n* The server implements this interface and runs a gRPC server to handle client calls. \n* The client has a **stub** (referred to as just a client in some languages) that provides the same methods as the server.\n\n![](https://grpc.io/img/landing-2.svg)\n\ngRPC clients and servers can run and talk to each other in a variety of environments and can be written in any of gRPC’s supported languages.\n\n### Working with Protocol Buffers\n\nBy default gRPC uses \"[Protocol Buffers](https://developers.google.com/protocol-buffers/docs/overview)\", Google’s mature open source mechanism for serializing structured data. Here’s a quick intro to how it works.\n1. **Define the structure for the data**\n    * The first step when working with protocol buffers is to **define the structure for the data** you want to serialize in a *proto file* (`.proto`). \n    * Protocol buffer data is structured as messages, where each message contains a series of name-value pairs called **fields**.\n    ```cpp\n    message Person {\n        string name = 1;\n        int32 id = 2;\n        bool has_ponycopter = 3;\n    }\n    ```\n2. **Compile the proto file**\n    * You use the protocol buffer compiler `protoc` to generate data access classes in your preferred language(s) from your *proto* definition.\n    * These provide simple accessors for each field (like `name()` and `set_name()`) as well as methods to serialize/parse the whole structure to/from raw bytes.\n        * If your chosen language is C++, running the compiler on the above example will generate a class called `Person`.\n        * You can then use this class in your application to populate, serialize, and retrieve Person protocol buffer messages.\n    * As you’ll see in more detail in our examples, you define gRPC services in ordinary *proto* files, with RPC method parameters and return types specified as protocol buffer messages:\n    ```cpp\n    // The greeter service definition.\n    service Greeter {\n        // Sends a greeting\n        rpc SayHello (HelloRequest) returns (HelloReply) {}\n    }\n\n    // The request message containing the user's name.\n    message HelloRequest {\n        string name = 1;\n    }\n\n    // The response message containing the greetings\n    message HelloReply {\n        string message = 1;\n    }\n    ```\n\n---\n## Contents\n\n* [Tutorials](src/tutorials)\n  \n---\n## Contributing\n\nTo know how to contribute this repository, please refer to this [document](CONTRIBUTING.md) first. Thanks for your cooperation.\n\n---\n## References\n\n* [gRPC Official Website](https://grpc.io/)\n* [Protocol Buffers Documentation](https://developers.google.com/protocol-buffers/docs/overview)\n* [Protocol Buffers 3 Language Guide](https://developers.google.com/protocol-buffers/docs/proto3)\n* [GitHub - grpc/grpc](https://github.com/grpc/grpc)\n* [GitHub - google/protobuf](https://github.com/google/protobuf/releases)\n\n---\n## Contributor\n\nIn order to protect both you and ourselves, you will need to sign the [Contributor License Agreement](https://identity.linuxfoundation.org/projects/cncf).\n\n* [David Lu](https://github.com/yungshenglu)\n\n---\n## License\n\n[Apache License 2.0](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidyslu%2Fgrpc-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidyslu%2Fgrpc-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidyslu%2Fgrpc-practice/lists"}