Skip to main content

Convert live web pages to wireframe placeholders and screenshots

Project description

wireframe-it

CLI and library to convert live web pages into wireframe-style HTML and PNG screenshots.

Quick start

pip install wireframe-it
playwright install chromium  # or msedge if you prefer
wireframe-it https://pypi.tw.martin98.com/

This writes wireframes/pypi.org/wireframe.html plus three screenshots: desktop, tablet, and mobile. Re-run with --force to regenerate the wireframe even if a cached wireframe.html already exists.

How it works

  • Downloads the page HTML
  • Replaces images with bundled placeholders (SVG/PNG/JPG)
  • Fills headings and text blocks with Lorem Ipsum based on their length/context (aside headings are labeled)
  • Adds a <base> tag so remote CSS and assets still resolve
  • Renders the transformed page in Playwright and saves screenshots at multiple viewports
  • Formats the generated wireframe.html for readability (structure unchanged)
  • Reuses an existing wireframe.html for screenshots unless --force is provided

CLI usage

wireframe-it <url> [options]

Options:
	-o, --output PATH     Output folder (default: wireframes)
	--browser TEXT        chromium | msedge (default: chromium)
	--screenshots / --no-screenshots  Capture PNGs (default: on)
	--keep-remote-assets / --offline Keep remote CSS/JS (default) or strip for offline preview
	--timeout INTEGER     HTTP timeout in seconds (default: 15)
	--force               Refetch and regenerate wireframe.html even if one already exists

Examples:

wireframe-it https://www.bhf.org.uk -o output
wireframe-it https://example.com --browser msedge --no-screenshots
wireframe-it https://example.com --offline  # strips remote CSS/JS if you need a fully self-contained wireframe
wireframe-it https://www.utcsheffield.org.uk --force  # refresh a cached UTC Sheffield wireframe

Example outputs (UTC wireframes)

Sample previews captured at common breakpoints for UTC-related pages (click to view full size, visit source for original):

Development

python -m venv .venv
source .venv/bin/activate
pip install -e .[all]
playwright install chromium

pytest

Notes

  • Screenshots are taken at desktop (1280x720), tablet (820x1180), and mobile (390x844).
  • Use --browser msedge if you have Edge installed via Playwright (playwright install msedge).
  • Placeholder images and Lorem Ipsum generation are bundled; no external assets required for the wireframe content itself.
  • If Playwright reports the browser is missing, run playwright install chromium (or playwright install msedge).

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

wireframe_it-0.1.1.tar.gz (558.7 kB view details)

Uploaded Source

Built Distribution

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

wireframe_it-0.1.1-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

Details for the file wireframe_it-0.1.1.tar.gz.

File metadata

  • Download URL: wireframe_it-0.1.1.tar.gz
  • Upload date:
  • Size: 558.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for wireframe_it-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cd0c1b472d794a9949bdc436b0ac7d171646d73afa6df5576565ef8cf2468510
MD5 bd1762b9076782a92aefdf8a3bbf1ddf
BLAKE2b-256 9311e14f3c2abe739d89f33e8359d9e6922386f645fe42d2c9ca26b0bdcfab7f

See more details on using hashes here.

File details

Details for the file wireframe_it-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wireframe_it-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for wireframe_it-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb236150a7898c654117f95937a294e6eb14d8c940ea645eef65f2c84cd613e6
MD5 e9acf73131340a4c048580568f26dbdd
BLAKE2b-256 9c0edff8767f74718ed4cc41c52e7d6e8405e926aca715eaaadeade68e4c45ce

See more details on using hashes here.

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