We have a customer use case for interacting with Patient ML Service from within our Notebooks Service, and the easiest way to do that is through this SDK. I didn't want to have to write the full service client manually, so I wrote a small script for fetching a one-schema schema and generating source code for a Python API client from it. The generated client matches the format of the other phc.services.* clients in this SDK. The client code can be updated at any time by running make gen. Any other services that publish a one-schema schema for their public API can use this script to auto-generate a client class as well.
There are also a few formatting updates in this PR, which occurred after running make format.
We have a customer use case for interacting with Patient ML Service from within our Notebooks Service, and the easiest way to do that is through this SDK. I didn't want to have to write the full service client manually, so I wrote a small script for fetching a
one-schema
schema and generating source code for a Python API client from it. The generated client matches the format of the otherphc.services.*
clients in this SDK. The client code can be updated at any time by runningmake gen
. Any other services that publish aone-schema
schema for their public API can use this script to auto-generate a client class as well.There are also a few formatting updates in this PR, which occurred after running
make format
.