Skip to main content

Work in progress

slidebook-python

Open slidebook .sldy files in Python

To install

slidebook-python requires Python >= 3.9

pip install slidebook-python

To use

from sld import SlideBook
sld = SlideBook("/path/to/file.sldy")

# How many acquisitions
print(sld.number_acquisitions)
# 4

# How many channels in first acquisition
print(sld.images[0].num_channels)

# Get data from channel 0 of the second acquisition
data = sld.images[1].data["ch_0"]

To visualise in napari

N.B. napari plugin is in development

import napari
import numpy as np
from sld import SlideBook
sld = SlideBook("/path/to/file.sldy")
viewer = napari.Viewer()
viewer.add_image((np.squeeze(sld.images[0].data["ch_0"])), name="Channel 0")
viewer.add_image((np.squeeze(sld.images[0].data["ch_1"])), name="Channel 1")
napari.run()

By default, Slidebook will not load image data into memory. To force this, use mmap_mode=None:

sld = SlideBook("/path/to/file.sldy", mmap_mode=None)

Metadata

Release files for slidebook-python 0.0.3

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

Source distribution (sdist)

Source distribution for slidebook-python 0.0.3
File Size Uploaded Provenance
slidebook-python-0.0.3.tar.gz 5.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for slidebook-python 0.0.3
File Interpreter ABI Platform
slidebook_python-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.0 kB

Release files / slidebook-python-0.0.3.tar.gz

Download URL slidebook-python-0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3303937868cf98bbeb1a2adb076e5cdbc39be5b5051a03aaf4a8f15cfd707954
BLAKE2b-256 checksum
How to use checksums
db2ec06cc1b3b00fc7aa635e8e6f0075ae316175866cb2a5fd9777bc779aaa06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release files / slidebook_python-0.0.3-py2.py3-none-any.whl

Download URL slidebook_python-0.0.3-py2.py3-none-any.whl
Size 4.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
29cd9b9583dad22555763826c51201aa5a485ad293884730afafa405ac3c84c8
BLAKE2b-256 checksum
How to use checksums
996a2f328e8848576d7cd48b15bbd701ff01d72d46643356a61442cad19148e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Security for slidebook-python 0.0.3

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.

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