WEBKNOSSOS Python Library
Python API for working with WEBKNOSSOS datasets, annotations, and for WEBKNOSSOS server interaction.
For the WEBKNOSSOS server, please refer to https://github.com/scalableminds/webknossos.
Features
- easy-to-use dataset API for reading/writing/editing raw 2D/3D image data and volume annotations/segmentation in WEBKNOSSOS-compatiböe format
- convert from other formats, e.g. tiff stacks
- add/remove layers
- update metadata (
datasource-properties.json) - up/downsample layers
- compress layers
- add/remove magnifications
- Command line tool (CLI) for manipulating and creating WEBKNOSSOS datasets
- manipulation of WEBKNOSSOS skeleton annotations (*.nml) as Python objects
- access to nodes, comments, trees, bounding boxes, metadata, etc.
- create new skeleton annotation from Graph structures or Python objects
- interaction, connection & scripting with your WEBKNOSSOS instance over the REST API
- list datastets, annotations, and tasks
- up- & downloading annotations and datasets
Please refer to the documentation for further instructions.
Installation
The webknossos package requires at least Python 3.10.
You can install it from pypi, e.g. via pip:
pip install webknossos
To install webknossos with the dependencies for all examples and support for more file types, run: pip install webknossos[all].
For working with Zeiss CZI microscopy data use pip install --extra-index-url https://pypi.scm.io/simple/ webknossos[czi].
By default webknossos can only distribute any computations through multiprocessing or Slurm. For Kubernetes or Dask install these additional dependencies:
pip install cluster_tools[kubernetes]
pip install cluster_tools[dask]
Examples
See the examples folder or the the documentation.
The dependencies for the examples are not installed by default. Use pip install webknossos[examples] to install them.
Contributions & Development
Please see the respective documentation page.
License
AGPLv3 Copyright scalable minds
Test Data Credits
Excerpts for testing purposes have been sampled from:
- Dow Jacobo Hossain Siletti Hudspeth (2018). Connectomics of the zebrafish's lateral-line neuromast reveals wiring and miswiring in a simple microcircuit. eLife. DOI:10.7554/eLife.33988
- Zheng Lauritzen Perlman Robinson Nichols Milkie Torrens Price Fisher Sharifi Calle-Schuler Kmecova Ali Karsh Trautman Bogovic Hanslovsky Jefferis Kazhdan Khairy Saalfeld Fetter Bock (2018). A Complete Electron Microscopy Volume of the Brain of Adult Drosophila melanogaster. Cell. DOI:10.1016/j.cell.2018.06.019. License: CC BY-NC 4.0
- Bosch Ackels Pacureanu et al (2022). Functional and multiscale 3D structural investigation of brain tissue through correlative in vivo physiology, synchrotron microtomography and volume electron microscopy. Nature Communications. DOI:10.1038/s41467-022-30199-6
- Hanke, M., Baumgartner, F. J., Ibe, P., Kaule, F. R., Pollmann, S., Speck, O., Zinke, W. & Stadler, J. (2014). A high-resolution 7-Tesla fMRI dataset from complex natural stimulation with an audio movie. Scientific Data, 1:140003. DOI:10.1038/sdata.2014.3
- Sample OME-TIFF files (c) by the OME Consortium https://downloads.openmicroscopy.org/images/OME-TIFF/2016-06/bioformats-artificial/
Metadata
Release files for webknossos 4.3.2
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 |
|---|---|---|---|---|
| webknossos-4.3.2.tar.gz | 358.6 kB | Without provenance | Details for webknossos-4.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| webknossos-4.3.2-py3-none-any.whl | Python 3 | none | any | Details for webknossos-4.3.2-py3-none-any.whl |
Total release size: 770.6 kB
Release files / webknossos-4.3.2.tar.gz
| Download URL | webknossos-4.3.2.tar.gz |
|---|---|
| Size | 358.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8526f8e8c723ef87b75eb75132f1d394c16d78a5ffda76ba58d2f98d8e029516
|
|
BLAKE2b-256 checksum How to use checksums |
5ae36992fe6c86efb65ae048872ddb613ba946bb032dda7ef0834a015179e59e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / webknossos-4.3.2-py3-none-any.whl
| Download URL | webknossos-4.3.2-py3-none-any.whl |
|---|---|
| Size | 412.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e89442fb26de01997e20fbb01b8e4b76183da8c0902b004257c41a9b0f47667
|
|
BLAKE2b-256 checksum How to use checksums |
93586b72b90f157ae7fe4fcaf4eb0c8f7dc75606bf9b1ab3c3dba32f7f729f6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for webknossos 4.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.
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.