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
Release files for htmlmaker 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| htmlmaker-0.0.7.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| htmlmaker-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / htmlmaker-0.0.7.tar.gz
| Download URL | htmlmaker-0.0.7.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2520ca39aea17d8a291fe749720beb0d0b2774ae3d852966f7212edab7bf2c5e
|
|
BLAKE2b-256 checksum How to use checksums |
5e4839bdf8bb3646fba45cb8a065bd89bcbadd31c23b50be0b72e8dd33606aca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / htmlmaker-0.0.7-py3-none-any.whl
| Download URL | htmlmaker-0.0.7-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77f7bf9e0957e57cd2b371a5db347b175123946c5a4f6e596590cf3ae98d4e69
|
|
BLAKE2b-256 checksum How to use checksums |
559630e498698127883151e7926b22fc6b177d454533d1b2f80d96a83da28042
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|