Registry / devops / doc2dict

doc2dict

JSON →
library0.7.1pypypi✓ verified 68d ago

A Python library for extracting structured data from documents (e.g., docx, pdf) into Python dictionaries. Current version 0.7.1, with sporadic updates.

pip install doc2dict
INSTALL
IMPORT
SIG · DOC2DICT
D
doc2dict
devopspythonv0.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

convert_instructions_to_dict
from doc2dict import convert_instructions_to_dict
from doc2dict import DocumentToDict
html2dict
from doc2dict import html2dict
pdf2dict
from doc2dict import pdf2dict

Extract document content (e.g., docx) into a Python dictionary. Supports docx, pdf, and other formats depending on installed extras.

from doc2dict import DocumentToDict from doc2dict import convert # Using class doc = DocumentToDict('example.docx') data = doc.to_dict() print(data) # Using function data = convert('example.docx') print(data)
Debug
Known issues
breakingVersion 0.7.0 changed the API: `DocumentToDict.to_dict()` now returns a dict instead of a string. If upgrading from 0.6.x, existing code relying on string output will break.
fix
If you need a string, call `str(DocumentToDict(...).to_dict())`.
affects: >=0.7.0
deprecatedThe function `convert` in doc2dict<0.7.0 used to accept a `format` parameter; it is now ignored. Use explicit format handling if needed.
fix
Remove the `format` argument when calling `convert`; it is auto-detected.
affects: <0.7.0
gotchaThe library does not handle PDFs out of the box; `pdfminer.six` must be installed separately as an extra (e.g., `pip install doc2dict[pdf]`).
fix
Install the pdf extra: `pip install doc2dict[pdf]`.
affects: >=0.7.0
Upgrade
Version history
0.7.1latest on PyPI · released Feb 3, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

doc2dict — pip install doc2dict · libregistry