Skip to main content

HTML to label png converter

Project description

Label converter Build Status

Description

label_converter is a Python library to turn HTML string to png file for label printing.

Usage

from from label_converter import label_converter

header = '<p>I\'m head</p>'
body = '<p>I\'m <strong>label</strong> <span style="font-size: 30px; color: rgb(184, 49, 47);">body</span></p>'
footer = '<p>I\'m footer</p>
width = 600
height = 500

label_converter.create(header, body, footer, width, height)

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

label_converter-0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

label_converter-0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file label_converter-0.2.tar.gz.

File metadata

  • Download URL: label_converter-0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for label_converter-0.2.tar.gz
Algorithm Hash digest
SHA256 1e14282d4a967ccc0e0ac4dafd7f9b83c2054c1f59887f1a6550725d755ef3c1
MD5 de8c3b9bc1169e9f73384a4c2920d15b
BLAKE2b-256 e524586fe600c634c19c8d225fe2df58bdcaf4d23b3c7c61c0c8244cc7b6ece1

See more details on using hashes here.

File details

Details for the file label_converter-0.2-py3-none-any.whl.

File metadata

  • Download URL: label_converter-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for label_converter-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8211976f430282a8c4e46f4ef5c5f93895c58f2671b674c54dd00b72b04200b6
MD5 08bb3ae03ee6f08570cc982739e12367
BLAKE2b-256 9052ae4b5649dd5162db7f28d52e7823c463c86a6278ece7112d0d30904bc435

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