Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickderobertis/bibtex-gen
Generate BibTeX reference objects from DOIs and strings
https://github.com/nickderobertis/bibtex-gen
Last synced: about 3 hours ago
JSON representation
Generate BibTeX reference objects from DOIs and strings
- Host: GitHub
- URL: https://github.com/nickderobertis/bibtex-gen
- Owner: nickderobertis
- License: mit
- Created: 2020-01-22T09:46:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T21:35:11.000Z (about 2 years ago)
- Last Synced: 2024-11-17T05:38:02.472Z (2 months ago)
- Language: Python
- Size: 3.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![](https://codecov.io/gh/nickderobertis/bibtex-gen/branch/master/graph/badge.svg)](https://codecov.io/gh/nickderobertis/bibtex-gen)
# bibtex-gen
## Overview
Generate BibTeX reference objects from DOIs and strings
## Getting Started
Install `bibtex_gen`:
```
pip install bibtex_gen
```A simple example:
```python
import bibtex_gen
# Note: these are fake credentials. You need to sign up for a Mendeley account, go to Mendeley Developers,
# and create an "app" which will give you this info.
mendeley_client_id = '9871'
mendeley_client_secret = 'sdfa4dfDSSDFasda'
btg = bibtex_gen.BibTexGenerator(mendeley_client_id, mendeley_client_secret)
# This object contains all the article data and can be used directly with pyexlatex
bibtex_obj = btg.generate('10.1111/j.1540-6261.2011.01679.x', 'da-engelberg-gao-2011')
# Or, multiple at once with a dict
item_doi_dict = {
'da-engelberg-gao-2011': '10.1111/j.1540-6261.2011.01679.x',
'barber-odean-2008': '10.1093/rfs/hhm079',
}
# These objects contain all the article data and can be used directly with pyexlatex
bibtex_objs = btg.generate_from_dict(item_doi_dict)
```## Links
See the
[documentation here.](
https://nickderobertis.github.io/bibtex-gen/
)## Author
Created by Nick DeRobertis. MIT License.