Skip to main content

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: str = '9871'
mendeley_client_secret: str = 'sdfa4dfDSSDFasda'

# Keys are name by which reference will be accessed, values are DOIs
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 = bibtex_gen.item_accessor_doi_dict_to_bib_tex(item_doi_dict, mendeley_client_id, mendeley_client_secret)

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bibtex_gen-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file bibtex_gen-0.1.2.tar.gz.

File metadata

  • Download URL: bibtex_gen-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bibtex_gen-0.1.2.tar.gz
Algorithm Hash digest
SHA256 29a508aa0701a8c2ba8d891d18b7935838787357c91f899b962ade3fdb6ced09
MD5 4216ee95f86ba5bb1a441dd1ecd578c3
BLAKE2b-256 312555a3f0c471be494cff7bcce40650e4cc534fdbf73e843dde732976f85b5e

See more details on using hashes here.

File details

Details for the file bibtex_gen-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bibtex_gen-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bibtex_gen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac9583ecd89f8e84218169455b69113789e48ddedb162e0581ce5eb8852a792a
MD5 b54cdb8ce590612247b09d836f887f9f
BLAKE2b-256 0d57fafc085587201caf7b41e719a821fc850a3d17b1ec28bfe3b9d57de0a8f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page