litmus
Every file has a layer you can't see. litmus shows it to you.
Invisible characters. Hidden personal details. Code tucked inside a picture.
Find them in seconds, remove them safely, and see proof that nothing else changed.
The photo you are about to post may still carry the exact location where you took it. The paragraph you pasted may hold characters that no screen will ever display. The profile picture someone uploaded may end with a few lines of code that have nothing to do with the image.
None of this shows up when you open the file. All of it shows up in litmus.
pip install litmus-cli
litmus serve
Two commands. Your browser opens. Drop in any file and see what it really contains.
What litmus reveals
See exactly what was hidden
litmus does not stop at "something is wrong". When it finds hidden code, it shows you that code, word for word, and explains in plain language why it matters and what to do next.
Every file gets one clear reading: No issues found, Warning or Critical. Check one file or a whole folder, then export a polished report that anyone on your team can read.
Clean it. Prove it.
Removing hidden content is easy. Removing it without damaging the file is the hard part. That is where litmus is different.
After every clean-up, litmus checks the result against the original before it saves anything:
- Pictures keep every pixel exactly as it was.
- Graphics draw exactly the same shapes.
- Source code is saved only when its structure is proven unchanged.
- Documents and PDFs lose only their hidden details, never their content.
If litmus cannot confirm the result, it does not save it. Your original stays untouched, and litmus tells you why.
Works the way you work
| Where | How |
|---|---|
| In your browser | Drag and drop files, see results, download clean copies, export a report |
| In your terminal | Check and clean single files or entire folders with one command |
| In every pull request | Stop hidden characters and risky files before they reach your main branch |
| Before every commit | A pre-commit hook blocks hidden characters at the source |
| At your upload form | Check each upload before you save it, and block what looks dangerous |
| On a shared folder | Watch for new files and move suspicious ones to quarantine |
Who it's for
- Writers and editors who want clean text before it is published.
- Anyone sharing photos who wants to keep their location to themselves.
- Developers who want hidden characters out of their code, for good.
- Security teams who need a fast first check on files from outside.
- Platforms that accept uploads and want a gate in front of their storage.
Private by design
litmus runs entirely on your computer. There is no account, no cloud, no upload and no tracking. Your files never leave your machine, so you can use it on contracts, source code and personal photos with confidence.
Honest by design
Trust comes from saying clearly what a tool can and cannot do.
- litmus is not an antivirus. A "No issues found" result means none of its checks matched. It is not proof that a file is safe.
- litmus finds hidden content. It does not detect statistical AI watermarks in plain text, because no public tool can. It never labels a file "AI-generated" or "human-written".
- Finding nothing is not proof that nothing is there. litmus reports only what it can actually check.
Get started
pip install litmus-cli # install
litmus serve # open the app in your browser
Requires Python 3.11 or newer. For checks against known threat signatures,
install pip install "litmus-cli[yara]".
Command-line reference
| Command | What it does |
|---|---|
litmus inspect PATH... |
Check files or folders without changing them |
litmus transform PATH... |
Clean files, verified before anything is saved |
litmus guard FILE |
Check one file and print one verdict (exit 0 allowed, 1 blocked) |
litmus watch DIR |
Check new files in a folder as they arrive |
litmus serve |
Open the app in your browser |
litmus inspect photo.jpg # what is hiding in this file?
litmus inspect uploads/ --security-report report.html # shareable plain-language report
litmus transform photo.jpg -o photo-clean.jpg # save a cleaned copy
litmus transform notes.md --in-place --backup # clean in place, keep a backup
litmus watch uploads/ --quarantine quarantine/ # move high-threat files aside
litmus --help # every command and option
Pull requests, commits and upload forms
Pull requests (GitHub Actions):
- uses: actions/checkout@v4
- uses: LastDev-coder/litmus@v0.5.0
with:
paths: "."
fail-on: warning
Commits (.pre-commit-config.yaml):
repos:
- repo: https://github.com/LastDev-coder/litmus
rev: v0.5.0
hooks:
- id: litmus-inspect
Upload forms:
from litmus import scan_upload
verdict = scan_upload(data, "avatar.png")
if not verdict.allowed:
reject(verdict.reasons)
The upload check fails closed: if a check you asked for cannot run, the file is not allowed.
Supported files
| File type | Check | Clean |
|---|---|---|
| Text and source code | ✓ | ✓ |
| PNG, JPEG, GIF, WebP | ✓ | ✓ |
| SVG | ✓ | ✓ |
| BMP, ICO, TIFF, HEIC / HEIF, AVIF | ✓ | |
| ✓ | ✓ | |
| Word, Excel, PowerPoint | ✓ | ✓ |
Try it on one file. See what you've been sharing.
pip install litmus-cli && litmus serve
Metadata
Release files for litmus-cli 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| litmus_cli-0.5.1.tar.gz | 209.7 kB | Without provenance | Details for litmus_cli-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| litmus_cli-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for litmus_cli-0.5.1-py3-none-any.whl |
Total release size: 370.8 kB
Release files / litmus_cli-0.5.1.tar.gz
| Download URL | litmus_cli-0.5.1.tar.gz |
|---|---|
| Size | 209.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47556d2761b7ba725f8a7ad87f1bb6646af700c7f8e4816815eecaa329d6a360
|
|
BLAKE2b-256 checksum How to use checksums |
1653d14adccf0d6faa7432290b8c1e5dc10ac6555a89f4c25b9e69d60852f9ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / litmus_cli-0.5.1-py3-none-any.whl
| Download URL | litmus_cli-0.5.1-py3-none-any.whl |
|---|---|
| Size | 161.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4117768bdb1b6e919c936c89de0f0201bb058fc6bc24744773455112d8717eba
|
|
BLAKE2b-256 checksum How to use checksums |
7394bedce8af78097fb3d69730139c098e5ad339790769495636a9797594f803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for litmus-cli 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.