API for registering/managing URLs for a package

I would like to write a script to automatically register release URLs for PyPI packages. Is the REST API documented somewhere, or is the implementation the spec ? ;-) And related to this: Will there be an option to tell PyPI's CDN to cache the release URL's contents ? Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source
Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/

On Jul 18, 2013, at 7:10 AM, M.-A. Lemburg wrote:
I would like to write a script to automatically register release URLs for PyPI packages.
Is the REST API documented somewhere, or is the implementation the spec ? ;-)
And related to this:
Will there be an option to tell PyPI's CDN to cache the release URL's contents ?
I think you are perhaps confused, the use of external URLs on PyPI is formally deprecated. The way you inform the PyPI and the CDN network about your package is you upload it to PyPI. pip 1.4 effectively disables "unsafe" external URLs, and all external URLs will follow soon. --Noah

On Jul 18, 2013, at 8:06 AM, Noah Kantrowitz wrote:
On Jul 18, 2013, at 7:10 AM, M.-A. Lemburg wrote:
I would like to write a script to automatically register release URLs for PyPI packages.
Is the REST API documented somewhere, or is the implementation the spec ? ;-)
And related to this:
Will there be an option to tell PyPI's CDN to cache the release URL's contents ?
I think you are perhaps confused, the use of external URLs on PyPI is formally deprecated. The way you inform the PyPI and the CDN network about your package is you upload it to PyPI. pip 1.4 effectively disables "unsafe" external URLs, and all external URLs will follow soon.
Someone reminded me that I'm only partially correct, the external URL stuffs will continue to be supported, but only as a convenience during package registration/upload. From the PoV of clients (and the CDN) everything will be local. --Noah

On Jul 18, 2013, at 12:42 PM, Noah Kantrowitz <noah@coderanger.net> wrote:
On Jul 18, 2013, at 8:06 AM, Noah Kantrowitz wrote:
On Jul 18, 2013, at 7:10 AM, M.-A. Lemburg wrote:
I would like to write a script to automatically register release URLs for PyPI packages.
Is the REST API documented somewhere, or is the implementation the spec ? ;-)
And related to this:
Will there be an option to tell PyPI's CDN to cache the release URL's contents ?
I think you are perhaps confused, the use of external URLs on PyPI is formally deprecated. The way you inform the PyPI and the CDN network about your package is you upload it to PyPI. pip 1.4 effectively disables "unsafe" external URLs, and all external URLs will follow soon.
Someone reminded me that I'm only partially correct, the external URL stuffs will continue to be supported, but only as a convenience during package registration/upload. From the PoV of clients (and the CDN) everything will be local.
--Noah
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Noah, External urls are still supported (Although discouraged). Marc-Andre, There is documentation in the PEP, however I have another PEP coming up for a more streamlined upload process that also contains a much nicer method of sending external urls as well. So you might want to wait for that. ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

On 18.07.2013 21:00, Donald Stufft wrote:
Noah, External urls are still supported (Although discouraged).
Marc-Andre, There is documentation in the PEP, however I have another PEP coming up for a more streamlined upload process that also contains a much nicer method of sending external urls as well. So you might want to wait for that.
Thanks for the update, Donald. I found this section: http://www.python.org/dev/peps/pep-0438/#api-for-submitting-external-distrib... I'll play around with that API a bit and then migrate to your new API. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jul 19 2013)
Python Projects, Consulting and Support ... http://www.egenix.com/ mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::::: Try our mxODBC.Connect Python Database Interface for free ! :::::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/
participants (3)
-
Donald Stufft
-
M.-A. Lemburg
-
Noah Kantrowitz