🔬 PathoLens Digital Pathology Workstation
PathoLens is a digital pathology workstation & AI workspace with a command-line launcher supporting Local Machine and Google Colab Cloud VM execution backends.
🚀 Key Features
- Dual Deployment Target: Run completely locally on your hardware, or spin up a free Google Colab GPU-accelerated cloud VM with one command.
- Zero-friction Colab Deploy (Zero Code Uploads): The CLI uses PyPI directly. Instead of slow zip uploads of the codebase, it initiates a PyPI installation (
uv pip install) over Google's datacenter backbone (under 5 seconds) and only uploads the locally compiled static Next.js frontend (~6MBstatic.zip). - Dynamic Slide Directory Configuration: Switch slide folders dynamically inside the browser UI Settings modal without having to restart the backend. Point it to local directories (e.g.
/home/prime/slides) or Google Drive paths (/content/drive/MyDrive/...). - Edge AI Diagnostics: Supports local execution of the
gemma-4-E2B-it-litert-lmLiteRT model for local digital pathology clinical questions and diagnostics.
📦 Installation
To install the CLI globally using uv:
uv tool install patholens
🛠️ Usage
Simply run:
patholens launch
This launches the onboarding wizard in your terminal:
█▀█ █▀█ ▀█▀ █▄█ █▀█ █ █▀▀ █▄ █ █▀
█▀▀ █▀█ █ █ █ █▄█ █▄▄ ██▄ █ ▀█ ▄█ cli v2.0.11
🔬 Digital Pathology Workstation & AI Workspace
} Environment: Cloud-Scalable / Multi-Tenant Ready
} Local Fallback: SQLite + Local Slide Storage
? Where would you like to run the PathoLens backend?
1) Local Machine (Your computer's CPU/GPU)
2) Google Colab VM (Free cloud CPU/GPU accelerators)
Option 1: Local Machine
Runs a local FastAPI backend and serves the Next.js frontend statically.
- Local AI option: You can choose to download the
litert_lmpackage and cache thegemma-4-E2B-it-litert-lmmodel for local inference. - Launch link: The CLI automatically opens your default browser at
http://localhost:8000.
Option 2: Google Colab VM
- Drive Integration: Prompts you to mount your Google Drive on the VM.
- Fast Setup: Installs
patholensfrom PyPI, uploads and extracts the frontendstatic.zip, installs slide bindings (libopenslide0), and opens a Cloudflare secure tunnel. - Direct Browser Launch: The CLI automatically grabs the public
*.trycloudflare.comtunnel URL and opens it in your web browser.
⚙️ Slide Directory Configuration
You can configure the active slide folder inside the browser UI dashboard.
- Click the Settings gear icon in the header.
- Input the absolute path to your slide directory (e.g.
/content/drive/MyDrive/Slideson Colab, or a local directory). - Click Save Settings. The backend updates its active path on the fly and immediately lists the
.svsfiles found in the folder.
Metadata
Release files for patholens 2.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| patholens-2.0.11.tar.gz | 11.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| patholens-2.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 MB
Release files / patholens-2.0.11.tar.gz
| Download URL | patholens-2.0.11.tar.gz |
|---|---|
| Size | 11.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1380feccbcb59f6bde1a4d1ddb2df6aef8525992304d6fa0895ab9fd65701976
|
|
BLAKE2b-256 checksum How to use checksums |
acab5f39c2f8912100e6d6eef78c8db40f8d9895e83254a5ac56df8d932e810a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / patholens-2.0.11-py3-none-any.whl
| Download URL | patholens-2.0.11-py3-none-any.whl |
|---|---|
| Size | 11.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3280c8d5c2c78a0b693675646423f1fc5ad76c5997291dfd2be7d40aca6dfa0c
|
|
BLAKE2b-256 checksum How to use checksums |
036df47b56192d4237a2a51d477375ae25c01eaadc8fa9c01c97a89dbd28ac13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|