{"id":18137729,"url":"https://github.com/chun-cheng/python-grpc-demo","last_synced_at":"2026-05-04T05:38:41.138Z","repository":{"id":260444765,"uuid":"881236140","full_name":"Chun-Cheng/python-grpc-demo","owner":"Chun-Cheng","description":"A simple chat/messaging app demo using gRPC.","archived":false,"fork":false,"pushed_at":"2025-01-29T08:14:22.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T23:27:30.081Z","etag":null,"topics":["chat-application","curses","grpc","grpc-python","messaging"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chun-Cheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2024-10-31T06:57:49.000Z","updated_at":"2025-01-29T08:14:26.000Z","dependencies_parsed_at":"2024-10-31T11:29:04.638Z","dependency_job_id":"aa5f67b1-1d83-416c-bd53-3fc64a312378","html_url":"https://github.com/Chun-Cheng/python-grpc-demo","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"1161161d3a0ca57739e139bb9bb15737eeb804a4"},"previous_names":["chun-cheng/python-grpc-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chun-Cheng%2Fpython-grpc-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chun-Cheng%2Fpython-grpc-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chun-Cheng%2Fpython-grpc-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chun-Cheng%2Fpython-grpc-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chun-Cheng","download_url":"https://codeload.github.com/Chun-Cheng/python-grpc-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247518494,"owners_count":20951819,"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":["chat-application","curses","grpc","grpc-python","messaging"],"created_at":"2024-11-01T15:06:17.517Z","updated_at":"2026-05-04T05:38:41.083Z","avatar_url":"https://github.com/Chun-Cheng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-grpc-demo\n\nA simple chat/messaging app demo using gRPC.\n\n![demo screenshot](docs/images/image.png)\n\n## Prerequisites\n\n- Python\u003e=3.12 installed\n- Poetry installed\n- Unix environment (need `curses` in Python)\n\n## How to run\n\n1. Install dependencies\n    ```sh\n    poetry install --no-root\n    ```\n2. Activate Poetry environment\n    ```sh\n    eval $(poetry env activate)\n    ```\n3. Add `src` to Python path (Change the path to yours)\n    ```sh\n    export PYTHONPATH=$PYTHONPATH:path/to/python-grpc-demo/src\n    ```\n4. Start the server\n    ```sh\n    python src/server/server.py\n    ```\n5. Open another shell and repeat step 1~3, then start the client\n    ```sh\n    python src/client/client.py\n    ```\n\n## Update the protos\n\nTo generate a new version of protobuf code, setup the environment first:\n\n```sh\npoetry install --no-root --extras dev\neval $(poetry env activate)\n```\n\nThen, run the following command:\n\n```sh\npython scripts/generate.py\n```\n\n## File structure\n\n```\npython-grpc-demo\n├── protos/             # Protocol Buffers definition contents\n├── scripts/            # useful commands\n│   └── generate.py     # generate Python codes from protos/\n├── src/                # source code\n│   ├── proto_gen/      # generated codes from protos/\n│   ├── client/\n│   └── server/\n├── pyproject.toml      # project and dependencies info and settings\n└── ......\n```\n\nThe app use SQLite to store data. If you want to clear the data, delete `server.db` and `client.db`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchun-cheng%2Fpython-grpc-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchun-cheng%2Fpython-grpc-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchun-cheng%2Fpython-grpc-demo/lists"}