The Gallery - gallery_remote python interface
Here's a python class that allows you to talk to The Gallery
Because the standard urllib2 does seem to handle multipart forms, I had to find something on the web. I found something here
This class should handle most everything folks need to implement their own scripts. The one things I know is lacking is support for "extrafields" when retrieving image info.
This class is lightly tested. You've been warned. (tested under Python 2.3.3/Gentoo)
09-June-2004 - Yuri Takhteyev sent me a couple bug fixes. One was a problem where if you do more than one transaction in a session, it would forget your cookie after the first one. The other was a cut/paste error (putting title instead of description). So this means a 0.2 version. Thanks Yuri!
Released under the GPL license.
Download a copy of the multiform support: urllib2_file.py (required)
Download the Gallery interface: gallery-0.2.py
Older versions:
gallery.py
Because the standard urllib2 does seem to handle multipart forms, I had to find something on the web. I found something here
This class should handle most everything folks need to implement their own scripts. The one things I know is lacking is support for "extrafields" when retrieving image info.
This class is lightly tested. You've been warned. (tested under Python 2.3.3/Gentoo)
09-June-2004 - Yuri Takhteyev sent me a couple bug fixes. One was a problem where if you do more than one transaction in a session, it would forget your cookie after the first one. The other was a cut/paste error (putting title instead of description). So this means a 0.2 version. Thanks Yuri!
Released under the GPL license.
Download a copy of the multiform support: urllib2_file.py (required)
Download the Gallery interface: gallery-0.2.py
Older versions:
gallery.py