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. 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.

Licensing

lmsi contains a bundled copy of the MathJax library, which is licensed with the Apache 2.0 library.

lmsi contains a bundled copy of the polyfill.js library, which is licensed with the MIT license.

The rest of the source code, produced by the lmsi authors, is MIT-licensed.

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

Uploaded Source

Built Distribution

let_me_scroll_it-0.0.5-py3-none-any.whl (276.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: let_me_scroll_it-0.0.5.tar.gz
  • Upload date:
  • Size: 273.8 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.5.tar.gz
Algorithm Hash digest
SHA256 9382d34b933629cf4bd33514dfc2ba08af3334be0c7b498b368a2c524adbafe9
MD5 2dfeb908ef8dcfa7150fa6f54311f9ce
BLAKE2b-256 33f50a321370c073f88c2ed7542bd2449c9a16dd8f00d83ee6e868b12d60c465

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for let_me_scroll_it-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 41bdf46ff626075420f1f183d35b9ccaf107b4624f2c5102af40624c82e01e6e
MD5 d2c92b4ce4252c4ad7910ca82a16a31e
BLAKE2b-256 140c49b91ed71898813f7e8a6851f7fd8a97f792f954c22250a5549cf2b46971

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