How to use the invoice2data.main.create_parser function in invoice2data

To help you get started, we’ve selected a few invoice2data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github invoice-x / invoice2data / tests / test_cli.py View on Github external
def setUp(self):
        self.templates = read_templates()
        self.parser = create_parser()
github invoice-x / invoicex-gui / invoicex / populate.py View on Github external
def __init__(self, popfield, excludeDefaultFolder, templateFolder,
                 fieldDict, gui, factx):
        self.parser = create_parser()
        self.fieldValueDict = fieldDict
        self.gui = gui
        self.factx = factx
        self.popfield = popfield
        self.outputFile = '.load/invoice2data_output.json'
        self.parseList = ['--output-format',
                          'json',
                          '--output-name',
                          self.outputFile,
                          '--exclude-built-in-templates',
                          '--template-folder',
                          templateFolder,
                          self.gui.fileName[0]]
        if not excludeDefaultFolder:
            self.parseList.remove('--exclude-built-in-templates')
        if templateFolder is None:

invoice2data

Python parser to extract data from pdf invoice

MIT
Latest version published 11 months ago

Package Health Score

66 / 100
Full package analysis

Similar packages