Registry / data / antiword

antiword

JSON →
library0.1.0pypypi✓ verified 80d ago

A Python library to convert MS Word .doc files to plain text, wrapping the external antiword command-line tool. Version 0.1.0 (stable).

pip install antiword
INSTALL
IMPORT
SIG · ANTIWORD
A
antiword
datapythonv0.1.0
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

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

main
from antiword import main
from antiword import antiword
run
from antiword import run
ArgumentParser
from antiword import ArgumentParser

Convert a .doc file to text; requires antiword binary installed.

from antiword import antiword text = antiword('document.doc') print(text)
Debug
Known issues
gotchaThe library is a thin wrapper and requires the `antiword` command-line tool to be installed on the system (e.g., via `apt install antiword`).
fix
Install antiword system package: `brew install antiword` (macOS) or `apt-get install antiword` (Debian/Ubuntu).
affects: all
breakingThe package `antiword` on PyPI (version 0.1.0) is not the same as the commonly known `antiword` CLI tool. It is a Python wrapper with a different API than older third-party wrappers.
fix
Use `from antiword import antiword`; not `import antiword` or other imports.
affects: 0.1.0
gotchaOnly supports .doc files (not .docx). Attempting to convert .docx will raise an error.
fix
Ensure input files are .doc format, or use a library like `python-docx` for .docx.
affects: all
Upgrade
Version history
0.1.0latest on PyPI · released Oct 19, 2021
Audit
Dependencies
antiword (system binary)requiredThe Python library is a wrapper; requires the antiword command-line tool installed
Agent activity
54 hits · last 30 days
node
48
OpenAI (training)
1
Resources