bibgen

Bibgen is a Python library and an associated script that allow styled citations and bibliography generation using external bibliographic databases. It supports databases such as BibTeX, JSON or Mendeley, and generates styled citations and bibliography sections for several document types including DocBook and reStructuredText, with easy integration into Sphinx.

Textual citations and entries in the generated bibliographies are styled using rules found in CSL stylesheets. Thousands of those stylesheets are readily available, for instance through the Zotero style repository.

Bibgen is available under the Simplified BSD License.

Example: DocBook

Using:

$ bibgen --mendeley -o doc-with-bib.xml doc.xml

will replace citations such as

multi-scale models <citation>Bayerl2004;Tlapale2011</citation>

by

multi-scale models <citation>(<link linkend="bayerl2004">Bayerl
&amp; Neumann 2004</link>; <link linkend="tlapale2010">Tlapale
et al. 2010</link>)</citation>

and fill the <bibliography/> node with cooked <bibliomixed/> elements.

Documentation

Requirements

In addition to a standard Python installation, bibgen requires the citeproc-py library to be available (support for CSL, JSON and minimalist BibTeX databases). Additionally, the following optional library may be useful:

bibtexparser

For enhanced BibTeX support.

Download

bibgen-0.2.tar.xz (2015-05-21) Support for Python 2 and reStructuredText | archives

Project website

You may prefer to use:

pip install --user bibgen

to install it with its dependencies from PyPI.