Skip to content

anouar-bouchal/BibParser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BibParser, More Than A Parser

Aug 13th, 2021, Jyonn at Hong Kong

BibParser is a tool to parse, format, merge and export bibtex file.

bib_parser = BibParser(
    conflict_shortname=Conflict.compare,
    conflict_shortname_compare='title',
    # strict_entry_required=True,
)
f1 = BibFile('../recbert-wsdm.bib', parser=bib_parser)
f2 = BibFile('../recbert.bib', parser=bib_parser)

file = BibFile.merge(
    'final.bib',
    f1, f2,
    conflict_shortname=Conflict.compare,
    conflict_shortname_compare='title'
)

file.merge(
    'a.bib',
    selected_attrs=['title', 'author', 'year', 'booktitle', 'journal']
)

About

BibParser, More Than A Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%