Re: API for uploading packages to PyPI
anatoly techtonik <[email protected]> Fri, 22 Mar 2013 11:58:35 +0300
| Newsgroups | gmane.comp.python.catalog |
|---|---|
| Message-ID | <CAPkN8xKb9Ezf_Y6y9RNyJoNipBNU-2qWtHsFsFo1io6zR1js1A@mail.gmail.com> |
--===============1144831201== Content-Type: multipart/alternative; boundary=047d7b6d7b703d82db04d87faa37 --047d7b6d7b703d82db04d87faa37 Content-Type: text/plain; charset=UTF-8 On Fri, Mar 22, 2013 at 11:16 AM, Ronald Oussoren <[email protected]>wrote: > > On 22 Mar, 2013, at 8:37, anatoly techtonik <[email protected]> wrote: > > Hi, > > 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. > > 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. https://bitbucket.org/techtonik/astdump The next logical > step in this chain is to teach it to upload stuff to PyPI. > > 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? > > > Several APIs are documented on pages linked directly from the PyPI > homepage (the Infrastructure box) > Thanks for the pointer. Some links are broken. I added redirects for wiki pages, but it will be better to fix links too. https://bitbucket.org/loewis/pypi/pull-request/4 Among those it seems that only OAuth API can be used to upload stuff. -- anatoly t. --047d7b6d7b703d82db04d87faa37 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On F= ri, Mar 22, 2013 at 11:16 AM, Ronald Oussoren <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]= </a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p= adding-left:1ex"><div style=3D"word-wrap:break-word"><br><div><div><div cla= ss=3D"h5"> <div>On 22 Mar, 2013, at 8:37, anatoly techtonik <<a href=3D"mailto:tech= [email protected]" target=3D"_blank">[email protected]</a>> wrote:</div>= <br><blockquote type=3D"cite"><div dir=3D"ltr">Hi,<div><br></div><div>I und= erstand 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 th= e package from the source file itself. It is even able to generate setup.py= from this data.=C2=A0<a href=3D"https://bitbucket.org/techtonik/astdump" t= arget=3D"_blank">https://bitbucket.org/techtonik/astdump</a>=C2=A0The 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 comp= lication. What I need, ideally is just upload single .py file, or a JSON an= d a .tar.gz FWIW. Is there a straightforward API for things like that?=C2= =A0</div> </div></blockquote><div><br></div></div></div>Several APIs are documented o= n pages linked directly from the PyPI homepage (the Infrastructure box)</di= v></div></blockquote><div class=3D"gmail_quote" style><br></div><div class= =3D"gmail_quote" style> Thanks for the pointer.</div><div class=3D"gmail_quote" style><br></div><di= v class=3D"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=3D"https:/= /bitbucket.org/loewis/pypi/pull-request/4">https://bitbucket.org/loewis/pyp= i/pull-request/4</a><br> <div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">Among those= it seems that only OAuth API can be used to upload stuff.<br clear=3D"all"= ><div>--=C2=A0<br>anatoly t.</div>=C2=A0<br></div></div></div></div> --047d7b6d7b703d82db04d87faa37-- --===============1144831201== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Catalog-SIG mailing list [email protected] http://mail.python.org/mailman/listinfo/catalog-sig --===============1144831201==--