Are you aware of https://github.com/cthoyt/ols-client/ (which I wrote) and/or also https://github.com/Ensembl/ols-client?