當前位置: 首頁>>代碼示例>>Python>>正文


Python memacs.Memacs類代碼示例

本文整理匯總了Python中lib.memacs.Memacs的典型用法代碼示例。如果您正苦於以下問題:Python Memacs類的具體用法?Python Memacs怎麽用?Python Memacs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Memacs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _parser_parse_args

    def _parser_parse_args(self):
        """
        overwritten method of class Memacs

        all additional arguments are parsed in here
        """
        Memacs._parser_parse_args(self)
開發者ID:njagadeesh,項目名稱:Memacs,代碼行數:7,代碼來源:example.py

示例2: _parser_add_arguments

    def _parser_add_arguments(self):
        Memacs._parser_add_arguments(self)

        self._parser.add_argument("-f", "--folder",
                                  dest="filenametimestamps_folder",
                                  action="append",
                                  help="path to a folder to search for " + \
                                      "filenametimestamps, " + \
                                  "multiple folders can be specified: " + \
                                      "-f /path1 -f /path2")

        self._parser.add_argument("-x", "--exclude", dest="exclude_folder",
                        help="path to excluding folder, for more excludes " + \
                             "use this: -x /path/exclude -x /path/exclude")

        self._parser.add_argument("-l", "--follow-links",
                                  dest="follow_links", action="store_true",
                                  help="follow symbolics links," + \
                                      " default False")

        self._parser.add_argument("--skip-file-time-extraction",
                                  dest="skip_filetime_extraction",
                                  action="store_true",
                                  help="skip extraction of the file time " + \
                                  " in files containing only the date in " + \
                                  "the filename"
        )
開發者ID:ajft,項目名稱:Memacs,代碼行數:27,代碼來源:filenametimestamps.py

示例3: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)
開發者ID:njagadeesh,項目名稱:Memacs,代碼行數:7,代碼來源:example.py

示例4: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-l", "--list-folders",
           dest="list_folders",
           action="store_true",
           help="show possible folders of connection")

        self._parser.add_argument(
           "-f", "--folder_name",
           dest="folder_name",
           help="name of folder to get emails from, " + \
            "when you don't know name call --list-folders")

        self._parser.add_argument(
           "--fetch-number",
           dest="fetch_number",
           help="how many -last- mails should we fetch from the server?",
           type=int)
開發者ID:Neil-Smithline,項目名稱:Memacs,代碼行數:25,代碼來源:imap.py

示例5: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f",
            "--file",
            dest="gitrevfile",
            action="store",
            help="path to a an file which contains output from "
            + " following git command: git rev-list --all --pretty=raw",
        )

        self._parser.add_argument(
            "-g",
            "--grep-user",
            dest="grepuser",
            action="store",
            help="if you wanna parse only commit from a specific person. "
            + "format:<Forname Lastname> of user to grep",
        )

        self._parser.add_argument(
            "-e",
            "--encoding",
            dest="encoding",
            action="store",
            help="default encoding utf-8, see "
            + "http://docs.python.org/library/codecs.html#standard-encodings"
            + "for possible encodings",
        )
開發者ID:njagadeesh,項目名稱:Memacs,代碼行數:35,代碼來源:git.py

示例6: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--file", dest="smsxmlfile",
            action="store", required=True,
            help="path to sms xml backup file")

        self._parser.add_argument(
            "--ignore-incoming", dest="ignore_incoming",
            action="store_true",
            help="ignore incoming smses")

        self._parser.add_argument(
            "--ignore-outgoing", dest="ignore_outgoing",
            action="store_true",
            help="ignore outgoing smses")

        self._parser.add_argument(
            "--orgcontactsfile", dest="orgcontactsfile",
            action="store", required=False,
            help="path to Org-contacts file for phone number lookup. Phone numbers have to match.")
開發者ID:easeflyer,項目名稱:Memacs,代碼行數:27,代碼來源:sms.py

示例7: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-u", "--url", dest="url",
           action="store",
           help="url to xml file")

        self._parser.add_argument(
           "-f", "--file", dest="file",
           action="store",
           help="path to xml file")

        self._parser.add_argument(
           "-i", "--ini", dest="ini",
           action="store",
           help="path to xml config file")

        self._parser.add_argument(
           "-co", "--section", dest="section",
           action="store",
           help="section of config file")

        self._parser.add_argument(
           "-de", "--delimiter", dest="splitcriterion",
           action="store",
           help="you can set this to specify a " +
                "splitting-criterion for tags(" " is default")
開發者ID:Daniel1234,項目名稱:Memacs,代碼行數:33,代碼來源:xmlsource.py

示例8: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--file", dest="smsxmlfile",
            action="store", required=True,
            help="path to sms xml backup file")

        self._parser.add_argument(
            "--ignore-incoming", dest="ignore_incoming",
            action="store_true",
            help="ignore incoming phonecalls")

        self._parser.add_argument(
            "--ignore-outgoing", dest="ignore_outgoing",
            action="store_true",
            help="ignore outgoing phonecalls")

        self._parser.add_argument(
            "--ignore-missed", dest="ignore_missed",
            action="store_true",
            help="ignore outgoing phonecalls")

        self._parser.add_argument(
            "--minimum-duration", dest="minimum_duration",
            action="store", type=int,
            help="[sec] show only calls with duration >= this argument")
開發者ID:ajft,項目名稱:Memacs,代碼行數:32,代碼來源:phonecalls.py

示例9: _parser_add_arguments

    def _parser_add_arguments(self):
        Memacs._parser_add_arguments(self)

        self._parser.add_argument("-f", "--folder",
                                  dest="filenametimestamps_folder",
                                  action="append",
                                  help="path to a folder to search for " + \
                                      "filenametimestamps, " + \
                                  "multiple folders can be specified: " + \
                                      "-f /path1 -f /path2")

        self._parser.add_argument("-x", "--exclude", dest="exclude_folder",
                        help="path to excluding folder, for more excludes " + \
                             "use this: -x /path/exclude -x /path/exclude")

        self._parser.add_argument("--filelist", dest="filelist",
                        help="file containing a list of files to process. " + \
                             "either use \"--folder\" or the \"--filelist\" argument, not both.")

        self._parser.add_argument("--ignore-non-existing-items",
                                  dest="ignore_nonexisting", action="store_true",
                                  help="ignores non-existing files or folders within filelist")

        self._parser.add_argument("-l", "--follow-links",
                                  dest="follow_links", action="store_true",
                                  help="follow symbolics links," + \
                                      " default False")

        self._parser.add_argument("--skip-file-time-extraction",
                                  dest="skip_filetime_extraction",
                                  action="store_true",
                                  help="skip extraction of the file time " + \
                                  " in files containing only the date in " + \
                                  "the filename"
        )
開發者ID:andrewjss,項目名稱:Memacs,代碼行數:35,代碼來源:filenametimestamps.py

示例10: _parser_parse_args

    def _parser_parse_args(self):
        Memacs._parser_parse_args(self)
        if not self._args.filenametimestamps_folder:
            self._parser.error("no filenametimestamps_folder specified")

        for f in self._args.filenametimestamps_folder:
            if not os.path.isdir(f):
                self._parser.error("Check the folderlist - " + \
                                       "one or more aren't folders")
開發者ID:ajft,項目名稱:Memacs,代碼行數:9,代碼來源:filenametimestamps.py

示例11: _parser_parse_args

    def _parser_parse_args(self):
        """
        overwritten method of class Memacs

        all additional arguments are parsed in here
        """
        Memacs._parser_parse_args(self)
        if not os.path.exists(self._args.photo_folder):
            self._parser.error("photo folder does not exist")
開發者ID:andrewjss,項目名稱:Memacs,代碼行數:9,代碼來源:photos.py

示例12: _parser_parse_args

    def _parser_parse_args(self):
        """
        overwritten method of class Memacs

        all additional arguments are parsed in here
        """
        Memacs._parser_parse_args(self)
        if not (os.path.exists(self._args.smsxmlfile) or \
                     os.access(self._args.smsxmlfile, os.R_OK)):
            self._parser.error("input file not found or not readable")
開發者ID:ajft,項目名稱:Memacs,代碼行數:10,代碼來源:phonecalls.py

示例13: _parser_parse_args

    def _parser_parse_args(self):
        """
        overwritten method of class Memacs

        all additional arguments are parsed in here
        """
        Memacs._parser_parse_args(self)

        if not self._args.list_folders and not self._args.folder_name:
            self._parser.error("please specify a folder " + \
                                   "use --list to find a folder")
開發者ID:Daniel1234,項目名稱:Memacs,代碼行數:11,代碼來源:imap.py

示例14: _parser_parse_args

    def _parser_parse_args(self):
        """
        overwritten method of class Memacs

        all additional arguments are parsed in here
        """
        Memacs._parser_parse_args(self)
        if not self._args.folder_path:
                self._parser.error("please specify the path to Maildir folder")
        if not (os.path.exists(self._args.folder_path) or \
            os.access(self._args.folder_path, os.R_OK)):
            self._parser.error("folder path not found")
開發者ID:Daniel1234,項目名稱:Memacs,代碼行數:12,代碼來源:maildir.py

示例15: _parser_add_arguments

    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--file", dest="phonelogfile",
            action="store", required=True,
            help="path to phone log file")
開發者ID:geekinthesticks,項目名稱:Memacs,代碼行數:12,代碼來源:simplephonelogs.py


注:本文中的lib.memacs.Memacs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。