Skip to content

Instantly share code, notes, and snippets.

@Tarrasch
Created December 16, 2013 08:31
Show Gist options
  • Select an option

  • Save Tarrasch/7983895 to your computer and use it in GitHub Desktop.

Select an option

Save Tarrasch/7983895 to your computer and use it in GitHub Desktop.
Test if your bibtex file is valid
# I used this to get https://github.com/termoshtt/unite-bibtex working
from pybtex import errors
from pybtex.database.input import bibtex
errors.enable_strict_mode()
parser = bibtex.Parser()
path = '/home/YOUR_NAME/your/path/to/bibtex/file.bib'
parser.parse_file(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment