暫無描述

Fabian Peter Hammerle 49464eeb26 readme: document reason for archiving repo 1 年之前
.github 9cd3a7c057 pipeline: remove coveralls ("422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs", `pytest --cov-fail-under=100 …` in place) 1 年之前
pubmed_bibtex b3d5a8ccdb fix signature of `_TeXMedHtmlParser.error` to avoid W0221/arguments-differ warning after upcoming pylint upgrade 2 年之前
tests 30b274aa28 pylint: enable various optional checks 2 年之前
.gitignore b5c5646230 added setup.py & pipenv for development 5 年之前
.pylintrc 30b274aa28 pylint: enable various optional checks 2 年之前
CHANGELOG.md bb464bdeaf retry if server's response does not include bibtex entry 2 年之前
COPYING 06fb10c286 added GPLv3+ license 5 年之前
MANIFEST.in 06fb10c286 added GPLv3+ license 5 年之前
Pipfile 527cf15655 dev env: re-add exceptiongroup, tomli & wrapt to fix pipeline 2 年之前
Pipfile.lock 49074a6531 Bump mypy from 0.990 to 0.991 (#49) 2 年之前
README.rst 49464eeb26 readme: document reason for archiving repo 1 年之前
mypy.ini 8327983371 fix type hints; add mypy to test pipeline 2 年之前
setup.py c79bc34460 test against python3.10 2 年之前

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://ipfs.io/ipfs/QmP8k5H4MkfspFxQxdL2kEZ4QQWQjF8xwPYD35KvNH4CA6/20230429T090002+0200/s3.amazonaws.com/assets.coveralls.io/badges/coveralls_100.svg
:target: https://github.com/fphammerle/pubmed-bibtex/actions
.. 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/

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

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