singnet / snet-sdk-python

Make gRPC calls to SingularityNET services programmatically using Python
MIT License
1 stars 2 forks source link

Support services with JSON encoding (non-proto) #8

Open vforvalerio87 opened 5 years ago

vforvalerio87 commented 5 years ago

As per title, currently the SDK only supports services that use proto encoding; get from the daemon whether the service uses proto or json encoding and adjust the client instance accordingly.

astroseger commented 5 years ago

related to #9 . see switch_to_json_payload_encoding from utils_proto.py in snet-cli. ( I mean that this function shoudn't be re-implemented, but it should be separated in common library)