Skip to main content

Create static HTML pages.

Project description

Github Actions Build Status https://badge.fury.io/py/shpg.svg

Installation

SHPG is avaialable on PyPI. You can then install it simply by executing the pip command:

pip install shpg

If you want to contribute to development or customize the package:

git clone https://github.com/BastienCagna/shpg.git
cd shpg
python setup.py develop

N.B: use –user to install the package only for you (might be mandatory depending of the rights you have)

Basic example

import shpg

# Create the HTML Page
page = shpg.Page(title="My Page")
page.content.append(shpg.Heading1("Hello world!"))
page.content.append(shpg.Paragraph('This is my first page using SHPG.'))

# Generate the HTML page
report_path = "/tmp/my_page.html"
page.save(report_path, portable=True)
Basic rendering

Documentation

The auto-generated online documentation is hosted at [https://bastiencagna.github.io/shpg/](https://bastiencagna.github.io/shpg).

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

shpg-0.0.2.tar.gz (87.8 kB view details)

Uploaded Source

Built Distribution

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

shpg-0.0.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file shpg-0.0.2.tar.gz.

File metadata

  • Download URL: shpg-0.0.2.tar.gz
  • Upload date:
  • Size: 87.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for shpg-0.0.2.tar.gz
Algorithm Hash digest
SHA256 03a5069722f7145f3d6a734cfd6a95c3a39116e8723cefa2d30731a30e6225ea
MD5 14a393f10129d6173f6cb3a8a64b70fe
BLAKE2b-256 25251d0e40fd8ccc32a07b761d49f94e7bedea4284a090bfd85be490b354f72f

See more details on using hashes here.

File details

Details for the file shpg-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: shpg-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for shpg-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65e3a449fe83043a71f0f2a5775a18757261734e8fae1cb6ad2080736bfdc35a
MD5 16915b0fd46e771919fb6568363c7b4e
BLAKE2b-256 2ccd252ec598d95d0f4972e01d5b2b3476b86b083e8e3c2abc4369672413c351

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