<div>Hi all, </div><div><br></div><div><div>Distutils2 will bring two APIs to request PyPI, via the &quot;simple&quot; API and via the XML-RPC one.</div><div><br></div><div>The fact is that the Simple API (it&#39;s just HTML pages, in a REST style as pointed out by Mark) </div>

<div>does not provides all information we need, especially about distribution dependencies or if we want to query some others things contained in the metadatas.</div><div><br></div><div>I&#39;m working on two simple APIs for that, and I&#39;ll probably make a wrapper around both, wich could choose the right one to use, depending on the needs (eg. don&#39;t always rely on RPC or on &quot;REST&quot;).</div>

<div><br></div><div>As we are talking about refactoring PyPI, it will probably be nice to have a real REST API, that talks JSON or XML, replacing the HTML pages actually served on <a href="http://pypi.python.org/simple/">http://pypi.python.org/simple/</a> :)</div>

<div><br></div><div>Cheers, </div><div>Alexis</div><div><br><div class="gmail_quote">On Mon, Jun 14, 2010 at 1:50 PM, Mark Ramm <span dir="ltr">&lt;<a href="mailto:mark@geek.net">mark@geek.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">&gt; If, in the future, package tools start to rely on RPC for<br>
&gt; fetching data, the situation will shift towards needing full<br>
&gt; functional mirrors again.<br>
<br>
</div>Ideally we move some of this to be accessible via a more REST style<br>
interface where http GET requests (which would be by far the most<br>
common case) are still cacheable via all the standard mechanisms.<br>
<br>
I&#39;m not a REST evangelist in most cases, but when scale and<br>
availability really do matter, REST buys you quite a bit by allowing<br>
you to scale and cache in all the ways that the web does.<br>
<font color="#888888"><br>
--Mark Ramm<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Catalog-SIG mailing list<br>
<a href="mailto:Catalog-SIG@python.org">Catalog-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/catalog-sig" target="_blank">http://mail.python.org/mailman/listinfo/catalog-sig</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alexis<br>
</div></div>