Module Expr Str ImportFrom alias Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str ClassDef bases AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Import alias If NameLoad body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias TryExcept body Return SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body If CompareEq Call NameLoad NameLoad Num body Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword ListLoad Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return NameLoad orelse Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Return BoolOpAnd NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias TryExcept body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Print BinOpAdd Str NameLoad While CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore BinOpAdd SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareIn Call AttributeLoad NameLoad attr ListLoad Str body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Dict Str AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Import alias If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Str Return Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword BinOpAdd BinOpAdd NameLoad Str NameLoad keyword NameLoad decorator_list
N/A N/A Service details and instances for the Docs service.

Some use cases:
Upload a document:
  docs upload --folder "Some folder" path_to_doc

Edit a document in your word editor:
  docs edit --title "Grocery List" --editor vim (editor also set in prefs)

Download docs:
  docs get --folder "Some folder"

 __future__ with_statement N/A __author__ tom.h.miller@gmail.com (Tom Miller) N/A gdata.docs.service N/A logging N/A os N/A shutil N/A googlecl N/A googlecl.base N/A googlecl.service googlecl.docs SECTION_HEADER N/A googlecl.docs.base 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 N/A googlecl docs LOGGER_NAME .service DocsServiceCL N/A N/A N/A N/A gdata docs service DocsService N/A N/A N/A googlecl docs base DocsBaseCL N/A N/A googlecl service BaseServiceCL N/A N/A Extends gdata.docs.service.DocsClient for the command line.

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

     N/A DOCLIST_FEED_URI /feeds/documents/private/full __init__ N/A N/A self config N/A N/A N/A Constructor. N/A N/A N/A N/A N/A N/A gdata docs service DocsService __init__ self source GoogleCL N/A N/A N/A N/A N/A googlecl service BaseServiceCL __init__ self SECTION_HEADER config N/A N/A self ssl True N/A _DownloadFile N/A N/A self uri file_path N/A N/A N/A Downloads a file.

        Overloaded from docs.service.DocsService to optionally decode from UTF.

        Args:
          uri: string The full Export URL to download the file from.
          file_path: string The full path to save the file to.

        Raises:
          RequestError: on error response from server.
         N/A server_response N/A N/A self request GET uri N/A response_body N/A N/A server_response read N/A N/A N/A server_response status 200 N/A N/A N/A N/A gdata service RequestError N/A status reason body N/A server_response status N/A server_response reason response_body N/A N/A N/A N/A N/A N/A googlecl docs base can_export uri N/A N/A N/A self config lazy_get SECTION_HEADER decode_utf_8 False bool N/A N/A N/A N/A file_string N/A N/A response_body decode utf-8-sig N/A N/A N/A UnicodeError N/A err N/A N/A N/A N/A LOG debug N/A Could not decode:  N/A str err N/A file_string response_body N/A N/A file_string response_body N/A N/A open file_path wb download_file N/A N/A N/A N/A download_file write file_string N/A N/A N/A download_file flush N/A _create_folder N/A N/A self title folder_or_uri N/A None N/A N/A Stolen from gdata-2.0.10 to make recursive directory upload work. N/A N/A N/A N/A N/A N/A N/A N/A gdata docs service DocsService CreateFolder self title folder_or_uri N/A N/A N/A AttributeError N/A N/A atom N/A folder_or_uri N/A N/A N/A N/A uri N/A N/A folder_or_uri content src N/A N/A N/A AttributeError N/A N/A uri folder_or_uri N/A N/A uri /feeds/documents/private/full N/A folder_entry N/A N/A N/A gdata docs DocumentListEntry N/A N/A folder_entry title N/A N/A atom Title text title N/A N/A N/A N/A folder_entry category append N/A _make_kind_category N/A N/A googlecl docs FOLDER_LABEL N/A folder_entry N/A N/A self Post folder_entry uri converter N/A N/A gdata docs DocumentListEntryFromString N/A folder_entry N/A _determine_content_type N/A N/A self file_ext N/A N/A gdata.docs.service SUPPORTED_FILETYPES N/A N/A N/A N/A SUPPORTED_FILETYPES N/A N/A N/A file_ext upper N/A N/A N/A KeyError N/A N/A N/A N/A LOG info No supported filetype found for extension %s file_ext N/A None N/A export N/A N/A self entry_or_id_or_url file_path gid extra_params N/A None None N/A N/A Export old and new version docs.

        Ripped from gdata.docs.DocsService, adds 'format' parameter to make
        new version documents happy.

         N/A ext N/A N/A googlecl get_extension_from_path file_path N/A ext N/A N/A N/A extra_params None N/A N/A extra_params N/A N/A N/A extra_params N/A format ext N/A N/A N/A self Download entry_or_id_or_url file_path ext gid extra_params N/A N/A Export export get_doclist N/A N/A self titles folder_entry_list N/A None None N/A N/A Get a list of document entries from a feed.

        Keyword arguments:
          titles: list or string Title(s) of entries to return. Will be compared
                 to entry.title.text, using regular expressions if self.use_regex.
                 Default None for all entries from feed.
          folder_entry_list: List of GDataEntry's of folders to get from.
                 Only files found in these folders will be returned.
                 Default None for all folders.

        Returns:
          List of entries.

         N/A folder_entry_list N/A N/A entries N/A N/A folder folder_entry_list N/A N/A N/A N/A entries extend N/A N/A self GetEntries N/A N/A folder content src titles converter N/A N/A gdata docs DocumentListFeedFromString N/A N/A query N/A N/A N/A N/A gdata docs service DocumentQuery N/A entries N/A N/A self GetEntries N/A N/A query ToUri titles converter N/A N/A gdata docs DocumentListFeedFromString N/A entries N/A get_single_doc N/A N/A self title folder_entry_list N/A None None N/A N/A Return exactly one doc_entry.

        Keyword arguments:
          title: Title to match on for document. Default None for any title.
          folder_entry_list: GDataEntry of folders to look in.
                             Default None for any folder.

        Returns:
          None if there were no matches, or one entry matching the given title.

         N/A folder_entry_list N/A N/A N/A N/A len folder_entry_list 1 N/A N/A N/A N/A self GetSingleEntry N/A N/A N/A folder_entry_list N/A 0 content src title converter N/A N/A gdata docs DocumentListFeedFromString N/A N/A entries N/A N/A self get_doclist title folder_entry_list N/A N/A N/A self GetSingleEntry entries title N/A N/A N/A N/A self GetSingleEntry N/A N/A N/A N/A N/A N/A gdata docs service DocumentQuery ToUri title converter N/A N/A gdata docs DocumentListFeedFromString N/A N/A GetSingleDoc get_single_doc get_folder N/A N/A self title N/A N/A N/A Return entries for one or more folders.

        Keyword arguments:
          title: Title of the folder.

        Returns:
          GDataEntry representing a folder, or None of title is None.

         N/A title N/A N/A query N/A N/A N/A N/A gdata docs service DocumentQuery categories N/A folder params N/A showfolders true N/A folder_entries N/A N/A self GetEntries N/A N/A query ToUri title N/A N/A folder_entries N/A N/A N/A N/A LOG warning N/A No folder found that matches  title N/A folder_entries N/A N/A None N/A N/A GetFolder get_folder is_token_valid N/A N/A self test_uri N/A None N/A N/A Check that the token being used is valid. N/A N/A test_uri N/A N/A docs_uri N/A N/A N/A N/A N/A N/A gdata docs service DocumentQuery ToUri N/A sheets_uri https://spreadsheets.google.com/feeds/spreadsheets/private/full N/A docs_test N/A N/A N/A N/A googlecl service BaseServiceCL IsTokenValid self docs_uri N/A sheets_test N/A N/A N/A N/A googlecl service BaseServiceCL IsTokenValid self sheets_uri N/A N/A docs_test sheets_test N/A N/A IsTokenValid is_token_valid _modify_entry N/A N/A self doc_entry path_to_new_content file_ext N/A N/A N/A Replace content of a DocEntry.

        Args:
          doc_entry: DocEntry whose content will be replaced.
          path_to_new_content: str Path to file that has new content.
          file_ext: str Extension to use to determine MIME type of upload
                    (e.g. 'txt', 'doc')

         gdata.docs.service SUPPORTED_FILETYPES N/A N/A N/A content_type N/A SUPPORTED_FILETYPES N/A N/A N/A file_ext upper N/A N/A N/A KeyError N/A N/A N/A Could not find mimetype for  file_ext N/A N/A file_ext N/A N/A SUPPORTED_FILETYPES keys N/A N/A file_ext N/A raw_input N/A N/A Please enter one of  N/A N/A SUPPORTED_FILETYPES keys  for a content type to upload as. N/A content_type N/A SUPPORTED_FILETYPES N/A N/A N/A file_ext upper N/A mediasource N/A N/A gdata MediaSource file_path path_to_new_content content_type content_type N/A N/A N/A self Put mediasource N/A N/A N/A doc_entry GetEditMediaLink href N/A request_access N/A N/A self domain display_name scopes browser N/A None None N/A N/A Request access as in BaseServiceCL, but specify scopes. N/A N/A scopes N/A N/A scopes N/A N/A N/A N/A gdata service CLIENT_LOGIN_SCOPES N/A writely N/A N/A N/A gdata service CLIENT_LOGIN_SCOPES N/A wise N/A N/A N/A N/A N/A googlecl service BaseServiceCL request_access self domain display_name scopes scopes browser browser N/A N/A RequestAccess request_access _transmit_doc N/A N/A self path entry_title post_uri content_type file_ext N/A N/A N/A Upload a document.

        The final step in uploading a document. The process differs between versions
        of the gdata python client library, hence its definition here.

        Args:
          path: Path to the file to upload.
          entry_title: Name of the document.
          post_uri: URI to make request to.
          content_type: MIME type of request.
          file_ext: File extension that determined the content_type.

        Returns:
          Entry representing the document uploaded.
         N/A media N/A N/A gdata MediaSource file_path path content_type content_type N/A N/A N/A N/A N/A self Upload media entry_title post_uri N/A N/A N/A AttributeError N/A N/A atom N/A entry N/A N/A N/A gdata docs DocumentListEntry N/A N/A entry title N/A N/A atom Title text entry_title N/A N/A N/A N/A file_ext lower N/A csv tsv tab ods xls xlsx N/A N/A category N/A _make_kind_category N/A N/A googlecl docs SPREADSHEET_LABEL N/A N/A N/A N/A N/A file_ext lower N/A ppt pps N/A N/A category N/A _make_kind_category N/A N/A googlecl docs PRESENTATION_LABEL N/A N/A N/A N/A N/A file_ext lower N/A pdf N/A N/A category N/A _make_kind_category N/A N/A googlecl docs PDF_LABEL N/A N/A category N/A _make_kind_category N/A N/A googlecl docs DOCUMENT_LABEL N/A N/A N/A N/A entry category append category N/A N/A N/A self Post entry post_uri media_source media extra_headers N/A Slug N/A media file_name converter N/A N/A gdata docs DocumentListEntryFromString N/A N/A N/A SERVICE_CLASS DocsServiceCL _make_kind_category N/A N/A label N/A N/A N/A Stolen from gdata-2.0.10 docs.service. N/A atom N/A N/A label None N/A N/A None N/A documents_namespace http://schemas.google.com/docs/2007 N/A N/A N/A atom Category scheme N/A N/A N/A gdata docs service DATA_KIND_SCHEME term N/A N/A documents_namespace # label label label N/A