bibpy¶
bibpy allows you to parse bib(la)tex files and easily manipulate bibliographic entries.
Install with pip:
pip install bibpy
Simple usage:
>>> import bibpy
>>> result = bibpy.read_file('references.bib', 'relaxed')
>>> entries = result.entries
>>> entries[0].bibkey
'key4'
>>> entries[0].bibtype
'article'
>>> entries[0].author
'Archer Sterling'
>>> entries[0].title
'A Practical Guide To Getting Ants'
View the tutorial for a more comprehensive guide.