Skip to main content

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-utils for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

headless_word-0.1.1.tar.gz (521.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

headless_word-0.1.1-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

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

Hashes for headless_word-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4da6e7f94c1de9bdf95c7a26398550a3abf003d855673f3e5923b37db6ee30c7
MD5 9e4369bc87d5374359a372d1ead9e417
BLAKE2b-256 c620fb5ef5d7c6d39b6fd8b37dc35d8366ebec61cd3fdccc28158cc3c3453a21

See more details on using hashes here.

Provenance

The following attestation bundles were made for headless_word-0.1.1.tar.gz:

Publisher: publish.yml on hewliyang/headless-word

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for headless_word-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 918ff37f5251e2786a41b0c3d5ed953c99537132eaebb02498f9afa7120f56f3
MD5 d85e2898c90cf29a81836c68431e9f8e
BLAKE2b-256 fbf5481d5cdb2fd8283aec2fbb79eb3be07c4ebc3f6a5c077acdf33390b526a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for headless_word-0.1.1-py3-none-any.whl:

Publisher: publish.yml on hewliyang/headless-word

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page