Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

upicasa

This is a simple Python script that allows one to upload photos into Google's PicasaWeb from the command line. It can also list the albums that already exist on the user's PicasaWeb gallery and can create a new album to upload the photos to.

upicasa is still very rough on the edges, the user interface is not bulletproof, no exceptions are handled. It is, however, useful for the author, and can be useful for someone else.

Installing

upicasa is a Python package packaged with setuptools, therefore you can install it running easy_install upicasa or by directly invoking the setup.py script:

python setup.py install

upicasa uses Google's gdata Python library to access the PicasaWeb services. It is the only real depencency beside Python.

Using

When first invoked, upicasa will prompt for the Google account name and password. It will ask whether to save these credentials. The saved username and password are normally stored in the file ~/.config/upicasa/auth. If this file exists, upicasa will not query the credentials interactively.

You can list the albums like this:

upicasa -l

You can create a new album and upload photos to it like this:

upicasa -n "Album name" *.jpg

You can limit access of a new album to private by adding -p option:

upicasa -p -n "Album name" *.jpg

You can add photos to an existing album like this:

upicasa -a "Album name" *.jpg

The album is matched by a substring of a name. If the string provided will match more that one album, you will get a list of matching albums and no photos will be uploaded.

Changelog

Changes in version 0.2:

  • Fixed a silly bug in password saving.

Changes in version 0.1:

  • Initial release.

More info

Author: Albertas Agejevas <alga@pov.lt>

URL: http://bitbucket.org/alga/upicasa/

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.