Skip to main content

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.

Metadata

Release files for bibtex-gen 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bibtex-gen 0.2.0
File Size Uploaded
bibtex_gen-0.2.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bibtex-gen 0.2.0
File Interpreter ABI Platform
bibtex_gen-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / bibtex_gen-0.2.0.tar.gz

Download URL bibtex_gen-0.2.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bcb8b43af074a35d50718a8bb3469c050fe3dd9563b6e5be4a31411468ba7cfa
BLAKE2b-256 checksum
How to use checksums
276e8406110f9fb028808fb96f81a7972c1b820d95f6b2222b478a091ce43e59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / bibtex_gen-0.2.0-py3-none-any.whl

Download URL bibtex_gen-0.2.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bd4147552d9c6897dfeb7f121b89d15b2d92a9d5348161f7ec8075d77b4b881
BLAKE2b-256 checksum
How to use checksums
d4f34476d0644ca5a7736bf793c43f996212fc7a6333a57934f0b9fa2fcfab5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page