librosa.util.cite#
- librosa.util.cite(version=None, *, bib=False)[source]#
Print the citation information for librosa.
- Parameters:
- versionstr or None
The version of librosa to cite. If None, the current version is used.
- bibbool
If True, return the BibTeX entry for the given version of librosa. If False (default), return the DOI for the given version of librosa.
- Returns:
- doistr
The DOI for the given version of librosa.
- Raises:
- ParameterError
If the requested version is not found in the citation index.
Examples
>>> librosa.cite("0.10.1") "https://doi.org/10.5281/zenodo.8252662"
>>> bib = librosa.cite("0.11.0", bib=True) >>> print(bib[:140], "...") @misc{https://doi.org/10.5281/zenodo.15006942, doi = {10.5281/ZENODO.15006942}, url = {https://zenodo.org/doi/10.5281/zenodo.15006942}, ...