Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

fphammerle/pubmed-bibtex

Repository files navigation

pubmed-bibtex

Python Script & Module to Generate BibTeX Entries for PubMed Publications

Utilizes the API of TeXMed, a BibTeX interface for PubMed.

TeXMed was written by Arne Muller https://www.bioinformatics.org/texmed/

pubmed-bibtex is currently unmaintained & archived cause TeXMed's exporter skips german umlaute & possibly other non-ascii characters (see example)

Install

pip3 install --user pubmed-bibtex

Usage

$ pubmed-bibtex 31025164
@Article{pmid31025164,
   Author="...",
   Title="...",
   Journal="...",
   ...
}

or

from pubmed_bibtex import bibtex_entry_from_pmid
print(bibtex_entry_from_pmid(123456789))

Tests

pip3 install --user pipenv
git clone https://github.com/fphammerle/pubmed-bibtex.git
cd pubmed-bibtex
pipenv run pylint freesurfer_surface
pipenv run pytest --cov=freesurfer_surface