Petrilya
AI colony counter for biology labs — drag, count, export.
Open-source desktop application that turns a phone photo of a Petri dish into a colony count, a CSV, and a one-page PDF report. No code, no cloud, no GPU required.
🌐 Website: petrilya.com · 🐙 Source: github.com/petrilya-app/petrilya-core
⚠️ Pre-alpha
Petrilya is being built in public. The current build runs the full UI (drag-and-drop, zoom, mask editing, batch processing, CSV/PDF/JSON export) against a mock segmentation engine — real Cellpose integration is blocked on cellpose.org model-weight hosting being available again. Until then, the mock generates plausible-looking colony detections so the rest of the pipeline can be tested.
If you need a working colony counter today, you probably want Cellpose directly. Petrilya's value-add is the no-code desktop wrapper, batch reports, and publication-ready outputs — coming soon.
Install (developer)
git clone https://github.com/petrilya-app/petrilya-core.git
cd petrilya-core
python -m venv .venv
.\.venv\Scripts\Activate.ps1 # Linux/macOS: source .venv/bin/activate
pip install -e ".[dev]"
Or, once published:
pip install petrilya
Run the GUI
petrilya-ui
CLI
petrilya path/to/dish.jpg --no-gpu
petrilya path/to/dish.jpg --gpu --diameter 30
What works today
- ✅ Drag-and-drop image loading (JPG, PNG, TIFF, BMP)
- ✅ Zoomable, pannable canvas (mouse wheel, Space-drag)
- ✅ Mask overlay with adjustable opacity (0–100%)
- ✅ Manual mask editing: erase a click, paint with brush
- ✅ Per-colony metrics: area, diameter, eccentricity, solidity
- ✅ Micrometers-per-pixel scale → results in μm² and μm
- ✅ Batch processing of an entire folder
- ✅ CSV export (per-colony rows)
- ✅ PDF report (preview + histogram + table)
- ✅ JSON manifest with SHA-256 and parameters for reproducibility
- ⏳ Real Cellpose model — pending
cellpose.orgserver recovery
License
AGPL-3.0 for the open-source build.
Commercial license available for organisations that need on-premise deployment without copyleft obligations — including GMP-relevant workflows. Contact iliarogogvykh@gmail.com.
Acknowledgements
Built with Cellpose, PySide6, ONNX Runtime, scikit-image, and ReportLab.
Metadata
Release files for petrilya 0.0.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 |
|---|---|---|---|---|
| petrilya-0.0.1.tar.gz | 56.1 kB | Without provenance | Details for petrilya-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| petrilya-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for petrilya-0.0.1-py3-none-any.whl |
Total release size: 101.8 kB
Release files / petrilya-0.0.1.tar.gz
| Download URL | petrilya-0.0.1.tar.gz |
|---|---|
| Size | 56.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d5348972170a5901603a317d6b5cf0c18e558f9dad7f96246a86b43ccbef7b0
|
|
BLAKE2b-256 checksum How to use checksums |
995a92571c36c9e6e312d85359eb8ca25233cf95c0e16b0ba8686ac563543a94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / petrilya-0.0.1-py3-none-any.whl
| Download URL | petrilya-0.0.1-py3-none-any.whl |
|---|---|
| Size | 45.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b9f7dd2c9cd992b1f5a0e1521f2186af2c71b74e222516cb7912574e028f82f
|
|
BLAKE2b-256 checksum How to use checksums |
7b7fe52a7b2e04d94986b00f7605b128b22e27acbf546da9592f78145f72c5ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for petrilya 0.0.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.