Skip to main content

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.

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


Download files

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

Source Distribution

let_me_scroll_it-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

let_me_scroll_it-0.0.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file let_me_scroll_it-0.0.2.tar.gz.

File metadata

  • Download URL: let_me_scroll_it-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for let_me_scroll_it-0.0.2.tar.gz
Algorithm Hash digest
SHA256 29063aa88a754864401a32c7290dfa1909da73f6cff087895b2b1acf01769828
MD5 e712b31d4fee74c376f7bd67936008b7
BLAKE2b-256 7eeb9c44ca76d17837c7d64993f9e0f045107ea4559de134f68e3545b224eead

See more details on using hashes here.

File details

Details for the file let_me_scroll_it-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for let_me_scroll_it-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 515246b78160897b2e4dd34bd60c9f1f1e9e061e649d91ff9804c5933f703231
MD5 3fb3ef3b56458f3dad87057ffb5f94d3
BLAKE2b-256 75952a6fda6cc0a528ca9ebbf86aad5cbb235455b9647dad4b106d532b582e74

See more details on using hashes here.

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