<div dir="ltr">On Mon, Nov 11, 2013 at 2:07 PM, Clayton Coleman <span dir="ltr"><<a href="mailto:ccoleman@redhat.com" target="_blank">ccoleman@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div><div><div class="h5"><div><span style="color:rgb(34,34,34)">I know in the session a "generic" API client lib was mentioned, is that in a branch somewhere to highlight the things that were common across a lot of API libs? Or knowing your opinion of the "best" client to copy. :)</span></div>
</div></div></div></div></blockquote></div><br>There is no best client to copy right now. Once Jamie's auth bits are complete we will be in a position to describe a good reference pattern for building library APIs. Until then, about all I can say is to plan on accepting an auth object and a requests.Session-like object when creating your client, plus the bits specific to what you are implementing. Please don't just copy what novaclient.client.HTTPClient() does, or any of it's derivatives. Or rather, if you must, plan for those interfaces to change (simplify) soon after.<br>
<br>dt<br clear="all"><div><br></div>-- <br><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com">dtroyer@gmail.com</a><br>
</div></div>