def parseFile(bib_file):
    """parse the bib file
    
    :param bib_file: bibtex file to be parsed
    :returns: -- a bibtex file object
    """
    with open(bib_file) as bibtex_file: 
        parser = BibTexParser()
        parser.homogenize = True        
        parser.customization = customizations
        data = b.load(bibtex_file, parser = parser)
        return data
Exemple #2
0
def parseFile(bib_file):
    """parse the bib file
    
    :param bib_file: bibtex file to be parsed
    :returns: -- a bibtex file object
    """
    with open(bib_file) as bibtex_file:
        parser = BibTexParser()
        parser.homogenize = True
        parser.customization = customizations
        data = b.load(bibtex_file, parser=parser)
        return data
def parseFile(bib_file):
    """parse the bib file

    :param bib_file: bibtex file to be parsed
    :returns: -- a bibtex file object
    """
    with open(bib_file) as bibtex_file:
        parser = BibTexParser() #import the parsers
        parser.homogenize = True
        parser.customization = customizations #add some customizations defined earlier
        data = b.load(bibtex_file, parser = parser) #process data yah!
        return data