Skip to content

Tiny utility to add DOIs to an existing bibtex file

License

Notifications You must be signed in to change notification settings

sharkovsky/doi4bib

Repository files navigation

doi4bib

A tiny utility to copy a bibtex file and enrich it with DOI references.

https://travis-ci.com/sharkovsky/doi4bib.svg?branch=master

Description

This small utility takes an existing bibtex file and outputs a copy of that file, with additional Digital Object Identifier (DOI) references.

Installation

You can pip-install directly using the github link:

pip install -e git+https://github.com/sharkovsky/[email protected]#egg=doi4bib-0.1.10

Or clone this repository and navigate to it. Then run:

python setup.py install

Note: it requires Python 3.

Usage

doi4bib [-h] [-o OUT_FILE] [--version] [-v] [-vv] bib_file

where bib_file is a bibtex file that you want to enrich with DOI references. It will output a copy of that file, in which each entry has been endowed with the DOI reference to that article.

The DOI reference is obtained by contacting the Crossref REST API

Note that doi4bib is (so far) the only entry point to this package, and that the module is not callable.

Note

The DOI references are obtained by contacting the Crossref API. The code to contact the API was shamelessly copied from the OpenAPC DOI Importer by the OpenAPC initiave to whom I owe a lot of gratitude.

I am using aclement's biblib to parse bibtex files, to whom I also owe a lot of gratitude.

This project has been set up using PyScaffold 3.2.1. For details and usage information on PyScaffold see https://pyscaffold.org/.

About

Tiny utility to add DOIs to an existing bibtex file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages