google / google/protobuf-gradle-plugin

How to generate grpc_python_out?

Open
#250 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
1.8k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

I used the following code to generate the python classes
```
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.4.0'

}
plugins {

python {
}

}
generateProtoTasks {
// all() returns the collection of all protoc tasks
all().each { task ->
task.builtins {
remove java
python {}
}
}
}
}
```

I have problems though..

It generates the in the build/generated/source/proto/main/python but it does not generate my grpc_python_out? Is there a way to configure this? I am looking for something like _pb2_grpc.py but I cant seem to find it.

Any hints?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the protobuf configuration shown in the issue and inspect build/generated/source/proto/main/python to compare the generated Python files with the requested _pb2_grpc.py output. Determine whether the configuration needs a gRPC Python generator, and consider the work complete when that file is generated for the proto input.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, python
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.