Skip to main content

No project description provided

Project description

Overview

A Python library and command-line utility to rasterize an HTML page into a PNG file.

TL;DR

Installation:

pip install html2png

Command-line usage:

html2png {URL} > output.png

Python usage:

import html2png

png = html2png.render('<html><body><p>Hello, world!</p></body></html>')
png = html2png.render_url('http://example.com/')

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

html2png-0.0.2.tar.gz (15.0 kB view details)

Uploaded Source

File details

Details for the file html2png-0.0.2.tar.gz.

File metadata

  • Download URL: html2png-0.0.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for html2png-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e9f1da0c33d6116d5565f4d9a819e3a3e5e35ef394fdd040f32190f96b5b9041
MD5 1c2d51960d22d97944880a56c9c57516
BLAKE2b-256 0fad33a328c81cb7c53b1f3d9ef47efcf2b700bfd9c4ae34a624b716b1b5c9dd

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