Skip to main content

cellcast_python

pypi license

This crate contains the Python bindings (via PyO3) for the cellcast core Rust library. Cellcast is a recast of cell segmentation models built on the Burn tensor and deep learning framework. The goal of this project is to modernize (i.e. recast) established cell segmentation models with a WebGPU backend. Cellcast aims to make access to cell segmentation models easy and reproducible.

Installation

Requirements

The cellcast Python package currently supports the following architectures:

Operating System Architecture
Linux x86-64, arm64
macOS intel, arm64
Windows x86-64

Cellcast is compatible with Python >=3.8 and requires only NumPy.

cellcast from PyPI

You can install the cellcast Python package from PyPI with:

$ pip install cellcast

Build cellcast_python from source

To build the cellcat_python package from source, use the maturin build tool (this requires the Rust toolchain). If you're using uv to manage your Python virtual environments (venv) add numpy and maturin to your environment and run the maturin develop command in the cellcast_python directory of the cellcast repository with your venv activated:

$ source ~/path/to/myenv/.venv/bin/activate
$ (myenv) cd cellcast_python
$ maturin develop

Alernatively if you're using conda or mamba you can do the following:

$ cd cellcat_python
$ mamba activate myenv
(myenv) $ mamba install numpy maturin
...
(myenv) $ maturin develop

This will compile a non-optimized cellcast binaries. Pass the --release flag to compile optimized binaries (note that compilation time may take upwards of 10 minutes).

Usage

Using cellcast

The following example demonstrates how to use cellcast's StarDist2D model in Python with fetched versatile fluo pre-trained weights (note: here we assume you have your data in a 2D NumPy array):

from cellcast.models import StarDist2D

# assuming "data" is a 2D NumPy array
sd = StarDist2D.init_fluo(gpu=True)
labels = sd.predict_fluo(data)

Run help() on the predict_fluo() function to see the full function signature and default values. To initialize a model with custom weights, provide the path to the weights in burnpack format (.bpk) when creating a model instance.

sd = StarDist2D.init_fluo("path/to/custom_weights.bpk", True)

License

Cellcast itself is a dual-licensed project with your choice of:

These licenses only apply to the cellcast project and do not apply to the individual models supported by cellcast. You can find each model's associated license listed in the MODEL-LICENSES file.

Metadata

Release files for cellcast 0.3.2

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

Source distribution (sdist)

Source distribution for cellcast 0.3.2
File Size Uploaded Provenance
cellcast-0.3.2.tar.gz 90.2 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for cellcast 0.3.2
File
cellcast-0.3.2-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
cellcast-0.3.2-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details
cellcast-0.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details
cellcast-0.3.2-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details
cellcast-0.3.2-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details

Total release size: 116.8 MB

Release files / cellcast-0.3.2.tar.gz

Download URL cellcast-0.3.2.tar.gz
Size 90.2 kB
Tags Source
SHA-256 checksum
How to use checksums
001192055dd9882d80285477cddfa431732b5a414574810818be3ba9312a47e5
BLAKE2b-256 checksum
How to use checksums
98a21e5df483b21d416d94b3d6688b419c6a4e09dd9085ef8a25f02bb18d344f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / cellcast-0.3.2-cp38-abi3-win_amd64.whl

Download URL cellcast-0.3.2-cp38-abi3-win_amd64.whl
Size 23.8 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0cf6453fa9bebe278b373c16c9ee2adf81699ae4db984debbddc9fe5cd8b41b6
BLAKE2b-256 checksum
How to use checksums
e16a406b31859c440fd4857f4edf343f8ff6877a71229363642926188613b9e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / cellcast-0.3.2-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL cellcast-0.3.2-cp38-abi3-manylinux_2_28_aarch64.whl
Size 23.7 MB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a0a510bc4802a7c1060309ff208487ba54941f9d61b7a44c5fdd409a66d6b7c5
BLAKE2b-256 checksum
How to use checksums
f077ba910e628d2bbb5090aabcd011f8c755f818364791319a2f33e83459bf3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / cellcast-0.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cellcast-0.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 24.2 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
57fba13c4b0b99d6bb0483c93b5c813bc49d90b4621f11d19951b8225554edcd
BLAKE2b-256 checksum
How to use checksums
01ba16d25a6ee2bca0a22a501027555dc32270207d02d8d38d0aa15aa22a87d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / cellcast-0.3.2-cp38-abi3-macosx_11_0_arm64.whl

Download URL cellcast-0.3.2-cp38-abi3-macosx_11_0_arm64.whl
Size 22.0 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
490d31945328d0a0d5c3081c8a652c871a2030e34e274ac7ef6431b07f699037
BLAKE2b-256 checksum
How to use checksums
45a462259e08aab38a9597bb6ab9b3b51f2fd2114c936b324a54bada5011da8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / cellcast-0.3.2-cp38-abi3-macosx_10_12_x86_64.whl

Download URL cellcast-0.3.2-cp38-abi3-macosx_10_12_x86_64.whl
Size 23.1 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e1dcdee64a4aaf1275c29c03ca4515bcaf4eefb29ae6d11832a9b058c552b582
BLAKE2b-256 checksum
How to use checksums
8cc01e0d26a4fc4a19c5d7c9b00d1242c9972f91edecd253da5f54bb77acc6ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Security for cellcast 0.3.2

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.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for cellcast-0.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

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.

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