[Catalog-sig] Can PyPI have a new field that stores the code repository URL?

"Martin v. Löwis" martin at v.loewis.de
Fri Apr 8 22:07:03 CEST 2011


Am 08.04.2011 21:30, schrieb Jacob Kaplan-Moss:
> On Fri, Apr 8, 2011 at 12:09 PM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
>> I added in PEP 345 a field where you can store any number of urls for
>> the project
>>
>> Check it out, PyPI also support displaying it under a "Project Links" portlet
>>
>> example: http://pypi.python.org/pypi/gfbi_core/0.2
> 
> It looks like these don't show up on the /simple pages, making
> scraping of those links a bit complicated and brittle. Can that be
> added? Or is there another way to fetch these links more
> programmatically?

It's available through XML-RPC:

py> p=xmlrpclib.ServerProxy("http://pypi.python.org/pypi")
py> p.release_data('Distutils2','1.0a1')['project_url']
['Repository,http://hg.python.org/distutils2',
'Mailing-list,http://mail.python.org/mailman/listinfo/distutils-sig/',
'Documentation,http://packages.python.org/Distutils2', 'Bug
tracker,http://bugs.python.org']

I wouldn't put it on the simple page, since it's not related to
installing the software.

HTH,
Martin


More information about the Catalog-SIG mailing list