470,638 Members | 1,579 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,638 developers. It's quick & easy.

Can one query full name (or version) of selected packages at pypi?

Hi everyone

I suspect this has come up before, but google and group searches for
"python package index query" or "pypi query" and the like haven't
turned anything up.

I want to monitor the versions of the list of packages I like having
around, and I expect that the python package index might be a good
place to do this. Typically, such packages would include, say, Pyrex
and PyParsing, for example.

So: I would like to query the package index with a short name (perhaps
wildcarded), and retrieve either the full name (from which to strip the
ver.) or version number, and compare it with what I have on disk. At
this stage, just reporting the differences is fine.

I could do these steps myself with normal http access and
screen-scraping, but is there already such a system/script somewhere?
Alternatively, how do you all keep versions of python addons
up-to-date? Manually?

regards
Caleb

Apr 20 '06 #1
6 1187
On 20/04/2006 7:26 PM, Caleb Hattingh wrote:
Hi everyone

I suspect this has come up before, but google and group searches for
"python package index query" or "pypi query" and the like haven't
turned anything up.

I want to monitor the versions of the list of packages I like having
around, and I expect that the python package index might be a good
place to do this. Typically, such packages would include, say, Pyrex
and PyParsing, for example.

So: I would like to query the package index with a short name (perhaps
wildcarded), and retrieve either the full name (from which to strip the
ver.) or version number, and compare it with what I have on disk. At
this stage, just reporting the differences is fine.

I could do these steps myself with normal http access and
screen-scraping, but is there already such a system/script somewhere?
Alternatively, how do you all keep versions of python addons
up-to-date? Manually?


Suggestion: subscribe to python-announce-list, use a filter ...
Apr 20 '06 #2
Caleb Hattingh wrote:
So: I would like to query the package index with a short name (perhaps
wildcarded), and retrieve either the full name (from which to strip the
ver.) or version number, and compare it with what I have on disk. At
this stage, just reporting the differences is fine.

I could do these steps myself with normal http access and
screen-scraping, but is there already such a system/script somewhere?
You can query the Cheeseshop through XML-RPC, see

http://www.inkdroid.org/journal/2005...i-over-xmlrpc/
Alternatively, how do you all keep versions of python addons
up-to-date? Manually?


I use Debian; this automatically gives me updates of all of
my packages.

Regards,
Martin
Apr 23 '06 #3
Hi Martin

Pretty much exactly what I wanted :)

How up-to-date does Debian keep its package list for python addons, or
are you running Unstable? My big problem, being in South Africa, is
that I have to get any distros on cover CDs or order from
distro-resellers, and they never have Testing or Unstable. Broadband
hasn't exactly hit the local market, although things might be looking
up in a few years or so.

keep well
Caleb

Apr 25 '06 #4
Caleb Hattingh wrote:
How up-to-date does Debian keep its package list for python addons,
or are you running Unstable?
I'm running unstable indeed.
My big problem, being in South Africa, is that I have to get any
distros on cover CDs or order from distro-resellers, and they never
have Testing or Unstable. Broadband hasn't exactly hit the local
market, although things might be looking up in a few years or so.


That's indeed a problem, then. In this part of the world, an "always
online" attitude is fairly common-place, ignoring that this does
not apply to the whole world (yet).

Regards,
Martin
Apr 26 '06 #5
[Caleb Hattingh]
My big problem, being in South Africa, is
that I have to get any distros on cover CDs or order from
distro-resellers, and they never have Testing or Unstable. Broadband
hasn't exactly hit the local market, although things might be looking
up in a few years or so.


I have no idea how useful the following will be, but I've
bought CDs several times from linuxemporium.co.uk
and they've always been very obliging when I've contacted
them directly for updates etc. Obviously I can't speak for
them, but I don't imagine it's any harder for them to burn
Debian Unstable/Testing than burning any other download.

They're UK-based, but maybe a distributor in your part
of the world might be equally obliging.

TJG

Apr 27 '06 #6
On Thu, Apr 20, 2006 at 02:26:02AM -0700, Caleb Hattingh wrote:
I could do these steps myself with normal http access and
screen-scraping, but is there already such a system/script somewhere?
Alternatively, how do you all keep versions of python addons
up-to-date? Manually?

I use easy_install. Unfortunately not all packages work. Most notably the
following failed last time I tried:
twisted
pygtk
PIL
win32all
ctypes

Mostly this is because they do something a little bit non standard with
distutils. Newer versions of easy_install may have sorted these problems, I
have not tried in the last month or two.

http://peak.telecommunity.com/DevCenter/EasyInstall

I hope that helps you out,
Chris
Apr 28 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RCIC | last post: by
6 posts views Thread by Jo K. | last post: by
2 posts views Thread by Jesper | last post: by
4 posts views Thread by Brian Henry | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.