Skip to main content

gRPC for Chatie

Project description

GRPC NPM PyPI Go

chatie grpc

NPM Version PyPI Version Python 3.7 Go Version

gRPC for Chatie

Usage

Node.js

@chatie/grpc@NPM

Python

chatie-grpc@PyPI

Go

github.com/wechaty/go-grpc

Build

./scripts/install-protoc.sh
npm install

https://github.com/google/protobuf/releases/latest

Generate Stubs

npm run generate

1. JS for Protocol Buffer

protoc \
  --js_out="import_style=commonjs,binary:${OUT_DIR}"

https://github.com/google/protobuf/releases/latest

2. JS for gRPC Stubs

protoc \
  --plugin="protoc-gen-grpc=`which grpc_tools_node_protoc_plugin`" \
  --grpc_out="${OUT_DIR}"

https://www.npmjs.com/package/grpc-tools

3. TypeScript Typing Definations for Protocol Buffer & gRPC Stubs

protoc \
  --plugin="protoc-gen-grpc=node_modules/grpc_tools_node_protoc_ts/bin/protoc-gen-ts" \
  --grpc_out="${OUT_DIR}"

https://github.com/agreatfool/grpc_tools_node_protoc_ts

4. JS & TS for gRPC Web

protoc \
  --plugin="protoc-gen-ts=node_modules/ts-protoc-gen/bin/protoc-gen-ts" \
  --ts_out="service=true:${OUT_DIR}"

https://github.com/improbable-eng/ts-protoc-gen

Development

gRPC CLI Debug

grpcc --proto ./service/myservice.proto --address 127.0.0.1:3466

Documentatoin

Resources

Protocol Buffer

gRPC Web

TypeScript Generator

Zoo Keeper

STUN

TCP hole punching

Reverse Engineering

Python Stub

History

v0.11 (Apr 2020)

  • Add Go Support (#50 by @dchaofei)
  • Publish Go Module at <github.com/wechaty/go-grpc>

v0.6 (Feb 2020)

  • Align gRPC Services with Wechaty Puppet Abstraction
  • Add Unit Tests

v0.2 (Jul 2018)

  • Automatic Generating gRPC Stubs
  • Publish to NPM

v0.0.1 (May 2018)

Initial commiit

Author

Huan LI (李卓桓) zixia@zixia.net

Profile of Huan LI (李卓桓) on StackOverflow

Copyright & License

  • Code & Docs © 2018-now Huan LI <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatie-grpc-0.11.dev16.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatie_grpc-0.11.dev16-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file chatie-grpc-0.11.dev16.tar.gz.

File metadata

  • Download URL: chatie-grpc-0.11.dev16.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for chatie-grpc-0.11.dev16.tar.gz
Algorithm Hash digest
SHA256 a92c4a8ba8d76dcc326faf9dc592aae86f1e6776fc09d8fe370041069d0e474f
MD5 8bc3f76f525d7d6b239eb33086454355
BLAKE2b-256 d3b32fca5d66b0ca3a5a1f35f72d36531550d6fd7a7493c3690e279391f4b14b

See more details on using hashes here.

File details

Details for the file chatie_grpc-0.11.dev16-py3-none-any.whl.

File metadata

  • Download URL: chatie_grpc-0.11.dev16-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for chatie_grpc-0.11.dev16-py3-none-any.whl
Algorithm Hash digest
SHA256 9eb438a4b71e8ebe49adb9dcaef748cc327a5da459b70d217eab31706deea7cc
MD5 bf1468f0a4e49e83a7a5d56c998d2741
BLAKE2b-256 0bc745ce9d2ec1af33bb3347d20938b2977350222faef1bb97706e4a294a98ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page