Skip to main content

A package for creating prettified HTML for PLUMED files

Project description

CI codecov Total alerts Language grade: Python PyPI version PyPI - Python Version

PlumedToHTML

This is a Python implementation that allows you to generate pretified PLUMED input files that can be included in HTML documents. These pretified inputs have the following features:

  • There is a badge that shows whether PLUMED is able to parse the input or not.
  • When you hover over the names of actions tooltips appear to describe them that contain links to the corresponding pages in the PLUMED documentation.
  • When you hover over the keyword name a tooltip explains the meaning of that particular keyword.
  • If you click on the label for an action an explanation of that quantity that is stored in that label is given. The way the quantity is used in the rest of the calculation is given.
  • If shortcuts are used and actions read in things that do not appear in the input you have the option to see what actions are read in by PLUMED. You can thus get insight into how methods are implemented in PLUMED.
  • If some action has parameters that are set to default values you have the option to see what the default values of these parameters are.

N.B. This script uses subprocess to call PLUMED If you use this script PLUMED must be available in your path

Documentation

You can install this script by using the command:

pip install plumedToHTML

You can then use it within a python script by using the command:

from PlumedToHTML import get_html, get_html_header

The function get_html takes two arguments:

  • The first argument is a string that contains the PLUMED input you want to get the html for.
  • The second argument is a label that is used to refer to the input. If you have multiple PLUMED inputs on one page they all must have different labels

This function returns a string that contains the PLUMED input html to include in your page.

The function get_html_header returns some javascript functions and css definitions that must be included in the header of the html page. These functions and css instructions control how the PLUMED inputs appear.

Project details


Release history Release notifications | RSS feed

This version

0.126

Download files

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

Source Distribution

plumedtohtml-0.126.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

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

plumedtohtml-0.126-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file plumedtohtml-0.126.tar.gz.

File metadata

  • Download URL: plumedtohtml-0.126.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for plumedtohtml-0.126.tar.gz
Algorithm Hash digest
SHA256 754ef6d940f298b7cb79ee442fbbe15d35c6b58d2d657c7313b938adc505ae4c
MD5 1101d6fcdc4a83769469abad30c6b02a
BLAKE2b-256 0f89853553d9a8c2e099ca93875530174a029fe5d37a2ae121dbf7f77d1f5976

See more details on using hashes here.

Provenance

The following attestation bundles were made for plumedtohtml-0.126.tar.gz:

Publisher: release.yml on plumed/PlumedToHTML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file plumedtohtml-0.126-py3-none-any.whl.

File metadata

  • Download URL: plumedtohtml-0.126-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for plumedtohtml-0.126-py3-none-any.whl
Algorithm Hash digest
SHA256 6d377c83ffe5d44944ebba36431a1db05733412cda5016abb239840744ca17c2
MD5 d35debe8cca79003343c3d2228f90f98
BLAKE2b-256 717fad393be9e4c224de3f131b19cb8471f7832f36ff7fe97724deef841cacee

See more details on using hashes here.

Provenance

The following attestation bundles were made for plumedtohtml-0.126-py3-none-any.whl:

Publisher: release.yml on plumed/PlumedToHTML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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