datamint 1.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of datamint might be problematic. Click here for more details.

datamint/__init__.py ADDED
@@ -0,0 +1,11 @@
1
+ """
2
+ Datamint API package alias.
3
+
4
+ This module serves as an alias for the datamintapi package.
5
+ """
6
+
7
+ from datamintapi import *
8
+ import importlib.metadata
9
+
10
+ __name__ = "datamint"
11
+ __version__ = importlib.metadata.version(__name__)
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.3
2
+ Name: datamint
3
+ Version: 1.2.4
4
+ Summary: A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows.
5
+ Requires-Python: >=3.10
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3.10
8
+ Classifier: Programming Language :: Python :: 3.11
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Provides-Extra: dev
12
+ Provides-Extra: docs
13
+ Requires-Dist: Deprecated (>=1.2.0)
14
+ Requires-Dist: aiohttp (>=3.0.0,<4.0.0)
15
+ Requires-Dist: aioresponses (>=0.7.8,<0.8.0) ; extra == "dev"
16
+ Requires-Dist: albumentations (>=2.0.0)
17
+ Requires-Dist: humanize (>=4.0.0,<5.0.0)
18
+ Requires-Dist: lazy-loader (>=0.3.0)
19
+ Requires-Dist: lightning
20
+ Requires-Dist: matplotlib
21
+ Requires-Dist: nest-asyncio (>=1.0.0,<2.0.0)
22
+ Requires-Dist: nibabel (>=4.0.0)
23
+ Requires-Dist: numpy
24
+ Requires-Dist: opencv-python (>=4.0.0)
25
+ Requires-Dist: pandas (>=2.0.0)
26
+ Requires-Dist: platformdirs (>=4.0.0,<5.0.0)
27
+ Requires-Dist: pydicom (>=3.0.0,<4.0.0)
28
+ Requires-Dist: pylibjpeg (>=2.0.0,<3.0.0)
29
+ Requires-Dist: pylibjpeg-libjpeg (>=2.0.0,<3.0.0)
30
+ Requires-Dist: pytest (>=7.0.0,<8.0.0) ; extra == "dev"
31
+ Requires-Dist: pytest-cov (>=4.0.0,<5.0.0) ; extra == "dev"
32
+ Requires-Dist: pyyaml (>=5.0.0)
33
+ Requires-Dist: requests (>=2.0.0,<3.0.0)
34
+ Requires-Dist: responses (>=0.20.0,<0.21.0) ; extra == "dev"
35
+ Requires-Dist: rich (>=10.0.0)
36
+ Requires-Dist: setuptools (>=57.0) ; extra == "docs"
37
+ Requires-Dist: sphinx (>=5.0) ; extra == "docs"
38
+ Requires-Dist: sphinx-tabs (>=3.0.0) ; extra == "docs"
39
+ Requires-Dist: sphinx_rtd_theme (>=2.0.0) ; extra == "docs"
40
+ Requires-Dist: torch (>=1.2.0,!=2.3.0)
41
+ Requires-Dist: torchvision (>=0.18.0)
42
+ Requires-Dist: tqdm (>=4.0.0,<5.0.0)
43
+ Description-Content-Type: text/markdown
44
+
45
+
46
+ # Datamint python API
47
+
48
+ ![Build Status](https://github.com/SonanceAI/datamint-python-api/actions/workflows/run_test.yaml/badge.svg)
49
+
50
+ See the full documentation at https://sonanceai.github.io/datamint-python-api/
51
+
52
+ ## Installation
53
+
54
+ Datamint requires Python 3.10+.
55
+ You can install Datamint and its dependencies using pip
56
+
57
+ ```bash
58
+ pip install git+https://github.com/SonanceAI/datamint-python-api
59
+ ```
60
+
61
+ Soon we will be releasing the package on PyPi.
62
+ We recommend that you install Datamint in a dedicated virtual environment, to avoid conflicting with your system packages.
63
+ Create the enviroment once with `python3 -m venv datamint-env` and then activate it whenever you need it with:
64
+ - `source datamint-env/bin/activate` (Linux/MAC)
65
+ - `datamint-env\Scripts\activate.bat` (Windows CMD)
66
+ - `datamint-env\Scripts\Activate.ps1` (Windows PowerShell)
67
+
68
+
69
+ ## Setup API key
70
+
71
+ To use the Datamint API, you need to setup your API key (ask your administrator if you don't have one). Use one of the following methods to setup your API key:
72
+
73
+ ### Method 1: Command-line tool (recommended)
74
+
75
+ Run ``datamint-config`` in the terminal and follow the instructions. See [command_line_tools](https://sonanceai.github.io/datamint-python-api/command_line_tools.html) for more details.
76
+
77
+ ### Method 2: Environment variable
78
+
79
+ Specify the API key as an environment variable.
80
+
81
+ **Bash:**
82
+ ```bash
83
+ export DATAMINT_API_KEY="my_api_key"
84
+ # run your commands (e.g., `datamint-upload`, `python script.py`)
85
+ ```
86
+
87
+ **Python:**
88
+ ```python
89
+ import os
90
+ os.environ["DATAMINT_API_KEY"] = "my_api_key"
91
+ ```
92
+
93
+ ### Method 3: APIHandler constructor
94
+
95
+ Specify API key in the |APIHandlerClass| constructor:
96
+
97
+ ```python
98
+ from datamintapi import APIHandler
99
+ api = APIHandler(api_key='my_api_key')
100
+ ```
101
+
102
+ ## Tutorials
103
+
104
+
105
+ You can find example notebooks in the `notebooks` folder:
106
+
107
+ - [Uploading your resources](notebooks/upload_data.ipynb)
108
+ - [Uploading model segmentations](notebooks/upload_model_segmentations.ipynb)
109
+
110
+ and example scripts in [examples](examples) folder:
111
+
112
+ - [Running an experiment for classification](examples/experiment_traintest_classifier.py)
113
+ - [Running an experiment for segmentation](examples/experiment_traintest_segmentation.py)
114
+
115
+ ## Full documentation
116
+
117
+ See all functionalities in the full documentation at https://sonanceai.github.io/datamint-python-api/
118
+
@@ -0,0 +1,30 @@
1
+ datamint/__init__.py,sha256=J3Y19MHFXvVhdGPbEoTNBOHoSjoqpyvJMc61ePvfy60,223
2
+ datamintapi/__init__.py,sha256=4Rg9K6X-M_HhnWI0wHv6ZS9puXHcCvssaqpmlfHw0r8,821
3
+ datamintapi/apihandler/annotation_api_handler.py,sha256=sDPKs854DOycYCSWpNea2uFmTHEoIlbxq45_iAAw9bo,34551
4
+ datamintapi/apihandler/api_handler.py,sha256=a3WGg2Vt9-_kRLC6MNylUMA8F8hDYpfPnE851N14CUI,387
5
+ datamintapi/apihandler/base_api_handler.py,sha256=fPhoV1pvBbAlL0E9qsMa1Z7sRcu0ueqBbujEpTSzNQg,11693
6
+ datamintapi/apihandler/dto/annotation_dto.py,sha256=Sq_P2tBFSKnuLjMWWbHEO3CPEQBFZySFXrjhD66wa3Y,5293
7
+ datamintapi/apihandler/exp_api_handler.py,sha256=MpEPgM5TRws6urGJMn2Tr25jpLGytQcCq0szIya0oTI,6229
8
+ datamintapi/apihandler/root_api_handler.py,sha256=VVTxH_lWNWKya5eudqNVr4mbDBmKQeZSXKaN4w2ih4o,42298
9
+ datamintapi/client_cmd_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ datamintapi/client_cmd_tools/datamint_config.py,sha256=3-ZEuea13QtXVqQjnoYo7uR-FnMEi73rHS31G3RTPoc,6288
11
+ datamintapi/client_cmd_tools/datamint_upload.py,sha256=uFQQ6Vo8g202k-8SBMCAu_Cg9iomjLv_lJ90iu0vBsE,20846
12
+ datamintapi/configs.py,sha256=Bdp6NydYwyCJ2dk19_gf_o3M2ZyQOmMHpLi8wEWNHUk,1426
13
+ datamintapi/dataset/__init__.py,sha256=4PlUKSvVhdfQvvuq8jQXrkdqnot-iTTizM3aM1vgSwg,47
14
+ datamintapi/dataset/base_dataset.py,sha256=kPl8JnqMYbmv04OXGDdijHOsi67lDZYFhdl0reAvkIA,38771
15
+ datamintapi/dataset/dataset.py,sha256=J_EUjx-6U0i25oechcG04-QAufD-_NZPHdSopPce9Qw,25079
16
+ datamintapi/examples/__init__.py,sha256=zcYnd5nLVme9GCTPYH-1JpGo8xXK2WEYvhzcy_2alZc,39
17
+ datamintapi/examples/example_projects.py,sha256=yWcLr6US8jjKThVXPyH8ApLFt-FRckHlUWmNYPN65sU,2934
18
+ datamintapi/experiment/__init__.py,sha256=5qQOMzoG17DEd1YnTF-vS0qiM-DGdbNh42EUo91CRhQ,34
19
+ datamintapi/experiment/_patcher.py,sha256=J79e63oIlAC62hiAY3jphQKas1hoaBpznmfo3nlfyA8,23299
20
+ datamintapi/experiment/experiment.py,sha256=kLRC0wks6ZLviN2Vc5da9-yP0ARiSeCQyZHagJctdGU,44504
21
+ datamintapi/logging.yaml,sha256=q1pVwZ959LK7kwzWSytvLPBtxAohTiTLHWKPbs63JXo,489
22
+ datamintapi/utils/dicom_utils.py,sha256=HTuEjwXyTSMaTVGb9pFOO76q2KLTr2CxTDoCRElVHRA,26023
23
+ datamintapi/utils/io_utils.py,sha256=w3loo8C29MI2ERRvrcUc-Bc9X6OcjCnZCa1RixIiEZY,5451
24
+ datamintapi/utils/logging_utils.py,sha256=ZyQeueIiE_IYyDdOhBRlGdiVoGme4tYp8x01Zg7Uucg,1854
25
+ datamintapi/utils/torchmetrics.py,sha256=lwU0nOtsSWfebyp7dvjlAggaqXtj5ohSEUXOg3L0hJE,2837
26
+ datamintapi/utils/visualization.py,sha256=yaUVAOHar59VrGUjpAWv5eVvQSfztFG0eP9p5Vt3l-M,4470
27
+ datamint-1.2.4.dist-info/METADATA,sha256=5dcB1Y38C2LIUwvrpZQZJ0S0MiPqScK9Be_vduYBwac,4112
28
+ datamint-1.2.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
29
+ datamint-1.2.4.dist-info/entry_points.txt,sha256=VsviTPGOPOs5RaO_YoC_0D5UTdvS2PONAdAV1ovVP2I,151
30
+ datamint-1.2.4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 2.1.3
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ datamint-config=datamintapi.client_cmd_tools.datamint_config:main
3
+ datamint-upload=datamintapi.client_cmd_tools.datamint_upload:main
4
+
@@ -0,0 +1,25 @@
1
+ """
2
+ Datamint API is a Python package that provides a simple interface to the Datamint API.
3
+ """
4
+ import importlib.metadata
5
+ from typing import TYPE_CHECKING
6
+ if TYPE_CHECKING:
7
+ from .dataset.dataset import DatamintDataset as Dataset
8
+ from .apihandler.api_handler import APIHandler
9
+ from .experiment import Experiment
10
+ else:
11
+ import lazy_loader as lazy
12
+
13
+ __getattr__, __dir__, __all__ = lazy.attach(
14
+ __name__,
15
+ submodules=['dataset', "dataset.dataset", "apihandler.api_handler", "experiment"],
16
+ submod_attrs={
17
+ "dataset.dataset": ["DatamintDataset"],
18
+ "dataset": ['Dataset'],
19
+ "apihandler.api_handler": ["APIHandler"],
20
+ "experiment": ["Experiment"],
21
+ },
22
+ )
23
+
24
+ __name__ = "datamintapi"
25
+ __version__ = importlib.metadata.version('datamint')