Skip to main content

Command line tool to turn DOIs into citations

Project description

cite

CI PyPI

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

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

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

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

Other output formats are supported, e.g. citeproc-json

$ cite --format citeproc-json https://doi.org/10.1103/PhysRev.48.73 doi:10.1002/andp.19053221004

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 habanero and the Crossref API (https://www.crossref.org/) as well as Pybtex.

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.5.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

cite-0.5.1-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: cite-0.5.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for cite-0.5.1.tar.gz
Algorithm Hash digest
SHA256 94d3ad458ca23a1d747e8588fc2a97afc0898409c4a91dc1e0ffe30fe666a740
MD5 176ba9cde76932d317d8cbe48c3fa23a
BLAKE2b-256 78d2184890f4c430747e7cd2fa9fd5f22164a5a3d2bd90cce5c5198372b41888

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cite-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for cite-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75b5ccbe2aabf429a1fde0004be010c1e5da4013551f89496b135f54dea0852d
MD5 47ddeaa4671c043c47925b289a2c5beb
BLAKE2b-256 ca0536ac8d4f60224d11c9eaf547baa50642cae451938767e0dca97cf940a67b

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