<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 22, 2013 at 11:16 AM, Ronald Oussoren <span dir="ltr"><<a href="mailto:ronaldoussoren@mac.com" target="_blank">ronaldoussoren@mac.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div class="h5">

<div>On 22 Mar, 2013, at 8:37, anatoly techtonik <<a href="mailto:techtonik@gmail.com" target="_blank">techtonik@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>I understand that this will make PyPI a potential target for automated spam bots, but still it will be awesome to have an API to upload packages to PyPI.</div>

<div><br></div>

<div>For example, I have a code that extract all necessary meta data for the package from the source file itself. It is even able to generate setup.py from this data. <a href="https://bitbucket.org/techtonik/astdump" target="_blank">https://bitbucket.org/techtonik/astdump</a> The next logical step in this chain is to teach it to upload stuff to PyPI.</div>



<div><br></div><div>Now I thought that this setup.py is an unnecessary complication. What I need, ideally is just upload single .py file, or a JSON and a .tar.gz FWIW. Is there a straightforward API for things like that? </div>

</div></blockquote><div><br></div></div></div>Several APIs are documented on pages linked directly from the PyPI homepage (the Infrastructure box)</div></div></blockquote><div class="gmail_quote" style><br></div><div class="gmail_quote" style>

Thanks for the pointer.</div><div class="gmail_quote" style><br></div><div class="gmail_quote" style>Some links are broken. I added redirects for wiki pages, but it will be better to fix links too.</div><a href="https://bitbucket.org/loewis/pypi/pull-request/4">https://bitbucket.org/loewis/pypi/pull-request/4</a><br>

<div class="gmail_extra"><br></div><div class="gmail_extra">Among those it seems that only OAuth API can be used to upload stuff.<br clear="all"><div>-- <br>anatoly t.</div> <br></div></div></div></div>