Closed boyanpenkov closed 1 year ago
Hello folks,
Once I successfully have a bibtexparser.bibdatabase instance that's populated, can I add an entry and write the file back to disk?
bibtexparser.bibdatabase
https://bibtexparser.readthedocs.io/en/master/bibtexparser.html#bibtexparser-bibdatabase-the-bibliographic-database-object seems to have source for re-writing crossrefs, but to add a new entry, should I just treat databse.entries{} as a dict, add to that and write back?
databse.entries{}
Thanks kindly, and cheers!
Confirming that @omangin made a comment in https://github.com/sciunto-org/python-bibtexparser/issues/186 that shows the way forward here.
Hello folks,
Once I successfully have a
bibtexparser.bibdatabase
instance that's populated, can I add an entry and write the file back to disk?https://bibtexparser.readthedocs.io/en/master/bibtexparser.html#bibtexparser-bibdatabase-the-bibliographic-database-object seems to have source for re-writing crossrefs, but to add a new entry, should I just treat
databse.entries{}
as a dict, add to that and write back?Thanks kindly, and cheers!