swh.indexer.citation.bibtex module#

class swh.indexer.citation.bibtex.BibTeXWithMacroWriter(encoding=None)[source]#

Bases: Writer

quote(s)[source]#
>>> w = BibTeXWithMacroWriter()
>>> print(w.quote(f'{MACRO_PREFIX}:jan'))
jan
swh.indexer.citation.bibtex.codemeta_person_to_pybtex_person(person: CodeMetaPerson) Person | None[source]#
swh.indexer.citation.bibtex.codemeta_data_to_bibtex(codemeta_data: CodeMetaData) str[source]#