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.15.tar.gz (4.7 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.15-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: label_converter-0.15.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for label_converter-0.15.tar.gz
Algorithm Hash digest
SHA256 b6433b3e924c147e77179476a9f7170474aff23738ac0e9437a692c0fbaedec7
MD5 e660a5376a69dd5acf0364667f03e82a
BLAKE2b-256 80fde7e8fda52eb7be6ccf028b77f168a9ac8a6206a5157b38ed790dd62aa5e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: label_converter-0.15-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for label_converter-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 b56902f07b08c7545272c440a5a64f829c9c921565e936eb988aa2b3c78f88a4
MD5 f0a820845162aa8a0f836290a8ff2eb9
BLAKE2b-256 fef62bd08829c5a5940a6ea99a7fe349ce360f79586c03f15264060bc2b50dcb

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