pybtex-docutils
A docutils backend for pybtex.
What it is and what it does
pybtex-docutils is a docutils backend that allows BibTeX bibliography files to be processed and rendered as citations within reStructuredText documents. It exposes a simplebibliography directive that generates formatted citations for every entry in a specified .bib file, placing them at the document location you choose. The package is designed for straightforward single-document workflows that do not require Sphinx; for Sphinx projects, the documentation recommends using sphinxcontrib-bibtex instead.
The package depends on docutils and pybtex, and requires you to write a custom command script to register the directive with docutils. Citation keys from your .bib file become the labels in your document, with the constraint that keys cannot contain colons to remain valid docutils citation labels.
Use it for:
- Generate bibliographies in standalone reStructuredText documents without Sphinx infrastructure
- Render BibTeX citations in simple documentation projects that use docutils directly
- Convert academic papers or technical reports written in reStructuredText with BibTeX references to HTML
- Add citation support to custom docutils-based documentation pipelines
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates BibTeX citations into docutils-generated documentation, enabling bibliography rendering in reStructuredText documents without Sphinx.
Yes, if you need BibTeX citations in pure docutils workflows. Install friction is low and the license is permissive. However, maintenance is aging (last release 1088 days ago); verify compatibility with your docutils version before relying on it in production.
Install
pybtex-docutils on PyPI
pip
pip install pybtex-docutilsuv
uv add pybtex-docutilspoetry
poetry add pybtex-docutilsInstalling pybtex-docutils
Before you install
Low install friction with two straightforward dependencies. Maintenance is aging—last release was 1088 days ago, though the repository remains active with a recent commit and not archived.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal constraints.
Quickstart
pip install pybtex-docutils
from docutils.parsers.rst import directives
from docutils.core import publish_cmdline
from pybtex_docutils import SimpleBibliography
directives.register_directive("simplebibliography", SimpleBibliography)
publish_cmdline(writer_name='html5')
You must write a custom command script to register the directive; docutils does not provide a built-in extension mechanism.
Verify before relying
- Whether the package works reliably with docutils versions released after August 2023
- Performance characteristics with large bibliography files or complex citation schemes
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — docutils, pybtex |
| Maintenance | aging — 1,088 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 884,450/month — #4,814 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pybtex_docutils-1.0.3-py3-none-any.whl
Tags
More XML packages
Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
lxmllxml provides Python bindings to libxml2 and…
permissive · top 1,000 on PyPI
defusedxmlDefusedxml hardens Python's standard XML…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
xmltodictConverts XML to Python dictionaries and back,…
permissive · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
sphinxcontrib-bibtexA Sphinx extension that enables BibTeX-style…
permissive · top 5,000 on PyPI
pybtexPybtex reads bibliography data from BibTeX,…
permissive · top 5,000 on PyPI
citeproc-pyciteproc-py processes Citation Style Language…
permissive · top 15,000 on PyPI
sphinx_mdincludeSphinx extension that lets you include and…
permissive · top 15,000 on PyPI
bibtexparserParses BibTeX files into Python data…
copyleft · top 5,000 on PyPI
sphinxcontrib-youtubeAdds Sphinx directives to embed YouTube, Vimeo,…
permissive · top 15,000 on PyPI
recommonmarkEnables Sphinx and Docutils projects to parse…
permissive · top 5,000 on PyPI
rich-rstRenders reStructuredText documents as Rich…
permissive · top 1,000 on PyPI