1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/examples/proxy/python/rpc_client.py
2020-12-26 15:17:20 +00:00

11 lines
182 B
Python

import requests
import json
import proxy
def main():
response = proxy.rpc_call("/greeter/say/hello", {"name": "John"})
print response
if __name__ == "__main__":
main()