Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhtmlgen-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

pyhtmlgen-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for pyhtmlgen-0.0.1.tar.gz
Algorithm Hash digest
SHA256 816fc8426679b4e18f405462a4e64c2f67d42a4071318a1c0bdc4aeabbfb009e
MD5 fe3bc418a79c9c3e0d5f424b08693d55
BLAKE2b-256 7d32d700c731448e22b18b2e737434bf265470cc40714d703ecfeca747ffb95f

See more details on using hashes here.

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

Hashes for pyhtmlgen-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7464a49ebbe85b813d8dbc40263452efb25bc3d6c01d44d84b2ef04407caf8
MD5 33ceb320d2f77f79698f201c2e525699
BLAKE2b-256 2908f40918429bd1a024da477ac83863389ef7c9887c8479f0db725695eb88e1

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