A package to download images and annotations from the EXACT Server https://github.com/DeepMicroscopy/Exact
Project description
EXACT-Sync
Rest API sync with the EXACT Server https://github.com/ChristianMarzahl/Exact
Example Notebooks
In the folder examples
Pip
pip install EXCAT-Sync
Tests
with a lot of implementation examples /exact_sync/v1/test
Basic features:
Connect to server
configuration = Configuration()
configuration.username = 'exact'
configuration.password = 'exact'
configuration.host = "http://127.0.0.1:8000"
client = ApiClient(configuration)
image_sets_api = ImageSetsApi(client)
annotations_api = AnnotationsApi(client)
annotation_types_api = AnnotationTypesApi(client)
images_api = ImagesApi(client)
product_api = ProductsApi(client)
team_api = TeamsApi(client)
Get image set information
image_sets = image_sets_api.list_image_sets(name="cluster_asthma_imageset")
image_sets
Upload image to image set
image_type = int(Image.ImageSourceTypes.DEFAULT)
image = images_api.create_image(file_path=target_file, image_type=image_type, image_set=image_set.id).results[0]
Donwload image from image set
images_api.download_image(id=image_id, target_path=image_path, original_image=True)
Download image annotations
annotations_api.list_annotations(pagination=False, async_req=True, image=image.id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exact_sync-0.0.39.tar.gz
(76.1 kB
view details)
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
exact_sync-0.0.39-py3-none-any.whl
(154.5 kB
view details)
File details
Details for the file exact_sync-0.0.39.tar.gz.
File metadata
- Download URL: exact_sync-0.0.39.tar.gz
- Upload date:
- Size: 76.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e0abc16b0169ecd9f2c0aed18790f1cfce78184fc55225bc33c9f2e89bd589c
|
|
| MD5 |
bdaad0e2eb3b335746062a70027fb125
|
|
| BLAKE2b-256 |
46866041eb4d00d571b574af2e5d3d3d1727d6e0bd7a74be3268b5ab73e9e2d2
|
File details
Details for the file exact_sync-0.0.39-py3-none-any.whl.
File metadata
- Download URL: exact_sync-0.0.39-py3-none-any.whl
- Upload date:
- Size: 154.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ff563460286663e2055bd7ef33e5a8c336db41c42011d62894127ff46d2b8c
|
|
| MD5 |
67969093be6b80d339c61fdf4db9db99
|
|
| BLAKE2b-256 |
59c1935aef0b02380d95c553c41eda280d43a24ceace7e7e17fb3d985257cca6
|