README.rst 1.4 KB

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