package doi2bib

  1. Overview
  2. Docs
Little CLI tool to get bibtex entries out of doi or arxiv ids

Install

Dune Dependency

Authors

Maintainers

Sources

doi2bib-0.2.1.tbz
sha256=dc56c36f0d942b5e216158f168919cf1473afe6a789fc6d3f1e7e549131ae352
sha512=c9a9ff7feca35c69a6922600d9beb2541fcfc584c87ea4cbfcd5c7b7aed8aa29e4228687891b9e6c464b4cde17fc3ff1b57849625320d5d597394361322ec5b8

Description

Published: 29 Oct 2020

README

doi2bib

Small CLI to get a bibtex entry from a DOI or an arXiv ID.

Usage:

$ doi2bib --help
SYNOPSIS

    doi2bib <ID>

DESCRIPTION

    A little CLI tool to get the bibtex entry for a given DOI, arXiv or PubMed
    ID.

OPTIONS

    ID
        A DOI, an arXiv ID or a PubMed ID. The tool tries to automatically infer
        what kind of ID you are using. You can force the cli to lookup a DOI by
        using the form 'doi:ID' or an arXiv ID by using the form 'arXiv:ID'.
        PubMed IDs always start with 'PMC'.

It will output the bibtex entry, using the published details when possible.

Examples of use (the bibtex entry is printed on standard output):

$ doi2bib 10.1007/s10569-019-9946-9
$ doi2bib doi:10.4171/JST/226
$ doi2bib arXiv:1609.01724
$ doi2bib 1902.00436
$ doi2bib PMC2883744

Each release comes with attached binaries for windows, mac and linux. If you want to build the package yourself, the most immediate way is by running

$ opam pin add doi2bib https://github.com/mseri/doi2bib.git
$ opam install doi2bib

To run the tests, clone this repository and from of the root of the project run

$ opam install --deps-only .    # first time only
$ dune runtest -p doi2bib

API references:

Dependencies (9)

  1. tls-lwt < "1.0.0"
  2. tls >= "0.12.0" & < "0.16"
  3. lwt >= "5.3.0"
  4. ezxmlm >= "1.1.0"
  5. clap >= "0.1.0"
  6. cohttp-lwt-unix >= "2.5.0"
  7. astring >= "0.8.0"
  8. ocaml >= "4.08"
  9. dune >= "2.7"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.