Skip to content

mgwilt/grpc-client-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Client Generator

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.

Client Output Languages

Language Support
Python
Swift
JavaScript
TypeScript
Java
Kotlin
Go
.NET

Working on adding all of the above.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-repo/grpc-client-generator.git
    cd grpc-client-generator
  2. 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

Usage

Place your .proto files in the src/ directory. Running the build script will generate the client stubs in the dist/ directory:

  • dist/python: Python client
  • dist/swift: Swift client
  • dist/javascript: JavaScript client
  • dist/typescript: TypeScript client
  • dist/kotlin: Kotlin client

Each language-specific directory will contain the generated gRPC client code ready for use in your projects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published