-
Notifications
You must be signed in to change notification settings - Fork 13
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
Create instance from proto #1
Comments
Nice idea! You can implement it as you want |
maybe |
Repository owner
deleted a comment from
Arpitkandwal
Feb 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Very nice pkg, I was testing it and quickly (for my use case [1]) I needed to convert from
proto
instance topydantic
, then I was wondering what do you think about adding a helper method to the generated classes such.from_proto
? if you agree in the idea I can jump in in the implementation (or if you prefer implementing all good) .[1] just playing in a proof of concept project that from a
proto
definition I generate the following servicesrpc
(grpc),rest
(fastapi), graphql, I basically 1) compile theproto
and add the grpc server 2) use your lib to generate pydantic that empowers fastapi 3) from the generatedpydantic
I usepydantic2graphene
to expose for graphqlThe text was updated successfully, but these errors were encountered: