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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

label_converter-0.7-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

label_converter-0.7-py2-none-any.whl (4.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: label_converter-0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ef633bc1cdb2f9a6aecd5963969896c75e0ba73442d812ca6f7f8c619dff9d91
MD5 deca0bc066c0fa7e3ea5d1348772d1f1
BLAKE2b-256 4c6769da4163770b143076db76f06d6ff2ae31a5805a8942c9202d0ef67959f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: label_converter-0.7-py2-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2
  • 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.7-py2-none-any.whl
Algorithm Hash digest
SHA256 721ceca0f25eed123967e69f827fb5a31916b545897169d12ea9e1f2788e32e9
MD5 ea2dc99b0b2a9091f31cdb5ff260562e
BLAKE2b-256 b9ca3d46b3f881fd3dfb676129d4ce4596b94ce3c8ec82f0463a6277a19b166b

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