This tool simply takes proto files in ./src and generates client stubs for them. Hunting down and installing all of these dependencies got old fast.
Language | Support |
---|---|
Python | ✅ |
Swift | ✅ |
JavaScript | ✅ |
TypeScript | ✅ |
Java | ❌ |
Kotlin | ✅ |
Go | ❌ |
.NET | ❌ |
Working on adding all of the above.
-
Clone the repository:
git clone https://github.com/your-repo/grpc-client-generator.git cd grpc-client-generator
-
Build and run the Docker container to generate client libraries:
./scripts/build.sh [wire-format-mode]
./scripts/build.ps1 -WireMode [wire-format-mode]
Wire format modes:
grpcwebtext
(default)grpcweb
For more information on wire format modes, see grpc-web
Place your .proto
files in the src/
directory. Running the build script will generate the client stubs in the dist/
directory:
dist/python
: Python clientdist/swift
: Swift clientdist/javascript
: JavaScript clientdist/typescript
: TypeScript clientdist/kotlin
: Kotlin client
Each language-specific directory will contain the generated gRPC client code ready for use in your projects.