Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Convert a yaml file containing (key -> DOI) pairs to bib file with the correct journal abbreviations.

Project description

yaml2bib: Convert a yaml file to bib file with the correct journal abbreviations using only DOIs

license tests codecov docs version PyPI - Python Version


pip install yaml2bib


Use as command line tool

Usage: yaml2bib [OPTIONS]

  --bib_fname TEXT          Output file. (default: 'dissertation.bib')
  --dois_yaml TEXT          The `key: doi` YAML file, may contain wildcards
                            (*). (default: 'bib.yaml' ,example: '*/*.yaml')
  --replacements_yaml TEXT  Replacements to perform, might be None. (default:
                            None, example: 'replacements.yaml')
  --static_bib TEXT         Static bib entries, might be None, may contain
                            wildcards (*). (default: None, example:
  --doi2bib_database TEXT   The doi2bib database folder 📁 to not query
                            more than needed. (default: 'yaml2bib-doi2bib.db')
  --crossref_database TEXT  The Crossref database folder 📁 to not query
                   more than needed. (default:
  --email TEXT              E-mail 📧 for, such that one can make
                            more API calls without getting blocked. (default:
                            'anonymous', example: '')
  --help                    Show this message and exit.

Example invocation for my thesis:

yaml2bib \
  --bib_fname "dissertation.bib" \
  --dois_yaml "*/*.yaml" \
  --replacements_yaml "replacements.yaml" \
  --static_bib "chapter_*/not_on_crossref.bib" \
  --email ""

or as a library:

from yaml2bib import yaml2bib



MIT License


  • Bas Nijholt

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yaml2bib, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size yaml2bib-0.1.3-py3-none-any.whl (7.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size yaml2bib-0.1.3.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page