Skip to main content

Package for create html from data quickly.

Project description

htmlmaker

Installation

pip3 install htmlmaker

Usage

from htmlmaker import htmlmaker as hm

fp = open('pure-min.css', 'r', encoding='utf-8')
css = fp.read()
test_table1 = {"title":"my_good_table1", "headers": ["x","y","z"], "body": [{"x": "Title x", "y": "Title y", "z": "Title z"}, {"x": 1, "y": make_anchor("https://www.google.com", "google", True), "z": 3},{"x": 2, "y": 3, "z": 4}]}
test_table2 = {"title":"my_good_table2", "headers": ["x","y","z"], "body": [{"x": "Title x", "y": "Title y", "z": "Title z"}, {"x": 1, "y": make_anchor("https://www.google.com", "google", True), "z": 3},{"x": 2, "y": 3, "z": 4}]}

data = {"tables": [test_table1, test_table2]}
hm.make_output_html('test.html', data, css)

Functions

make_anchor()

Params: url, content, _blank

def make_output_html()

Params: output_path, data, css

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

htmlmaker-0.0.7.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

htmlmaker-0.0.7-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file htmlmaker-0.0.7.tar.gz.

File metadata

  • Download URL: htmlmaker-0.0.7.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for htmlmaker-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2520ca39aea17d8a291fe749720beb0d0b2774ae3d852966f7212edab7bf2c5e
MD5 971ecccf961bbc9b34f64b092926d2ff
BLAKE2b-256 5e4839bdf8bb3646fba45cb8a065bd89bcbadd31c23b50be0b72e8dd33606aca

See more details on using hashes here.

File details

Details for the file htmlmaker-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: htmlmaker-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for htmlmaker-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 77f7bf9e0957e57cd2b371a5db347b175123946c5a4f6e596590cf3ae98d4e69
MD5 fb48264931433b904c3b02ccd991831c
BLAKE2b-256 559630e498698127883151e7926b22fc6b177d454533d1b2f80d96a83da28042

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