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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac432803d158a25061526219701efb57aeac540811d3d28611e35683de745d48
|
|
| MD5 |
5f8021de73cb62ef3266357e086b71bd
|
|
| BLAKE2b-256 |
518a664bd5416e09218decbc609bd8f853a8847ba9d4c4ed7f0a9cd0f3300b40
|
Provenance
The following attestation bundles were made for strand_sdk-0.14.0.tar.gz:
Publisher:
sdks-publish.yml on Strand-AI/strand-official
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strand_sdk-0.14.0.tar.gz -
Subject digest:
ac432803d158a25061526219701efb57aeac540811d3d28611e35683de745d48 - Sigstore transparency entry: 2453968529
- Sigstore integration time:
-
Permalink:
Strand-AI/strand-official@24bf33f3ac979fdbc91c8f856b1a4eab22163f4c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Strand-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdks-publish.yml@24bf33f3ac979fdbc91c8f856b1a4eab22163f4c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d919eaa3a1c0b3e1aee2df43a2a4c225bba575ccdfa67926f4beb91bcf6998fe
|
|
| MD5 |
da8681145b7548d746c13413b8e44eb6
|
|
| BLAKE2b-256 |
699350d1a3ac93e9ca532fe06ddf11811279987426fe7545a084cab4341ea592
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strand_sdk-0.14.0-py3-none-any.whl -
Subject digest:
d919eaa3a1c0b3e1aee2df43a2a4c225bba575ccdfa67926f4beb91bcf6998fe - Sigstore transparency entry: 2453968753
- Sigstore integration time:
-
Permalink:
Strand-AI/strand-official@24bf33f3ac979fdbc91c8f856b1a4eab22163f4c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Strand-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdks-publish.yml@24bf33f3ac979fdbc91c8f856b1a4eab22163f4c -
Trigger Event:
push
-
Statement type: