Skip to content

Grpcio support #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jalaziz
Copy link

@jalaziz jalaziz commented Jan 30, 2022

This is a rebased version of #201. I still haven't done any testing.

The intention is to continue the work started in #201, add tests, and address any remaining issues.

INCLUDE_GOOGLE option is now parsed in parse_options.
We now have a grpcio module in betterproto that defines the ServicerBase
Abstract Base Class and a register_servicers function.
Register_servicers takes multiple ServicerBase instances, and registers
them to the grpc AIO server.

The generated servicers now inherit from ServicerBase.
@cetanu
Copy link
Collaborator

cetanu commented Oct 17, 2023

Hello, thank you for this contribution

If you could address the conflicts, I will give it a review afterwards and look to merge

@cetanu cetanu self-assigned this Oct 17, 2023
@cetanu cetanu added the enhancement New feature or request label Oct 17, 2023
@hunter-young
Copy link

@jalaziz are you still working on this? If not, I'm happy to help or take it over.

@JPFrancoia
Copy link

Hi all, I'm also very interested in this PR. I am experiencing a bug with grpclib. Switching to grpcio (but dropping betterproto to do the codegen :/) solves the problem. I am trying to debug this, but also, grpclib doesn't have the open telemetry support that grpcio has. And grpclib doesn't seem to receive as much love as it should. All this makes grpclib a bit risky in a real prod setting.

Also, I really love the simplicity of betterproto and the code it generates. Getting something usable without it is a bit painful and feels brittle, and the output still isn't as nice as betterproto.

That's why I think having the choice for a backend would be a big plus. I'm happy to contribute (code and/or test) if help is required to get this PR merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants