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 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
base64_encoding = False

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

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.10.tar.gz (3.8 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.10-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: label_converter-0.10.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.2

File hashes

Hashes for label_converter-0.10.tar.gz
Algorithm Hash digest
SHA256 fa64f2ca5e7d2c8aeb0f0ab4ffd83d0266cac8b9e699f4ec77b69cfcef1cd1ff
MD5 818643f1359f27aa8a75252eb1c05fbf
BLAKE2b-256 1eb3591ea7f7745750cf408943620234b630e16b958d0a180de0463431b08a4d

See more details on using hashes here.

File details

Details for the file label_converter-0.10-py2-none-any.whl.

File metadata

  • Download URL: label_converter-0.10-py2-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.2

File hashes

Hashes for label_converter-0.10-py2-none-any.whl
Algorithm Hash digest
SHA256 9437dcc6edc046b83268be9ca395b1f31d1b454bc7187524e9d15c591f9928d0
MD5 2fb25ed019231bf0a00c686587c12fff
BLAKE2b-256 02037b3990e37be9e87231ea8b9386ed602db79dcb2e1ec0c0969a6b38f8bfd8

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