TorchSlide
- Works on Python-3.6+
- Compiles from sources
- Provides array-like interface for reading BigTIFF/SVS files
Usage:
import torchslide as ts
slide = ts.Image('test.svs')
shape: 'Tuple[int]' = slide.shape
scales: 'Tuple[int]' = slide.scales
image: np.ndarray = slide[:2048, :2048] # get numpy.ndarray
Installation
Currently torchslide is only supported under 64-bit Windows and Linux machines.
Compilation on other architectures should be relatively straightforward as no OS-specific libraries or headers are used.
The easiest way to install the software is to download package from PyPI.
Compilation
To compile the code yourself, some prerequesites are required.
First, we use setuptools >= 40 as our build system and Microsoft Build Tools or GCC as the compiler.
The software depends on numerous third-party libraries:
- libtiff (http://www.libtiff.org/)
- libjpeg (http://libjpeg.sourceforge.net/)
- DCMTK (http://dicom.offis.de/dcmtk.php.en)
- OpenSlide (http://openslide.org/)
- zlib (http://www.zlib.net/)
To help developers compile this software themselves we provide the necesarry binaries (Visual Studio 2017, 64-bit) for all third party libraries on Windows. If you want to provide the packages yourself, there are no are no strict version requirements, except for libtiff (4.0.1 and higher). On Linux all packages can be installed through the package manager on Ubuntu-derived systems (tested on Ubuntu and Kubuntu 16.04 LTS).
To compile the source code yourself, first make sure all third-party libraries are installed.
Metadata
Release files for torchslide-any 0.3.0
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 |
|---|---|---|---|---|
| torchslide-any-0.3.0.tar.gz | 28.2 kB | Without provenance | Details for torchslide-any-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchslide_any-0.3.0-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details for torchslide_any-0.3.0-cp37-cp37m-win_amd64.whl |
Total release size: 4.3 MB
Release files / torchslide-any-0.3.0.tar.gz
| Download URL | torchslide-any-0.3.0.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ac4fdbf3ae718814b7b8377f4807ffe765ef9d233b4dbfd960831c70430ef1a
|
|
BLAKE2b-256 checksum How to use checksums |
798d0cbc123279fccbe53523f1a050c36bcc34c7d7805110475efda0a6febc74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.6
|
Release files / torchslide_any-0.3.0-cp37-cp37m-win_amd64.whl
| Download URL | torchslide_any-0.3.0-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dac4cd557ea2823ee9e8b542e11957abbe3a6ccf44b960fa386c14244927cdb8
|
|
BLAKE2b-256 checksum How to use checksums |
bda6a32a93803c17348efff53e6dc03ef7e0cc63e7f1c7ac405930a8cc57bb03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.6
|
Security for torchslide-any 0.3.0
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.