Re: API for uploading packages to PyPI
anatoly techtonik <[email protected]> Fri, 22 Mar 2013 13:31:15 +0300
| Newsgroups | gmane.comp.python.catalog |
|---|---|
| Message-ID | <CAPkN8xKpwqmAcY+2fw2sgoCmaLqG9kGNQ=gKziKC9dzQYGXkrA@mail.gmail.com> |
--===============1692415246== Content-Type: multipart/alternative; boundary=e89a8ff1c852a0a8dd04d880f5c5 --e89a8ff1c852a0a8dd04d880f5c5 Content-Type: text/plain; charset=UTF-8 On Fri, Mar 22, 2013 at 1:01 PM, M.-A. Lemburg <[email protected]> wrote: > On 22.03.2013 09:58, anatoly techtonik wrote: > > 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? > > Yes: The distutils upload command implements the API. It essentially > uses the same HTML form interface as the PyPI UI. And where is this API defined? --e89a8ff1c852a0a8dd04d880f5c5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">On Fri, Mar 22, 2013 at 1:01 PM, M.-A. Lemburg <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">mal@egenix= .com</a>></span> wrote:<br><div class=3D"gmail_extra"><div class=3D"gmai= l_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-styl= e:solid;padding-left:1ex"> <div class=3D"im">On 22.03.2013 09:58, anatoly techtonik wrote:<br> > On Fri, Mar 22, 2013 at 11:16 AM, Ronald Oussoren <<a href=3D"mailt= o:[email protected]">[email protected]</a>>wrote:<br> ><br> >><br> >> On 22 Mar, 2013, at 8:37, anatoly techtonik <<a href=3D"mailto:= [email protected]">[email protected]</a>> wrote:<br> >><br> >> Hi,<br> >><br> >> I understand that this will make PyPI a potential target for autom= ated<br> >> spam bots, but still it will be awesome to have an API to upload p= ackages<br> >> to PyPI.<br> >><br> >> For example, I have a code that extract all necessary meta data fo= r the<br> >> package from the source file itself. It is even able to generate s= etup.py<br> >> from this data. <a href=3D"https://bitbucket.org/techtonik/astdump= " target=3D"_blank">https://bitbucket.org/techtonik/astdump</a> The next lo= gical<br> >> step in this chain is to teach it to upload stuff to PyPI.<br> >><br> >> Now I thought that this setup.py is an unnecessary complication. W= hat I<br> >> need, ideally is just upload single .py file, or a JSON and a .tar= .gz FWIW.<br> >> Is there a straightforward API for things like that?<br> <br> </div>Yes: The distutils upload command implements the API. It essentially<= br> uses the same HTML form interface as the PyPI UI.</blockquote><div><br></di= v><div style>And where is this API defined?</div><div><br></div></div></div= ></div> --e89a8ff1c852a0a8dd04d880f5c5-- --===============1692415246== 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 --===============1692415246==--