#io #crate2bib #crate2bib-cli

app crate2bib-cli

A CLI tool for the crate2bib crate

5 unstable releases

new 0.4.1 Apr 15, 2025
0.3.2 Feb 1, 2025
0.3.1 Jan 28, 2025
0.3.0 Jan 27, 2025
0.1.0 Jan 21, 2025

#532 in Text processing

Download history 83/week @ 2025-01-17 170/week @ 2025-01-24 145/week @ 2025-01-31 6/week @ 2025-02-07 5/week @ 2025-02-14 82/week @ 2025-04-11

82 downloads per month

MIT/Apache

43KB
639 lines

Converts a given crate and version number to a BibTeX entry. See also the rust library which also provides python bindings.

Installation

cargo install crate2bib-cli

Usage

$ crate2bib cellular_raza -v 0.2.3
Generated enty from crates.io information
@software {Pleyer2025,
    author = {Jonas Pleyer},
    title = {{cellular_raza}: Cellular Agent-based Modeling from a Clean Slate},
    url = {https://github.com/jonaspleyer/cellular_raza},
    date = {2025-03-13},
    version = {0.2.3},
    license = {GPL-2.0},
}
Generated from CITATION.cff file in repository 
@software {Pleyer2025,
    author = {Jonas Pleyer},
    title = {{cellular_raza}},
    url = {https://github.com/jonaspleyer/cellular_raza},
    date = {2025-02-23},
    version = {0.2.3},
    license = {GPL-2.0},
}

Options

Creates a BibTeX entry given a crate name and version number.Note: This crate respects semver.

Usage: crate2bib-cli [OPTIONS] <CRATE_NAME>

Arguments:
  <CRATE_NAME>  The exact name of the crate. Note that underscores are synonymous as dashes in the API of crates.io

Options:
  -v, --ver <VER>                  A semver compliant version number (eg. "1", 0.1", "0.3.38") [default: ]
  -u, --user-agent <USER_AGENT>    The name of the user-agent. Automation tools
                                   should specify this variable to specify which
                                   user generates the requests. [default: crate2bib-cli-user-agent]
      --filenames <FILENAMES>      [default: CITATION.cff citation.bib]
  -b, --branch-name <BRANCH_NAME>  [default: ]
  -h, --help                       Print help
  -V, --version                    Print version

Dependencies

~18–32MB
~512K SLoC