Get a formatted pdf filename for a paper specified by a DOI.
$ papertitle https://doi.org/10.1038/nature05116
Drake_2006_Electron_Acceleration_From_Contracting_Magnetic_Islands_During_Reconnection.pdfThe format is: AuthorSurname_Year_Title_Of_Paper.pdf
$ papercitation https://doi.org/10.1038/nature05116
Drake et al - 2006 - Electron acceleration from contracting magnetic islands during reconnection$ paperformatted https://doi.org/10.1038/nature05116
Drake, J. F., Swisdak, M., Che, H., & Shay, M. A. (2006). Electron acceleration from contracting magnetic islands during reconnection. Nature, 443(7111), 553–556. https://doi.org/10.1038/nature05116python>=3.10typer>=0.9requests>=2.30pytest>=7.3
$ git clone git@github.com:jmsplank/paper-title.git
$ cd paper_titles
$ pip install .This project usses pytest to test the code.
$ pytestTo get a coverage report, use:
pytest --cov-report=html --covThis generates coverage html, view it by opening ./htmlcov/index.html.