Skip to main content

A python package to create static html pages

Project description

Installation

for now shpg is available through GitHub. You can install by cloning the project and renning setup.py:

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

N.B: replace “install” by “develop” if you want to contribute to development or customize the package. N.B2: 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.1.tar.gz (10.1 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.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shpg-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for shpg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8633ff5e3d2e1893908dd1571da5b9f25a5c0c80999883deab8e5b30eaa8a9aa
MD5 cb4adfbd8172e29a3f3edba9de437891
BLAKE2b-256 ca2309a0f20303f2e8b12878e7be5c88d014a71d1dcf943415a05bea7d8a5276

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shpg-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for shpg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b1d748f1b1d8f14ec389a02073cd2d82608f5d6b2a7ccea995f7f8219f86f00
MD5 5ff92ef4e50c2daaa20024d1737bb895
BLAKE2b-256 2f4c222bb0be2354c941b52a56f0bfb899ddadd68d1e4d990206f430e59c5f39

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