Generate BibTeX reference objects from DOIs and strings
Project description
bibtex-gen
Overview
Generate BibTeX reference objects from DOIs and strings
Getting Started
Install bibtex_gen
:
pip install bibtex_gen
A simple example:
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.
Author
Created by Nick DeRobertis. MIT License.
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
bibtex_gen-0.2.0.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for bibtex_gen-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd4147552d9c6897dfeb7f121b89d15b2d92a9d5348161f7ec8075d77b4b881 |
|
MD5 | aab32e84077a03b21b6d621af91e9555 |
|
BLAKE2b-256 | d4f34476d0644ca5a7736bf793c43f996212fc7a6333a57934f0b9fa2fcfab5c |