A package for creating pretified HTML for PLUMED files
Project description
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plumedtohtml-0.94.tar.gz
.
File metadata
- Download URL: plumedtohtml-0.94.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce531cda35a5541506e9f91faf335757d58fd0d097ad1eda36a03b16d5f44ea |
|
MD5 | a5475b590b8a9f54019e53621235abb0 |
|
BLAKE2b-256 | d959dec7a14053a3f5a2b9ed65c3f37d5d7a21f2aac86dbc4b375d9979347cc3 |
Provenance
The following attestation bundles were made for plumedtohtml-0.94.tar.gz
:
Publisher:
release.yml
on plumed/PlumedToHTML
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
plumedtohtml-0.94.tar.gz
- Subject digest:
6ce531cda35a5541506e9f91faf335757d58fd0d097ad1eda36a03b16d5f44ea
- Sigstore transparency entry: 148121398
- Sigstore integration time:
- Predicate type:
File details
Details for the file PlumedToHTML-0.94-py3-none-any.whl
.
File metadata
- Download URL: PlumedToHTML-0.94-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d234c7fe2a8f81d4b8d95d3732758b49e17698d643966681f0679424afa6539 |
|
MD5 | 5555c184fef40e7d14157f317be8ac4a |
|
BLAKE2b-256 | 79d58fa4bbe04501acd55167a2386f89de57bd4d583bde0533e2b058c2279c06 |
Provenance
The following attestation bundles were made for PlumedToHTML-0.94-py3-none-any.whl
:
Publisher:
release.yml
on plumed/PlumedToHTML
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
plumedtohtml-0.94-py3-none-any.whl
- Subject digest:
1d234c7fe2a8f81d4b8d95d3732758b49e17698d643966681f0679424afa6539
- Sigstore transparency entry: 148121405
- Sigstore integration time:
- Predicate type: