lifeomic / phc-sdk-py

The phc-sdk-py is a developer kit for interfacing with the PHC API on Python 3.8 and above.
https://lifeomic.github.io/phc-sdk-py/index.html
MIT License
1 stars 2 forks source link

Add auto-generated Patient ML client #177

Closed epeters3 closed 1 year ago

epeters3 commented 1 year ago

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.