cite


Namecite JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/rgieseke/cite
SummaryCommand line tool to turn DOIs into citations
upload_time2021-04-08 11:10:34
maintainer
docs_urlNone
authorRobert Gieseke
requires_python
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cite

[![CI](https://img.shields.io/github/workflow/status/rgieseke/cite/CI?style=for-the-badge&label=actions&logo=github&logoColor=white)](https://github.com/rgieseke/cite/actions)
[![PyPI](https://img.shields.io/pypi/v/cite.svg?style=for-the-badge)](https://pypi.org/project/cite/)

## 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](http://shortdoi.org/) 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](https://citation.crosscite.org/).



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rgieseke/cite",
    "name": "cite",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Robert Gieseke",
    "author_email": "rob.g@web.de",
    "download_url": "https://files.pythonhosted.org/packages/17/42/e86284c9e3c3ded703e500e9a71dbc213d3b18162d82f29a936d9973116a/cite-0.7.0.tar.gz",
    "platform": "",
    "description": "# cite\n\n[![CI](https://img.shields.io/github/workflow/status/rgieseke/cite/CI?style=for-the-badge&label=actions&logo=github&logoColor=white)](https://github.com/rgieseke/cite/actions)\n[![PyPI](https://img.shields.io/pypi/v/cite.svg?style=for-the-badge)](https://pypi.org/project/cite/)\n\n## Installation\n\n```\npip install cite\n```\n\n## Usage\n\nPrints citation from DOIs or URLs of journal articles which provide DOIs in their\nmetadata.\n\n```\n$ cite https://doi.org/10.1103/PhysRev.48.73\n\nEinstein, A., & Rosen, N. (1935). The Particle Problem in the General Theory of Relativity. Physical Review, 48(1), 73\u201377. doi:10.1103/physrev.48.73\n```\n\nOther output styles formats are supported, see the list of CSL styles ar <https://citation.crosscite.org/>\n\n```\n$ cite --style iso690-author-date-en https://doi.org/10.1103/PhysRev.48.73\n\nEINSTEIN, A. and ROSEN, N., 1935, The Particle Problem in the General Theory of Relativity. Physical Review [online]. 1 July 1935. Vol.\u00a048, no.\u00a01, p.\u00a073\u201377. DOI\u00a010.1103/physrev.48.73. Available from: http://dx.doi.org/10.1103/PhysRev.48.73\n```\n\nTo generate a BibTeX entry with a shortdoi-based unique key use `--bibtex` or `-b`\n\n```\n$ cite --bibtex https://doi.org/10.1103/PhysRev.48.73\n```\n\nThe entry's key is made of name, year and [short DOI](http://shortdoi.org/) of the item.\n\nTo get Citeproc-JSON use `--json` or `-j`.\n\nWhere the journals provide the DOI in their website's metadata it is also\npossible to use the article website URL:\n```\n$ cite https://journals.aps.org/pr/abstract/10.1103/PhysRev.48.73\n\nEinstein, A., & Rosen, N. (1935). The Particle Problem in the General Theory of Relativity. Physical Review, 48(1), 73\u201377. doi:10.1103/physrev.48.73\n```\n\nTo add to an entry to an existing BibTex file:\n\n```\ncite --bibtex https://doi.org/10.1103/PhysRev.48.73 >> bibliography.bib\n```\n\nFor the full list of options, see\n```\n$ cite --help\n```\n\nUses Crosscite [DOI Content Negotiation](https://citation.crosscite.org/).\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Command line tool to turn DOIs into citations",
    "version": "0.7.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "ba553810585c9bd44cf90dd2ad3126ef",
                "sha256": "61b0908bb8277b925c58967cf115de3435d8d294341437d07487f3a1e1b15309"
            },
            "downloads": -1,
            "filename": "cite-0.7.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ba553810585c9bd44cf90dd2ad3126ef",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 5137,
            "upload_time": "2021-04-08T11:10:33",
            "upload_time_iso_8601": "2021-04-08T11:10:33.305093Z",
            "url": "https://files.pythonhosted.org/packages/2d/fd/e05c78e1e98f9fc87f851e660b3c37be56b1d7a6de3de846d653e4e97b6b/cite-0.7.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5799487046dc84872ed5482bc930a75b",
                "sha256": "047bfe815f2bd26dbb8740a518dcb326368c79a0304d5571ab99211a676b426f"
            },
            "downloads": -1,
            "filename": "cite-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5799487046dc84872ed5482bc930a75b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 20313,
            "upload_time": "2021-04-08T11:10:34",
            "upload_time_iso_8601": "2021-04-08T11:10:34.015281Z",
            "url": "https://files.pythonhosted.org/packages/17/42/e86284c9e3c3ded703e500e9a71dbc213d3b18162d82f29a936d9973116a/cite-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-04-08 11:10:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "rgieseke",
    "error": "Could not fetch GitHub repository",
    "lcname": "cite"
}
        
Elapsed time: 0.26771s