README.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. pubmed-bibtex
  2. =============
  3. .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  4. :target: https://github.com/psf/black
  5. .. image:: https://github.com/fphammerle/pubmed-bibtex/workflows/tests/badge.svg
  6. :target: https://github.com/fphammerle/pubmed-bibtex/actions
  7. .. image:: https://coveralls.io/repos/github/fphammerle/pubmed-bibtex/badge.svg?branch=master
  8. :target: https://coveralls.io/github/fphammerle/pubmed-bibtex?branch=master
  9. .. image:: https://img.shields.io/pypi/v/pubmed-bibtex.svg
  10. :target: https://pypi.org/project/pubmed-bibtex/#history
  11. .. image:: https://img.shields.io/pypi/pyversions/pubmed-bibtex.svg
  12. :target: https://pypi.org/project/pubmed-bibtex/
  13. Python Script & Module to Generate BibTeX Entries for PubMed
  14. Publications
  15. Utilizes the API of TeXMed, a BibTeX interface for PubMed.
  16. TeXMed was written by Arne Muller https://www.bioinformatics.org/texmed/
  17. Install
  18. -------
  19. .. code:: sh
  20. pip3 install --user pubmed-bibtex
  21. Usage
  22. -----
  23. .. code:: sh
  24. $ pubmed-bibtex 31025164
  25. @Article{pmid31025164,
  26. Author="...",
  27. Title="...",
  28. Journal="...",
  29. ...
  30. }
  31. or
  32. .. code:: python
  33. from pubmed_bibtex import bibtex_entry_from_pmid
  34. print(bibtex_entry_from_pmid(123456789))
  35. Tests
  36. -----
  37. .. code:: sh
  38. pip3 install --user pipenv
  39. git clone https://github.com/fphammerle/pubmed-bibtex.git
  40. cd pubmed-bibtex
  41. pipenv run pylint freesurfer_surface
  42. pipenv run pytest --cov=freesurfer_surface