Proposing a new guideline for defining software citations, and a new builtin function for retrieving citations.
Packages can implement whatever they want in __citation__
: This can be a DOI, bibtex entry, list of bibtex entries, or custom object.
For example:
>>> import astropy >>> astropy.__citation__ https://doi.org/10.1051/0004-6361/201322068 >>> citation(astropy) https://doi.org/10.1051/0004-6361/201322068
Calling citation()
with no argument returns the citations of all imported modules as a dictionary keyed by the package name:
>>> import astroML >>> citations = citation() >>> print(citations['astroML']) @INPROCEEDINGS{astroML, author={{Vanderplas}, J.T. and {Connolly}, A.J. and {Ivezi{'c}}, { Z}. and {Gray}, A.}, booktitle={Conference on Intelligent Data Understanding (CIDU)}, title={Introduction to astroML: Machine learning for astrophysics}, month={Oct.}, pages={47 -54}, doi={10.1109/CIDU.2012.6382200}, year={2012} } >>> print(citations['citationpep']) # included as an example This is a demo citation! See https://github.com/adrn/CitationPEP/blob/master/citationpep/__init__.py
See the NOTES for more information.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4