11 releases (7 stable)

1.1.0 Aug 24, 2024
1.0.4 Nov 30, 2023
1.0.2 May 24, 2023
1.0.1 Mar 28, 2023
0.0.4 Feb 16, 2023

#354 in Command line utilities

MIT/Apache

23KB
69 lines

bibget

CI crates.io dependency status MIT

Command line interface tool for generating BibTex entries from DOIs. Written in Rust and based on the doi2bib crate.

Installation

Pre-compiled binaries for MacOS and Linux are available from the releases page and do not require Rust to be installed.

bibget can be installed from source using cargo. The most stable version is hosted on crates.io.

# release version from crates.io
cargo install bibget 

You can also install from GitHub if you want access to the latest pre-release (likely with newer dependencies) or development (more experimental) builds.

# pre-release version
cargo install --git https://github.com/nathansam/bibget.git bibget 
# development version 
cargo install --git https://github.com/nathansam/bibget.git --branch dev bibget 

Usage

bibget is a command line tool that takes a DOI as an argument and returns output in BibTex format. Multiple DOIs can be passed via whitespace separation.

bibget 10.1002/sim.1186 10.1007/978-3-319-19425-7
 @article{Higgins_2002,
   title = {Quantifying heterogeneity in a meta‐analysis},
   volume = {21},
   ISSN = {1097-0258},
   url = {http://dx.doi.org/10.1002/sim.1186},
   DOI = {10.1002/sim.1186},
   number = {11},
   journal = {Statistics in Medicine},
   publisher = {Wiley},
   author = {Higgins, Julian P. T. and Thompson, Simon G.},
   year = {2002},
   month = may,
   pages = {1539–1558}
}

 @book{Harrell__2015,
  _2015,
   title = {Regression Modeling Strategies: With Applications to Linear Models, Logistic and Ordinal Regression, and Survival Analysis},
   ISBN = {9783319194257},
   ISSN = {2197-568X},
   url = {http://dx.doi.org/10.1007/978-3-319-19425-7},
   DOI = {10.1007/978-3-319-19425-7},
   journal = {Springer Series in Statistics},
   publisher = {Springer International Publishing},
   author = {Harrell , Frank E.},
   year = {2015}
}

bibget supports an optional -f/--file flag for writing the BibTex to file. If the specified file does not already exist, it will be created first. Entries will be appended to the end of existing files instead.

> bibget -f test.bib 10.1002/sim.1186

Dependencies

~9–21MB
~294K SLoC