Module Expr Str ImportFrom alias Assign NameStore Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str AugAssignAdd AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Call NameLoad ListComp SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str ClassDef bases NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad If BoolOpOr SubscriptLoad NameLoad Index Num UnaryOpNot BoolOpOr SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If BoolOpOr NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd Str NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad NameLoad orelse Assign NameStore ListLoad AugAssignAdd NameStore Str If NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str Call NameLoad BinOpMult NameLoad Num orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot NameLoad body Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Return NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list If UnaryOpNot NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad While Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMod Str NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Assign NameStore Num While Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMod Str NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad body Expr Str Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Str Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias alias ImportFrom alias If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body If CompareIsNot NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad If BoolOpAnd AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr BinOpSub NameLoad NameLoad If BoolOpOr NameLoad UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr NameLoad orelse If NameLoad body AugAssignAdd AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Str Call AttributeLoad Str attr NameLoad If CompareIsNot NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword Str orelse Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad decorator_list Assign NameStore NameLoad
N/A N/A Service details and instances for the Picasa service. __future__ with_statement N/A __author__ tom.h.miller@gmail.com (Tom Miller) N/A logging N/A os N/A urllib N/A time N/A gdata.photos gdata.photos.service PhotosService GooglePhotosException N/A googlecl N/A googlecl.base N/A googlecl.service N/A googlecl.picasa N/A googlecl.calendar.date N/A safe_encode N/A googlecl safe_encode N/A safe_decode N/A googlecl safe_decode N/A LOG N/A N/A logging getLogger N/A N/A googlecl picasa LOGGER_NAME N/A SUPPORTED_VIDEO_TYPES N/A wmv avi 3gp mov qt mp4 mpa mpe mpeg mpg mpv2 mpeg4 video/x-ms-wmv video/avi video/3gpp video/quicktime video/quicktime video/mp4 video/mpeg video/mpeg video/mpeg video/mpeg video/mpeg video/mpeg4 N/A N/A N/A N/A gdata photos service SUPPORTED_UPLOAD_TYPES N/A tuple N/A set N/A N/A N/A N/A vtype split / N/A 1 N/A vtype N/A N/A SUPPORTED_VIDEO_TYPES values N/A DOWNLOAD_VIDEO_TYPES N/A swf mp4 application/x-shockwave-flash video/mpeg4 PhotosServiceCL N/A PhotosService N/A N/A googlecl service BaseServiceCL N/A N/A Extends gdata.photos.service.PhotosService for the command line.

    This class adds some features focused on using Picasa via an installed app
    with a command line interface.

     __init__ N/A N/A self config N/A N/A N/A Constructor. N/A N/A N/A PhotosService __init__ self N/A N/A N/A N/A N/A googlecl service BaseServiceCL __init__ self N/A N/A googlecl picasa SECTION_HEADER config N/A build_entry_list N/A N/A self user titles query force_photos photo_title N/A default None None False None N/A N/A Build a list of entries of either photos or albums.

        If no title is specified, entries will be of photos matching the query.
        If no query is specified, entries will be of albums matching the title.
        If both title and query are specified, entries will be of photos matching
          the query that are also in albums matching the title.

        Keyword arguments:
          user: Username of the owner of the albums / photos (Default 'default').
          titles: list Titles of the albums (Default None).
          query: Query for photos, url-encoded (Default None).
          force_photos: If true, returns photo entries, even if album entries would
                        typically be returned. The entries will be for all photos
                        in each album.
          photo_title: Title of the photo(s) to return. Default None for all photos.

        Returns:
          A list of entries, as specified above.

         N/A album_entry N/A N/A N/A N/A titles N/A 0 N/A N/A N/A titles N/A 0 query N/A N/A album_entry N/A N/A self GetAlbum user user titles titles N/A N/A photo_title query force_photos N/A N/A uri N/A /data/feed/api/user/ user N/A N/A query N/A album_entry N/A N/A entries N/A N/A self GetEntries N/A N/A uri ?kind=photo&q= query photo_title N/A N/A entries N/A N/A uri /albumid/%s?kind=photo N/A query N/A N/A uri N/A &q= query N/A album album_entry N/A N/A photo_entries N/A N/A self GetEntries N/A uri N/A N/A album gphoto_id text photo_title N/A N/A N/A entries extend photo_entries N/A N/A entries album_entry N/A entries N/A create_album N/A N/A self title summary access date N/A N/A N/A Create photo album

        Args:
          title: Title of the album.
          summary: Summary or description of the album.
          access: Access level string. See the picasa package __init__ file for
              valid values.
          date: Date on the album, as a string.  If eveluates to False, uses today.

        Returns:
          AlbumEntry of newly created album.
         N/A date N/A N/A parser N/A N/A N/A N/A googlecl calendar date DateParser N/A date N/A N/A parser determine_day date shift_dates False N/A date N/A N/A timestamp N/A N/A time mktime N/A N/A date timetuple N/A timestamp_ms N/A %i N/A int N/A timestamp 1000 N/A N/A N/A N/A LOG error N/A Could not parse date %s. (Picasa only takes day info) date N/A timestamp_ms N/A N/A timestamp_ms N/A access N/A N/A N/A googlecl picasa _map_access_string access N/A N/A N/A self InsertAlbum title title summary summary access access timestamp timestamp_ms N/A N/A CreateAlbum create_album download_album N/A N/A self base_path user video_format titles photo_title N/A mp4 None None N/A N/A Download an album to the local host.

        Keyword arguments:
          base_path: Path on the filesystem to copy albums to. Each album will
                     be stored in base_path/<album title>. If base_path does not
                     exist, it and each non-existent parent directory will be
                     created.
          user: User whose albums are being retrieved. (Default 'default')
          titles: list or string Title(s) that the album(s) should have.
                  Default None, for all albums.

         _get_download_info N/A N/A photo_or_video video_format N/A N/A N/A Get download link and extension for photo or video.

            video_format must be in DOWNLOAD_VIDEO_TYPES.

            Returns:
              (url, extension)
             N/A wanted_content None N/A content N/A N/A photo_or_video media content N/A N/A N/A N/A N/A content medium image N/A wanted_content N/A N/A wanted_content content N/A N/A N/A N/A content type N/A DOWNLOAD_VIDEO_TYPES N/A video_format N/A N/A wanted_content content N/A N/A wanted_content N/A N/A N/A N/A LOG error Did not find desired medium! N/A N/A N/A LOG debug N/A photo_or_video.media:
 N/A photo_or_video media N/A None N/A N/A N/A N/A wanted_content medium image N/A N/A url N/A N/A N/A googlecl picasa make_download_url N/A N/A photo_or_video content src N/A mimetype N/A N/A photo_or_video content type N/A extension N/A N/A N/A mimetype split / N/A 1 N/A N/A url N/A wanted_content url N/A extension video_format N/A N/A url extension N/A N/A N/A user N/A N/A user default N/A entries N/A N/A self GetAlbum user user titles titles N/A N/A video_format N/A N/A DOWNLOAD_VIDEO_TYPES keys N/A N/A N/A N/A LOG error N/A Unsupported video format:  video_format N/A N/A N/A LOG info N/A Try one of the following video formats:  N/A N/A str N/A N/A DOWNLOAD_VIDEO_TYPES keys N/A 1 -1 N/A video_format mp4 N/A N/A N/A LOG info N/A Downloading videos as  video_format N/A album entries N/A N/A album_path N/A N/A N/A os path join base_path N/A safe_decode N/A N/A album title text N/A album_concat 1 N/A N/A N/A N/A os path exists album_path N/A N/A base_album_path album_path N/A N/A N/A N/A os path exists album_path N/A N/A album_path N/A base_album_path N/A -%i album_concat N/A album_concat 1 N/A N/A N/A os makedirs album_path N/A uri N/A /data/feed/api/user/%s/albumid/%s?kind=photo N/A user N/A N/A album gphoto_id text N/A photo_entries N/A N/A self GetEntries uri photo_title N/A photo_or_video photo_entries N/A N/A photo_or_video_name N/A safe_decode N/A N/A photo_or_video title text N/A photo_or_video_name N/A N/A N/A photo_or_video_name split N/A os extsep N/A 0 N/A N/A url extension N/A _get_download_info photo_or_video video_format N/A path N/A N/A N/A os path join album_path N/A N/A photo_or_video_name N/A os extsep extension N/A N/A N/A N/A os path exists path N/A N/A base_path path N/A photo_concat 1 N/A N/A N/A N/A os path exists path N/A N/A path N/A base_path N/A -%i photo_concat N/A photo_concat 1 N/A N/A N/A LOG info N/A safe_encode N/A Downloading %s to %s N/A N/A safe_decode N/A N/A photo_or_video title text path N/A N/A N/A urllib urlretrieve url path N/A N/A DownloadAlbum download_album get_album N/A N/A self user titles N/A default None N/A N/A Get albums from a user feed.

        Keyword arguments:
          user: The user whose albums are being retrieved. (Default 'default')
          titles: list or string Title(s) that the album(s) should have.
                  Default None, for all albums.

        Returns:
          List of albums that match parameters, or [] if none do.

         N/A uri N/A N/A /data/feed/api/user/ user ?kind=album N/A N/A N/A self GetEntries uri titles N/A N/A GetAlbum get_album get_single_album N/A N/A self user title N/A default None N/A N/A Get a single album. N/A uri N/A N/A /data/feed/api/user/ user ?kind=album N/A N/A N/A self GetSingleEntry uri title title N/A N/A GetSingleAlbum get_single_album insert_media_list N/A N/A self album media_list tags user photo_name caption N/A default None None N/A N/A Insert photos or videos into an album.

        Keyword arguments:
          album: The album entry of the album getting the media.
          media_list: A list of paths, each path a picture or video on
                      the local host.
          tags: Text of the tags to be added to each item, e.g. 'Islands, Vacation'
                (Default '').
          caption: Caption/summary to give each item. Default None for no caption.
         N/A album_url N/A /data/feed/api/user/%s/albumid/%s N/A user N/A N/A album gphoto_id text N/A keywords tags N/A N/A caption None N/A N/A caption N/A failures N/A N/A path media_list N/A N/A N/A N/A LOG info N/A safe_encode N/A N/A N/A Loading file  path  to album  N/A safe_decode N/A N/A album title text N/A ext N/A N/A googlecl get_extension_from_path path N/A N/A ext N/A N/A N/A N/A LOG debug N/A No extension match on path  path N/A content_type image/jpeg N/A N/A ext N/A N/A ext lower N/A N/A N/A content_type N/A SUPPORTED_VIDEO_TYPES N/A ext N/A N/A N/A KeyError N/A N/A content_type N/A image/ N/A N/A ext lower N/A title photo_name N/A N/A title N/A N/A title N/A N/A N/A N/A os path split path N/A 1 N/A N/A N/A N/A N/A self InsertPhotoSimple album_url title title summary caption filename_or_handle path keywords keywords content_type content_type N/A N/A N/A GooglePhotosException N/A err N/A N/A N/A N/A LOG error Failed to upload %s. (%s: %s) path N/A N/A err args N/A 0 N/A N/A err args N/A 1 N/A N/A N/A failures append file N/A N/A Exception N/A err N/A N/A N/A N/A LOG error N/A safe_encode N/A Unexpected error --  N/A unicode err N/A N/A N/A failures append file N/A failures N/A N/A N/A N/A LOG info N/A N/A str N/A len failures  photos failed to upload N/A N/A N/A LOG debug N/A safe_encode N/A Failed files:  N/A unicode failures N/A failures N/A N/A InsertMediaList insert_media_list is_token_valid N/A N/A self test_uri N/A /data/feed/api/user/default N/A N/A Check that the token being used is valid. N/A N/A N/A N/A N/A googlecl base BaseCL IsTokenValid self test_uri N/A N/A IsTokenValid is_token_valid tag_photos N/A N/A self photo_entries tags caption N/A N/A N/A Add or remove tags on a list of photos.

        Keyword arguments:
          photo_entries: List of photo entry objects.
          tags: String representation of tags in a comma separated list.
                For how tags are generated from the string,
                see googlecl.base.generate_tag_sets(). Set None to leave the tags as
                they currently are.
          caption: New caption for the photo. Set None to leave the caption as it
              is.
         gdata.media Group Keywords atom Summary N/A N/A tags None N/A N/A N/A remove_set add_set replace_tags N/A N/A N/A googlecl base generate_tag_sets tags N/A photo photo_entries N/A N/A N/A tags None N/A N/A N/A N/A photo media N/A N/A N/A photo media N/A Group N/A N/A N/A N/A photo media keywords N/A N/A N/A N/A photo media keywords N/A Keywords N/A N/A N/A N/A N/A photo media keywords text remove_set N/A replace_tags N/A N/A current_tags N/A N/A N/A N/A N/A photo media keywords text replace ,  , N/A current_set N/A set N/A N/A current_tags split , N/A N/A N/A N/A photo media keywords text N/A N/A , join N/A current_set remove_set N/A N/A replace_tags N/A N/A N/A N/A photo media keywords text N/A N/A N/A N/A N/A photo media keywords text N/A N/A , join add_set N/A N/A add_set N/A N/A N/A N/A N/A photo media keywords text N/A , N/A N/A , join add_set N/A N/A caption None N/A N/A N/A N/A photo summary N/A N/A N/A photo summary N/A Summary text caption summary_type text N/A N/A N/A N/A photo summary text caption N/A N/A N/A self UpdatePhotoMetadata photo N/A N/A TagPhotos tag_photos N/A N/A SERVICE_CLASS PhotosServiceCL