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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: let_me_scroll_it-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 1229923086a3b1681ff5d0e120b42e7125beba2205a499066aadbfa6210eee2b
MD5 63505250ea3f1a6d67362335a356b5b8
BLAKE2b-256 0092f6ac3c4ceb089cbb86d7af5aa16ec42490cdb780fb66cd58e44e4d7cb5f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for let_me_scroll_it-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 973f0ba42dd3b24d1c65ccafd037e839e062e6c6da9d2c5ebd4260a569d9594b
MD5 14e826e93630fb3a35bf672f555277ab
BLAKE2b-256 85cf1097f623133df63f6d2933572cb346a061af2ceb07483f1ce32cd4b3a55f

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