Skip to content

Instantly share code, notes, and snippets.

@zclongpop123
Last active January 17, 2020 01:53
Show Gist options
  • Save zclongpop123/39697465c1778722c7c54e0f0c426d22 to your computer and use it in GitHub Desktop.
Save zclongpop123/39697465c1778722c7c54e0f0c426d22 to your computer and use it in GitHub Desktop.
google grpc bulild commands
#========================================
# author: Changlong.Zang
# mail: zclongpop123@163.com
# time: Thu Dec 12 16:17:24 2019
#========================================
from grpc.tools import protoc
#--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
def main():
'''
'''
protoc.main(
(
'',
'-I.',
'--python_out=.',
'--grpc_python_out=.',
'./rpc_schema.proto',
)
)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment