Skip to main content

A command line tool to get bibtex information from DOIs and PDFs

Project description

kbib: A command line tool to get bibtex information from DOIs and PDFs.

Alt text Alt text Alt text Alt text Alt text Alt text

⚡ Features

  1. Get bibtex information from DOI.
  2. Get bibtex information from article pdf.
  3. Get full list of references of an article as a .bib file.
  4. Directly rename pdf files with bibtex information.
  5. Find duplicate bib entries in bibtex files.

🛠️ Installation

Download and install the latest package from the release section or directly by pip

pip install kbib

For parsing bibtex information from PDF files, optional dependencies need to be installed

pip install kbib['pdf']

🚀 Usage

Use the command line tool kbib as

kbib [-h] [-bib DOI] [-ref DOI] [-pdf [PDF [PDF ...]]] [-ren [PDF [PDF ...]]] [-dup [BIB [BIB ...]]] [-o DOI]
Argument Description
-bib DOI to get bibtex entry
-ref DOI to get bibtex entries for all the references
-pdf PDF file name(s) to get bibtex info
-ren PDF file name(s) to rename with bibtex info
-dup Bib file name(s) to find duplicates.
-o Output bib file
  • Get bibtex from a DOI
    kbib -bib https://doi.org/10xxxxxx
    
  • Get bibtex from a DOI and store in a file 'ref.bib'
    kbib -bib https://doi.org/10xxxxxx -o ref.bib
    
  • Get the full reference list of an article as bibtex entries and save as ref.bib
    kbib -ref https://doi.org/10xxxxxx -o ref.bib
    
  • Get bibtex from a PDF named article.pdf
    kbib -pdf article.pdf
    
  • Get bibtex from all pdfs in the current folder
    kbib -pdf *.pdf
    
  • Rename pdf files with bibtex information
    kbib -ren article.pdf
    # or
    kbib -ren *.pdf
    
  • Find duplicate bib entries in bibtex files.
    kbib -dup article_1.bib article_2.bib
    

⚓Limitation:

  • kbib parses DOI information from Crossref API. So if the article is not indexed in Crossref database this tool will fail to get the necessary information. Also the API may temporarily block requests from an IP if a large number of queries are made within a short period of time.
  • Special/Latex characters in the title may gets messed up during the API call. One needs to be careful using title field for the bibtex created by kbib.
  • For bibtex keys and renaming files, kbib uses format as <Short Journal Name>_<Volume>_<Year>_<Last name of first author>, which is presently hardcoded in the tool. Therefore, one can not use any desired format through the command line.

⏳ Work-in-Progress:

  • Concurrent/Parallel API calls for faster parsing of bibtex information.

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

kbib-0.1.7.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

kbib-0.1.7-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file kbib-0.1.7.tar.gz.

File metadata

  • Download URL: kbib-0.1.7.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for kbib-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c40624f42e078d4d12d04e0e7a7b158b6d400506d1c307d3acbd3b4c6bb40a34
MD5 0bb86a3cf9eb388ae9d496206d50ef39
BLAKE2b-256 eb90b75d031dc0b40a89ef91ea29fa3ad843c931257e749c803fed3d2290bbca

See more details on using hashes here.

Provenance

File details

Details for the file kbib-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: kbib-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for kbib-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 69b4896cc4339c8431a6cb053518631c320946698085a498c65c18eb8114b1a8
MD5 3dc0d79e8cac54f3e2b93ba610af5f1d
BLAKE2b-256 fefe610a5908e6ca624f0ccf92ffc37400301a5e37fa58e6185f84979497f464

See more details on using hashes here.

Provenance

Supported by

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