Word document automation tool for agents in headless environments
Project description
headless-word
Word document automation via LibreOffice for headless environments.
Install
uv tool install headless-word
Agent Skill
npx skills add hewliyang/headless-word
Requirements
- Python 3.10+
- LibreOffice 25.2+ (with Writer)
poppler-utilsfor screenshots (pdftoppm)
Quick Start
headless-word check # verify LibreOffice is installed
headless-word start # start the daemon
headless-word new doc.docx # create a new document → session ID
headless-word get-document-text <sid>
headless-word screenshot <sid> --page 1 --out page1.png
headless-word stop # stop the daemon
Commands
headless-word <command> [options]
Daemon:
start Start the LibreOffice daemon
stop Stop the daemon
status Check daemon status
check Check environment setup
Sessions:
open Open a document
new Create a new document
save Save a document
close Close a session
list List open sessions
export-pdf Export as PDF
Reading:
get-document-text Get document text (paragraphs, styles, lists)
get-document-structure Get document structure (headings, tables, sections)
get-ooxml Extract OOXML for inspection
screenshot Render a page to PNG
Writing:
execute Execute Python/UNO code inside LibreOffice
insert-ooxml Insert raw OOXML elements into document
Live Preview:
watch Live document viewer with auto-reload
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file headless_word-0.1.1.tar.gz.
File metadata
- Download URL: headless_word-0.1.1.tar.gz
- Upload date:
- Size: 521.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4da6e7f94c1de9bdf95c7a26398550a3abf003d855673f3e5923b37db6ee30c7
|
|
| MD5 |
9e4369bc87d5374359a372d1ead9e417
|
|
| BLAKE2b-256 |
c620fb5ef5d7c6d39b6fd8b37dc35d8366ebec61cd3fdccc28158cc3c3453a21
|
Provenance
The following attestation bundles were made for headless_word-0.1.1.tar.gz:
Publisher:
publish.yml on hewliyang/headless-word
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
headless_word-0.1.1.tar.gz -
Subject digest:
4da6e7f94c1de9bdf95c7a26398550a3abf003d855673f3e5923b37db6ee30c7 - Sigstore transparency entry: 1219425897
- Sigstore integration time:
-
Permalink:
hewliyang/headless-word@155bf053ef0cc6be59b2af03e031f890a84382a2 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hewliyang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@155bf053ef0cc6be59b2af03e031f890a84382a2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file headless_word-0.1.1-py3-none-any.whl.
File metadata
- Download URL: headless_word-0.1.1-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
918ff37f5251e2786a41b0c3d5ed953c99537132eaebb02498f9afa7120f56f3
|
|
| MD5 |
d85e2898c90cf29a81836c68431e9f8e
|
|
| BLAKE2b-256 |
fbf5481d5cdb2fd8283aec2fbb79eb3be07c4ebc3f6a5c077acdf33390b526a5
|
Provenance
The following attestation bundles were made for headless_word-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on hewliyang/headless-word
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
headless_word-0.1.1-py3-none-any.whl -
Subject digest:
918ff37f5251e2786a41b0c3d5ed953c99537132eaebb02498f9afa7120f56f3 - Sigstore transparency entry: 1219425921
- Sigstore integration time:
-
Permalink:
hewliyang/headless-word@155bf053ef0cc6be59b2af03e031f890a84382a2 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hewliyang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@155bf053ef0cc6be59b2af03e031f890a84382a2 -
Trigger Event:
release
-
Statement type: