Skip to main content

A package for creating pretified HTML for PLUMED files

Project description

CI codecov Total alerts Language grade: Python PyPI 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.96

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.96.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

PlumedToHTML-0.96-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plumedtohtml-0.96.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for plumedtohtml-0.96.tar.gz
Algorithm Hash digest
SHA256 1e2b66bf7f18bf4f6943ee41a1907dbbce0764e008ee7b63a93106d913c0ddaf
MD5 b553e942b2bd2facf056bbb87bfec6fa
BLAKE2b-256 1dce703414f4a17bd4ba7a50b576dfdf10e159203d4df204ab9b8f5e29e7ed11

See more details on using hashes here.

Provenance

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

Publisher: release.yml on plumed/PlumedToHTML

Attestations:

File details

Details for the file PlumedToHTML-0.96-py3-none-any.whl.

File metadata

  • Download URL: PlumedToHTML-0.96-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for PlumedToHTML-0.96-py3-none-any.whl
Algorithm Hash digest
SHA256 9632513263023124d184fb02034f49d0ad7143d4fe1533807fd4b2e3cdeb4b8b
MD5 da0fdd65178d8487737ad5ffb699b928
BLAKE2b-256 67f930e1788bfecd2f89dc93e6b3a3cdddb177821d403458acc1a34378d0f7e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for PlumedToHTML-0.96-py3-none-any.whl:

Publisher: release.yml on plumed/PlumedToHTML

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page