Skip to main content

strand-sdk

Python client for the Strand Platform: upload H&E whole-slide images, run virtual multiplex-immunofluorescence inference (H&E → spatial proteomics), and download per-marker predictions as AnnData or OME-Zarr/OME-TIFF.

📚 Full documentation: https://docs.strandai.com/sdks/python

Agent-readable API reference: https://app.strandai.com/docs/api.md · LLM index: https://app.strandai.com/llms.txt

Requires Python 3.12+.

Install

pip install strand-sdk
# or with bioinformatics extras (AnnData / zarr):
pip install "strand-sdk[anndata]"

Quickstart

One blocking call runs the full pipeline — upload, submit, wait, download:

from strand import Client

client = Client()  # reads STRAND_API_KEY; mint one at https://app.strandai.com/settings/api-keys
result = client.predict(
    "biopsy.ome.tiff",
    markers=["HER2", "CD8", "PD1"],
    output_dir="./outputs/",
)
print(f"Used {result.credits_used} credits; wrote {len(result.marker_outputs)} markers")

Everything else — uploads, model selection, async jobs, OME-TIFF export, error handling — is covered in the hosted docs.

Issues & support

File bug reports and feature requests at Strand-AI/strand-sdk-python/issues, or email support@strandai.com. This repository is a generated, read-only mirror of Strand's monorepo — pull requests opened here are overwritten by the next sync.

License

Apache 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strand_sdk-0.14.0.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strand_sdk-0.14.0-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file strand_sdk-0.14.0.tar.gz.

File metadata

  • Download URL: strand_sdk-0.14.0.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for strand_sdk-0.14.0.tar.gz
Algorithm Hash digest
SHA256 ac432803d158a25061526219701efb57aeac540811d3d28611e35683de745d48
MD5 5f8021de73cb62ef3266357e086b71bd
BLAKE2b-256 518a664bd5416e09218decbc609bd8f853a8847ba9d4c4ed7f0a9cd0f3300b40

See more details on using hashes here.

Provenance

The following attestation bundles were made for strand_sdk-0.14.0.tar.gz:

Publisher: sdks-publish.yml on Strand-AI/strand-official

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strand_sdk-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: strand_sdk-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for strand_sdk-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d919eaa3a1c0b3e1aee2df43a2a4c225bba575ccdfa67926f4beb91bcf6998fe
MD5 da8681145b7548d746c13413b8e44eb6
BLAKE2b-256 699350d1a3ac93e9ca532fe06ddf11811279987426fe7545a084cab4341ea592

See more details on using hashes here.

Provenance

The following attestation bundles were made for strand_sdk-0.14.0-py3-none-any.whl:

Publisher: sdks-publish.yml on Strand-AI/strand-official

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.16.0

2 files

0.15.0

2 files

This release

0.14.0 This release

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page