Skip to main content

🔬 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 (~6MB static.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-lm LiteRT 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.7
 🔬 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_lm package and cache the gemma-4-E2B-it-litert-lm model 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 patholens from PyPI, uploads and extracts the frontend static.zip, installs slide bindings (libopenslide0), and opens a Cloudflare secure tunnel.
  • Direct Browser Launch: The CLI automatically grabs the public *.trycloudflare.com tunnel URL and opens it in your web browser.

⚙️ Slide Directory Configuration

You can configure the active slide folder inside the browser UI dashboard.

  1. Click the Settings gear icon in the header.
  2. Input the absolute path to your slide directory (e.g. /content/drive/MyDrive/Slides on Colab, or a local directory).
  3. Click Save Settings. The backend updates its active path on the fly and immediately lists the .svs files found in the folder.

Metadata

Release files for patholens 2.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for patholens 2.0.7
File Size Uploaded
patholens-2.0.7.tar.gz 11.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for patholens 2.0.7
File Interpreter ABI Platform
patholens-2.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 MB

Release files / patholens-2.0.7.tar.gz

Download URL patholens-2.0.7.tar.gz
Size 11.3 MB
Tags Source
SHA-256 checksum
How to use checksums
70c14040e1f7e9aa95e20bd680f1852c0366fea49967f299ae7b33aa5a15572d
BLAKE2b-256 checksum
How to use checksums
189278e02fc55b72b38a3ac45fd87656329274b023d8f22b8684777133cf11ac
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.7-py3-none-any.whl

Download URL patholens-2.0.7-py3-none-any.whl
Size 11.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0dc46da38481a0b65948f79591ec8c9d3bac6b5a4afdc32c7b0c5283dd392b3d
BLAKE2b-256 checksum
How to use checksums
24379cb7819163d4e6520cb2851e0d0df7cc84836b5ad9e30da64d413edcab21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

2.0.11

2 release files

2.0.10

2 release files

2.0.9

2 release files

2.0.8

2 release files

This release

2.0.7 This release

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page