Skip to main content

Command line tool to turn DOIs into citations

Project description

cite

CI PyPI Conda Version

Installation

pip install cite

Usage

Prints citation from DOIs or URLs of journal articles which provide DOIs in their metadata.

$ cite https://doi.org/10.1103/PhysRev.48.73

Einstein, A., & Rosen, N. (1935). The Particle Problem in the General Theory of Relativity. Physical Review, 48(1), 73–77. doi:10.1103/physrev.48.73

Other output styles formats are supported, see the list of CSL styles ar https://citation.crosscite.org/

$ cite --style iso690-author-date-en https://doi.org/10.1103/PhysRev.48.73

EINSTEIN, A. and ROSEN, N., 1935, The Particle Problem in the General Theory of Relativity. Physical Review [online]. 1 July 1935. Vol. 48, no. 1, p. 73–77. DOI 10.1103/physrev.48.73. Available from: http://dx.doi.org/10.1103/PhysRev.48.73

To generate a BibTeX entry with a shortdoi-based unique key use --bibtex or -b

$ cite --bibtex https://doi.org/10.1103/PhysRev.48.73

The entry's key is made of name, year and short DOI of the item.

To get Citeproc-JSON use --json or -j.

Where the journals provide the DOI in their website's metadata it is also possible to use the article website URL:

$ cite https://journals.aps.org/pr/abstract/10.1103/PhysRev.48.73

Einstein, A., & Rosen, N. (1935). The Particle Problem in the General Theory of Relativity. Physical Review, 48(1), 73–77. doi:10.1103/physrev.48.73

To add to an entry to an existing BibTex file:

cite --bibtex https://doi.org/10.1103/PhysRev.48.73 >> bibliography.bib

For the full list of options, see

$ cite --help

Uses Crosscite DOI Content Negotiation.

Project details


Download files

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

Source Distribution

cite-0.7.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

cite-0.7.1-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cite-0.7.1.tar.gz.

File metadata

  • Download URL: cite-0.7.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for cite-0.7.1.tar.gz
Algorithm Hash digest
SHA256 29e00918bd814dfd1503e68db8824a0c39946c7b0bf9ba14faf746591b360544
MD5 e4ee71dbb5d9d9df5e5c7fa05dd4a41e
BLAKE2b-256 39c86650d97eaf3a6faf5b1b3fd9c313a1071efe2c9d3408ccdb901d62ba9000

See more details on using hashes here.

File details

Details for the file cite-0.7.1-py2.py3-none-any.whl.

File metadata

  • Download URL: cite-0.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for cite-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f3616a49baa92f22c0090cb6e79375788f4eee3effcfaaa9b82a1bcf952a34f0
MD5 3e62534b6ef6965ef95caccfc0373880
BLAKE2b-256 c226956e4d68871bf48ccf82b990f3c35b83ae66fc70e3b17bbd71303c256e5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page