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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for htmlmaker-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f7bf9e0957e57cd2b371a5db347b175123946c5a4f6e596590cf3ae98d4e69 |
|
MD5 | fb48264931433b904c3b02ccd991831c |
|
BLAKE2b-256 | 559630e498698127883151e7926b22fc6b177d454533d1b2f80d96a83da28042 |