A command-line utility for placing figures in a static webpage
Project description
Let Me Scroll It (lmsi)
lmsi
is a command-line utility that produces a html web-page.
This web-page contains the images you provide the command-line
utility. It is available on PyPI:
pip install let-me-scroll-it
(lmsi
was not allowed by PyPI, unfortunately...)
You can configure sections, titles for plots, and captions, using the JSON configuration file of the form:
{
"Section Name": {
"[0-9]*_.*png": {
"caption": "A figure selected using regex. I can use MathJax $x^2 = 3$.",
"title": "Regex Selection",
"regex": true
},
"no_regex_required.png": {
"caption": "No regex requried for this, just searched on the filename.",
"title": "Fixed Name Selection"
}
}
}
You can use regex here or just a plain string. If you want the string to be
interpreted as a regular expression, you must use the
"regex": true
option.
There is an example in the example
directory.
You can use the utility as follows:
lmsi --files *.png --output index.html --config /path/to/config.json
Using lmsi
without a config leads to all figures being
placed in the 'uncategorised' section.
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 let_me_scroll_it-0.0.3.tar.gz
.
File metadata
- Download URL: let_me_scroll_it-0.0.3.tar.gz
- Upload date:
- Size: 273.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0d815dfa47c0d1c5dedffe8c798ad9b49622e943835729800e90fe3153a5af |
|
MD5 | 7dd5b2ffb747583bc4fd2765a323f155 |
|
BLAKE2b-256 | f0cc67e0c848858a2044a545e58f3835d318a72c3eaff78f5f662a033018c09b |
File details
Details for the file let_me_scroll_it-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: let_me_scroll_it-0.0.3-py3-none-any.whl
- Upload date:
- Size: 276.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f057f66b7a9efae7dc67f9cc6b1b551d0dbd6c9a1bc1403e1c869288e62aff4 |
|
MD5 | 5d85c244ae6e46b72b49718088c2ef4c |
|
BLAKE2b-256 | 5eaaef036acacfc46bb30482efbdf1d5da657372ce14c41367df61f5025e0374 |