No Description

dependabot[bot] a6dc15b60f Bump pylint from 2.14.2 to 2.14.3 6 days ago
.github 48b61aeead Bump actions/setup-python from 3 to 4 2 weeks ago
pubmed_bibtex b3d5a8ccdb fix signature of `_TeXMedHtmlParser.error` to avoid W0221/arguments-differ warning after upcoming pylint upgrade 3 months ago
tests 30b274aa28 pylint: enable various optional checks 3 weeks ago
.gitignore b5c5646230 added setup.py & pipenv for development 3 years ago
.pylintrc 30b274aa28 pylint: enable various optional checks 3 weeks ago
CHANGELOG.md bb464bdeaf retry if server's response does not include bibtex entry 3 months ago
COPYING 06fb10c286 added GPLv3+ license 2 years ago
MANIFEST.in 06fb10c286 added GPLv3+ license 2 years ago
Pipfile 100ae8d335 dev env: upgrade black 2 months ago
Pipfile.lock a6dc15b60f Bump pylint from 2.14.2 to 2.14.3 6 days ago
README.rst ef00c8cd67 format code with black 5 months ago
mypy.ini 8327983371 fix type hints; add mypy to test pipeline 5 months ago
setup.py c79bc34460 test against python3.10 5 months ago

README.rst

pubmed-bibtex
=============

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
.. image:: https://github.com/fphammerle/pubmed-bibtex/workflows/tests/badge.svg
:target: https://github.com/fphammerle/pubmed-bibtex/actions
.. image:: https://coveralls.io/repos/github/fphammerle/pubmed-bibtex/badge.svg?branch=master
:target: https://coveralls.io/github/fphammerle/pubmed-bibtex?branch=master
.. image:: https://img.shields.io/pypi/v/pubmed-bibtex.svg
:target: https://pypi.org/project/pubmed-bibtex/#history
.. image:: https://img.shields.io/pypi/pyversions/pubmed-bibtex.svg
:target: https://pypi.org/project/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/

Install
-------

.. code:: sh

pip3 install --user pubmed-bibtex

Usage
-----

.. code:: sh

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

or

.. code:: python

from pubmed_bibtex import bibtex_entry_from_pmid
print(bibtex_entry_from_pmid(123456789))

Tests
-----

.. code:: sh

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