small package to easily write html code within a script
Project description
pyhtmlgen
pyhtmlgen is a little toolbox which allows you to write html content within your python script into a variable. This variable then can be saved to a .html file and be opened with any standard browser.
supported html objects
- Header h1, h2, h3
- paragraphs
- line breaks
- tables
- html page start and html page end
supported python objects
- strings
- numpy matrices
- plotly figures
How to use
- create a variable to store a string within your script
- use pyhtml.start('Title of your page') to add the html head
- add content as you wish
- use pyhtml.end() to close the html file correctly
- write the variable to a file
Have a look at the example.py script for more information
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhtmlgen-0.0.1.tar.gz.
File metadata
- Download URL: pyhtmlgen-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816fc8426679b4e18f405462a4e64c2f67d42a4071318a1c0bdc4aeabbfb009e
|
|
| MD5 |
fe3bc418a79c9c3e0d5f424b08693d55
|
|
| BLAKE2b-256 |
7d32d700c731448e22b18b2e737434bf265470cc40714d703ecfeca747ffb95f
|
File details
Details for the file pyhtmlgen-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyhtmlgen-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c7464a49ebbe85b813d8dbc40263452efb25bc3d6c01d44d84b2ef04407caf8
|
|
| MD5 |
33ceb320d2f77f79698f201c2e525699
|
|
| BLAKE2b-256 |
2908f40918429bd1a024da477ac83863389ef7c9887c8479f0db725695eb88e1
|