puz

Crates.iopuz
lib.rspuz
version0.1.2
created_at2025-10-21 01:01:28.589631+00
updated_at2025-10-21 01:01:28.589631+00
descriptionCommand line application for processing and interacting with .puz crossword puzzle files
homepagehttps://github.com/mwln/puz.rs/tree/main/cli
repositoryhttps://github.com/mwln/puz.rs
max_upload_size
id1893075
size16,374
marty (mwln)

documentation

README

puz

CLI tool for processing .puz crossword puzzle files and outputting structured JSON.

Installation

cargo install puz

Usage

# Parse a single file to JSON
puz puzzle.puz

# Parse with pretty formatting
puz puzzle.puz --pretty

# Parse single file without array wrapper
puz puzzle.puz --single --pretty

# Parse multiple files
puz puzzle1.puz puzzle2.puz --pretty

# Save to file
puz puzzle.puz --output output.json

Output Format

The tool outputs JSON with the complete puzzle structure including:

  • Puzzle metadata (title, author, dimensions, etc.)
  • Grid data (solution and blank grids)
  • Clues (across and down)
  • Extensions (rebus, circles, given squares)

Options

  • -p, --pretty - Pretty-print JSON output
  • -s, --single - Output single object instead of array for single file
  • -o, --output <FILE> - Write to file instead of stdout
Commit count: 0

cargo fmt