datamint 2.3.3__py3-none-any.whl → 2.9.0__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.
- datamint/__init__.py +1 -3
- datamint/api/__init__.py +0 -3
- datamint/api/base_api.py +286 -54
- datamint/api/client.py +76 -13
- datamint/api/endpoints/__init__.py +2 -2
- datamint/api/endpoints/annotations_api.py +186 -28
- datamint/api/endpoints/deploy_model_api.py +78 -0
- datamint/api/endpoints/models_api.py +1 -0
- datamint/api/endpoints/projects_api.py +38 -7
- datamint/api/endpoints/resources_api.py +227 -100
- datamint/api/entity_base_api.py +66 -7
- datamint/apihandler/base_api_handler.py +0 -1
- datamint/apihandler/dto/annotation_dto.py +2 -0
- datamint/client_cmd_tools/datamint_config.py +0 -1
- datamint/client_cmd_tools/datamint_upload.py +3 -1
- datamint/configs.py +11 -7
- datamint/dataset/base_dataset.py +24 -4
- datamint/dataset/dataset.py +1 -1
- datamint/entities/__init__.py +1 -1
- datamint/entities/annotations/__init__.py +13 -0
- datamint/entities/{annotation.py → annotations/annotation.py} +81 -47
- datamint/entities/annotations/image_classification.py +12 -0
- datamint/entities/annotations/image_segmentation.py +252 -0
- datamint/entities/annotations/volume_segmentation.py +273 -0
- datamint/entities/base_entity.py +100 -6
- datamint/entities/cache_manager.py +129 -15
- datamint/entities/datasetinfo.py +60 -65
- datamint/entities/deployjob.py +18 -0
- datamint/entities/project.py +39 -0
- datamint/entities/resource.py +310 -46
- datamint/lightning/__init__.py +1 -0
- datamint/lightning/datamintdatamodule.py +103 -0
- datamint/mlflow/__init__.py +65 -0
- datamint/mlflow/artifact/__init__.py +1 -0
- datamint/mlflow/artifact/datamint_artifacts_repo.py +8 -0
- datamint/mlflow/env_utils.py +131 -0
- datamint/mlflow/env_vars.py +5 -0
- datamint/mlflow/flavors/__init__.py +17 -0
- datamint/mlflow/flavors/datamint_flavor.py +150 -0
- datamint/mlflow/flavors/model.py +877 -0
- datamint/mlflow/lightning/callbacks/__init__.py +1 -0
- datamint/mlflow/lightning/callbacks/modelcheckpoint.py +410 -0
- datamint/mlflow/models/__init__.py +93 -0
- datamint/mlflow/tracking/datamint_store.py +76 -0
- datamint/mlflow/tracking/default_experiment.py +27 -0
- datamint/mlflow/tracking/fluent.py +91 -0
- datamint/utils/env.py +27 -0
- datamint/utils/visualization.py +21 -13
- datamint-2.9.0.dist-info/METADATA +220 -0
- datamint-2.9.0.dist-info/RECORD +73 -0
- {datamint-2.3.3.dist-info → datamint-2.9.0.dist-info}/WHEEL +1 -1
- datamint-2.9.0.dist-info/entry_points.txt +18 -0
- datamint/apihandler/exp_api_handler.py +0 -204
- datamint/experiment/__init__.py +0 -1
- datamint/experiment/_patcher.py +0 -570
- datamint/experiment/experiment.py +0 -1049
- datamint-2.3.3.dist-info/METADATA +0 -125
- datamint-2.3.3.dist-info/RECORD +0 -54
- datamint-2.3.3.dist-info/entry_points.txt +0 -4
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: datamint
|
|
3
|
-
Version: 2.3.3
|
|
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
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
-
Provides-Extra: dev
|
|
13
|
-
Provides-Extra: docs
|
|
14
|
-
Requires-Dist: Deprecated (>=1.2.0)
|
|
15
|
-
Requires-Dist: aiohttp (>=3.0.0,<4.0.0)
|
|
16
|
-
Requires-Dist: aioresponses (>=0.7.8,<0.8.0) ; extra == "dev"
|
|
17
|
-
Requires-Dist: albumentations (>=2.0.0)
|
|
18
|
-
Requires-Dist: backports-strenum ; python_version < "3.11"
|
|
19
|
-
Requires-Dist: datamintapi (==0.0.*)
|
|
20
|
-
Requires-Dist: httpx
|
|
21
|
-
Requires-Dist: humanize (>=4.0.0,<5.0.0)
|
|
22
|
-
Requires-Dist: lazy-loader (>=0.3.0)
|
|
23
|
-
Requires-Dist: lightning
|
|
24
|
-
Requires-Dist: matplotlib
|
|
25
|
-
Requires-Dist: medimgkit (>=0.7.2)
|
|
26
|
-
Requires-Dist: nest-asyncio (>=1.0.0,<2.0.0)
|
|
27
|
-
Requires-Dist: nibabel (>=4.0.0)
|
|
28
|
-
Requires-Dist: numpy
|
|
29
|
-
Requires-Dist: opencv-python (>=4.0.0)
|
|
30
|
-
Requires-Dist: pandas (>=2.0.0)
|
|
31
|
-
Requires-Dist: platformdirs (>=4.0.0,<5.0.0)
|
|
32
|
-
Requires-Dist: pydantic (>=2.6.4)
|
|
33
|
-
Requires-Dist: pydicom (>=3.0.0,<4.0.0)
|
|
34
|
-
Requires-Dist: pylibjpeg (>=2.0.0,<3.0.0)
|
|
35
|
-
Requires-Dist: pylibjpeg-libjpeg (>=2.0.0,<3.0.0)
|
|
36
|
-
Requires-Dist: pytest (>=7.0.0,<8.0.0) ; extra == "dev"
|
|
37
|
-
Requires-Dist: pytest-cov (>=4.0.0,<5.0.0) ; extra == "dev"
|
|
38
|
-
Requires-Dist: pyyaml (>=5.0.0)
|
|
39
|
-
Requires-Dist: requests (>=2.0.0,<3.0.0)
|
|
40
|
-
Requires-Dist: responses (>=0.20.0,<0.21.0) ; extra == "dev"
|
|
41
|
-
Requires-Dist: rich (>=10.0.0)
|
|
42
|
-
Requires-Dist: setuptools (>=57.0) ; extra == "docs"
|
|
43
|
-
Requires-Dist: sphinx (>=5.0) ; extra == "docs"
|
|
44
|
-
Requires-Dist: sphinx-tabs (>=3.0.0) ; extra == "docs"
|
|
45
|
-
Requires-Dist: sphinx_rtd_theme (>=2.0.0) ; extra == "docs"
|
|
46
|
-
Requires-Dist: torch (>=1.2.0,!=2.3.0)
|
|
47
|
-
Requires-Dist: torchvision (>=0.18.0)
|
|
48
|
-
Requires-Dist: tqdm (>=4.0.0,<5.0.0)
|
|
49
|
-
Requires-Dist: typing_extensions (>=4.0.0)
|
|
50
|
-
Description-Content-Type: text/markdown
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
# Datamint python API
|
|
54
|
-
|
|
55
|
-

|
|
56
|
-
|
|
57
|
-
See the full documentation at https://sonanceai.github.io/datamint-python-api/
|
|
58
|
-
|
|
59
|
-
## Installation
|
|
60
|
-
|
|
61
|
-
Datamint requires Python 3.10+.
|
|
62
|
-
You can install/update Datamint and its dependencies using pip
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
pip install -U datamint
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
We recommend that you install Datamint in a dedicated virtual environment, to avoid conflicting with your system packages.
|
|
69
|
-
Create the enviroment once with `python3 -m venv datamint-env` and then activate it whenever you need it with:
|
|
70
|
-
- `source datamint-env/bin/activate` (Linux/MAC)
|
|
71
|
-
- `datamint-env\Scripts\activate.bat` (Windows CMD)
|
|
72
|
-
- `datamint-env\Scripts\Activate.ps1` (Windows PowerShell)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
## Setup API key
|
|
76
|
-
|
|
77
|
-
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:
|
|
78
|
-
|
|
79
|
-
### Method 1: Command-line tool (recommended)
|
|
80
|
-
|
|
81
|
-
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.
|
|
82
|
-
|
|
83
|
-
### Method 2: Environment variable
|
|
84
|
-
|
|
85
|
-
Specify the API key as an environment variable.
|
|
86
|
-
|
|
87
|
-
**Bash:**
|
|
88
|
-
```bash
|
|
89
|
-
export DATAMINT_API_KEY="my_api_key"
|
|
90
|
-
# run your commands (e.g., `datamint-upload`, `python script.py`)
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
**Python:**
|
|
94
|
-
```python
|
|
95
|
-
import os
|
|
96
|
-
os.environ["DATAMINT_API_KEY"] = "my_api_key"
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Method 3: Api constructor
|
|
100
|
-
|
|
101
|
-
Specify API key in the Api constructor:
|
|
102
|
-
|
|
103
|
-
```python
|
|
104
|
-
from datamint import Api
|
|
105
|
-
api = Api(api_key='my_api_key')
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Tutorials
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
You can find example notebooks in the `notebooks` folder:
|
|
112
|
-
|
|
113
|
-
- [Uploading your resources](notebooks/upload_data.ipynb)
|
|
114
|
-
- [Uploading model segmentations](notebooks/upload_model_segmentations.ipynb)
|
|
115
|
-
|
|
116
|
-
and example scripts in [examples](examples) folder:
|
|
117
|
-
|
|
118
|
-
- [API usage examples](examples/api_usage.ipynb)
|
|
119
|
-
- [Project and entity usage](examples/project_entity_usage.ipynb)
|
|
120
|
-
- [Channels example](examples/channels_example.ipynb)
|
|
121
|
-
|
|
122
|
-
## Full documentation
|
|
123
|
-
|
|
124
|
-
See all functionalities in the full documentation at https://sonanceai.github.io/datamint-python-api/
|
|
125
|
-
|
datamint-2.3.3.dist-info/RECORD
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
datamint/__init__.py,sha256=ucsnxrYClh6pdy7psRJXWam_9rjAQB4NXzvy7xLovmo,824
|
|
2
|
-
datamint/api/__init__.py,sha256=7QYkmDBXbKh8-zchV7k6Lpolaw6h-IK6ezfXROIWh2A,43
|
|
3
|
-
datamint/api/base_api.py,sha256=UmNEgcFt1czkqyVCM3t5P9UvA1F9AEZITPqdakojvJs,18810
|
|
4
|
-
datamint/api/client.py,sha256=ndKSj2QnveRNOtaQhE9qM4tCGtgrTxfInDy9FhdReCo,3922
|
|
5
|
-
datamint/api/dto/__init__.py,sha256=fUi901Zs-q5XHyWwZ4dMi2fEO8-CUEVEdYbpd17lahc,416
|
|
6
|
-
datamint/api/endpoints/__init__.py,sha256=wi4liAb5-wOohwyzKUD6TxHGeZmUPaZerFUGa2IUju4,529
|
|
7
|
-
datamint/api/endpoints/annotations_api.py,sha256=B21oGgNXO7xoir3ynNvhnbo1JyRvWZ9sbsc7VVjghhM,49713
|
|
8
|
-
datamint/api/endpoints/annotationsets_api.py,sha256=NIsPIjGGptiUBxHft-EhOMRG-DsQAthheVqd7ph0id4,409
|
|
9
|
-
datamint/api/endpoints/channels_api.py,sha256=oQqxSw9DJzAqtVQI7-tc1llTdnsm-URx8jwtXNXnhio,867
|
|
10
|
-
datamint/api/endpoints/datasetsinfo_api.py,sha256=WdzrUzK63w9gvAP6U--P65FbD-3X-jm9TPCcYnRNjas,597
|
|
11
|
-
datamint/api/endpoints/models_api.py,sha256=tbVuajc-mCsIp5AKSCoq3uQRDWgKnJaIA6tf_ck8-XY,1502
|
|
12
|
-
datamint/api/endpoints/projects_api.py,sha256=C5IqKXaYRrg5LDBjIRSo4NBCvbN2619X3SSgKqGe8pc,7929
|
|
13
|
-
datamint/api/endpoints/resources_api.py,sha256=Ez-mGYElCpwHZ8T8NlqXH188mCFBZGfs8b320xa43tc,50142
|
|
14
|
-
datamint/api/endpoints/users_api.py,sha256=pnkuTZ1B9Y0FtwwvXO8J64e02RSkRxnBmTl9UGSuC5I,1186
|
|
15
|
-
datamint/api/entity_base_api.py,sha256=-8SIt4M8P9G2b8SQznuWpFuFE8zEQjQxkRkw0s_w0Y4,11692
|
|
16
|
-
datamint/apihandler/annotation_api_handler.py,sha256=W3vV4z3BqX1OQe1r7zr8dI-IVu4zUDxED4QttdiWV-E,57098
|
|
17
|
-
datamint/apihandler/api_handler.py,sha256=mL0gMaWePYa7zwkw92E-VMK2WjpcPt7au0KqnmsWSYw,439
|
|
18
|
-
datamint/apihandler/base_api_handler.py,sha256=Hqt3oUvXfEqF25DJkk0WOWAtNLnKaZRGtnCchKFA1ag,11669
|
|
19
|
-
datamint/apihandler/dto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
-
datamint/apihandler/dto/annotation_dto.py,sha256=8gcTFsvbXQQU4QjdW6lcUI_De1fyNyF49_a2uIyBOpg,7220
|
|
21
|
-
datamint/apihandler/exp_api_handler.py,sha256=hFUgUgBc5rL7odK7gTW3MnrvMY1pVfJUpUdzRNobMQE,6226
|
|
22
|
-
datamint/apihandler/root_api_handler.py,sha256=jBof_XPTeq4o41CW-l-I5GHQKVa76kaX75RovS_qAM4,63384
|
|
23
|
-
datamint/client_cmd_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
datamint/client_cmd_tools/datamint_config.py,sha256=MpR5UHv_xpElOOYyEESBkDg2n3JjP_PNLI2jqmZgYQ8,16222
|
|
25
|
-
datamint/client_cmd_tools/datamint_upload.py,sha256=rZEqBRZZDBFSlwMvIg_DbipqgBtQD31v7DC1C6tysqA,36058
|
|
26
|
-
datamint/configs.py,sha256=ArVD5QxuohLcM6NB0dMxcEfrD1-x5lPRDLcBdY8jhMU,1625
|
|
27
|
-
datamint/dataset/__init__.py,sha256=4PlUKSvVhdfQvvuq8jQXrkdqnot-iTTizM3aM1vgSwg,47
|
|
28
|
-
datamint/dataset/annotation.py,sha256=qN1IMjdfLD2ceQ6va3l76jOXA8Vb_c-eBk1oWQu6hW0,7994
|
|
29
|
-
datamint/dataset/base_dataset.py,sha256=2m_5nBayFCzXSjuPLb6mM9NLQ43wIUqeFUfm-6WVg_U,49827
|
|
30
|
-
datamint/dataset/dataset.py,sha256=c0887PcI6fEWG3FjM3gz_EYb9maH8v4ormZhm7vf4gE,28929
|
|
31
|
-
datamint/entities/__init__.py,sha256=ePkFeNATE5tJ9Lulsn2VTGWBJGwPtoRT1zsfbg1bkPw,504
|
|
32
|
-
datamint/entities/annotation.py,sha256=4qsm3yO8bTgu5SNxY91P0LGXx3d7mxF1OGWpMNir1CA,8956
|
|
33
|
-
datamint/entities/base_entity.py,sha256=QX381VdnrisQeQKg2kkHNDUvczYm03VsDHlHZQXr78U,3307
|
|
34
|
-
datamint/entities/cache_manager.py,sha256=ZN5_HeyM6c0ocWFsJuJEF4CkuOHr6RPErwhZNYYq7WU,10282
|
|
35
|
-
datamint/entities/channel.py,sha256=9fl22eSx_ng98NosfQGs18cdaRdbeC3wXL61KhSg4Zo,1601
|
|
36
|
-
datamint/entities/datasetinfo.py,sha256=yeGy5CVxqc7h0SFBJROr0UObeIMkOVZKwrOBsZ-iCEg,4151
|
|
37
|
-
datamint/entities/project.py,sha256=QQXBOe6FzupPrCunBcqOlY6d3uqxvnYvGeCq8hZy_U8,4192
|
|
38
|
-
datamint/entities/resource.py,sha256=Ai36-dJ9PhrRYho8QLRnySfsAPWPW8QpKMiVra_jCgA,9316
|
|
39
|
-
datamint/entities/user.py,sha256=MREHDOsV9NOBEbXqiQ2ww6DmetN07CELId-ZQVpZCb8,620
|
|
40
|
-
datamint/examples/__init__.py,sha256=zcYnd5nLVme9GCTPYH-1JpGo8xXK2WEYvhzcy_2alZc,39
|
|
41
|
-
datamint/examples/example_projects.py,sha256=sU-Gxy7PPqA0WUfN-ZmXV-0YnwrnzpJ79lMXTJp2DzU,2804
|
|
42
|
-
datamint/exceptions.py,sha256=Or-NNj8pgChzAZNaWtkX1WyHJ2q5GziyvHdFLYymvX0,1661
|
|
43
|
-
datamint/experiment/__init__.py,sha256=5qQOMzoG17DEd1YnTF-vS0qiM-DGdbNh42EUo91CRhQ,34
|
|
44
|
-
datamint/experiment/_patcher.py,sha256=ZgbezoevAYhJsbiJTvWPALGTcUiMT371xddcTllt3H4,23296
|
|
45
|
-
datamint/experiment/experiment.py,sha256=aHK9dRFdQTi569xgUg1KqlCZLHZpDmSH3g3ndPIZvXw,44546
|
|
46
|
-
datamint/logging.yaml,sha256=tOMxtc2UmwlIMTK6ljtnBwTco1PNrPeq3mx2iMuSbiw,482
|
|
47
|
-
datamint/types.py,sha256=2OaY5QJvQIJKxyMNJYzxBksKCa9ZS2gb_ayJrByvu2Y,410
|
|
48
|
-
datamint/utils/logging_utils.py,sha256=9pRoaPrWu2jOdDCiAoUsjEdP5ZwaealWL3hjUqFvx9g,4022
|
|
49
|
-
datamint/utils/torchmetrics.py,sha256=lwU0nOtsSWfebyp7dvjlAggaqXtj5ohSEUXOg3L0hJE,2837
|
|
50
|
-
datamint/utils/visualization.py,sha256=yaUVAOHar59VrGUjpAWv5eVvQSfztFG0eP9p5Vt3l-M,4470
|
|
51
|
-
datamint-2.3.3.dist-info/METADATA,sha256=Cl4QTN2lWp65r0Sot2NP-n5h0A-1B-PqH0l_gT94XUY,4262
|
|
52
|
-
datamint-2.3.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
53
|
-
datamint-2.3.3.dist-info/entry_points.txt,sha256=mn5H6jPjO-rY0W0CAZ6Z_KKWhMLvyVaSpoqk77jlTI4,145
|
|
54
|
-
datamint-2.3.3.dist-info/RECORD,,
|