das-cli 1.5.271__tar.gz → 1.5.272__tar.gz
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.
- {das_cli-1.5.271/das_cli.egg-info → das_cli-1.5.272}/PKG-INFO +49 -4
- {das_cli-1.5.271 → das_cli-1.5.272}/README.md +48 -3
- {das_cli-1.5.271 → das_cli-1.5.272/das_cli.egg-info}/PKG-INFO +49 -4
- {das_cli-1.5.271 → das_cli-1.5.272}/pyproject.toml +1 -1
- {das_cli-1.5.271 → das_cli-1.5.272}/LICENSE +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/MANIFEST.in +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/__init__.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/ai/plugins/dasai.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/ai/plugins/entries/entries_plugin.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/app.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/authentication/auth.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/authentication/oauth.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/authentication/secure_input.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/cli.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/common/api.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/common/config.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/common/entry_fields_constants.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/common/enums.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/common/file_utils.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/managers/__init__.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/managers/digital_objects_manager.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/managers/download_manager.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/managers/entries_manager.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/managers/search_manager.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/attributes.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/cache.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/das_elastic_search.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/digital_objects.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/downloads.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/entries.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/entry_fields.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/hangfire.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/search.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/service_base.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das/services/users.py +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das_cli.egg-info/SOURCES.txt +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das_cli.egg-info/dependency_links.txt +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das_cli.egg-info/entry_points.txt +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das_cli.egg-info/requires.txt +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/das_cli.egg-info/top_level.txt +0 -0
- {das_cli-1.5.271 → das_cli-1.5.272}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: das-cli
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.272
|
|
4
4
|
Summary: DAS api client.
|
|
5
5
|
Author: Royal Netherlands Institute for Sea Research
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,9 +28,9 @@ Dynamic: license-file
|
|
|
28
28
|
- a Python package for scripts, automations, and integrations.
|
|
29
29
|
|
|
30
30
|
This README is organized around how people actually use the project:
|
|
31
|
-
1. [CLI workflows](#cli-usage)
|
|
32
|
-
2. [Programmatic workflows](#programmatic-usage-python)
|
|
33
|
-
3. [Manager-layer API reference
|
|
31
|
+
1. [CLI workflows](#cli-usage) — [Authentication](#authentication) · [Search and Read](#search-and-read) · [Entries](#entries) · [Digital Objects](#digital-objects) · [Downloads](#downloads) · [Other CLI groups](#other-cli-groups)
|
|
32
|
+
2. [Programmatic workflows](#programmatic-usage-python) — [Pattern A](#pattern-a-login-once-with-cli-then-use-managers-in-python) · [Pattern B](#pattern-b-authenticate-in-python-with-das)
|
|
33
|
+
3. [Manager-layer API reference](#manager-layer-api-reference-domain-layer) — [`EntryManager`](#entrymanager) · [`SearchManager`](#searchmanager) · [`DownloadManager`](#downloadmanager) · [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
34
34
|
|
|
35
35
|
## Install
|
|
36
36
|
|
|
@@ -67,6 +67,19 @@ das entry get --code zb.b.1ub
|
|
|
67
67
|
|
|
68
68
|
## CLI Usage
|
|
69
69
|
|
|
70
|
+
- [Authentication](#authentication)
|
|
71
|
+
- [Username/password](#usernamepassword)
|
|
72
|
+
- [API key](#api-key)
|
|
73
|
+
- [OAuth / Azure Entra](#oauth--azure-entra)
|
|
74
|
+
- [Search and Read](#search-and-read)
|
|
75
|
+
- [Entries](#entries)
|
|
76
|
+
- [Create entries](#create-entries)
|
|
77
|
+
- [Update entries](#update-entries)
|
|
78
|
+
- [Logs and ownership](#logs-and-ownership)
|
|
79
|
+
- [Digital Objects](#digital-objects)
|
|
80
|
+
- [Downloads](#downloads)
|
|
81
|
+
- [Other CLI groups](#other-cli-groups)
|
|
82
|
+
|
|
70
83
|
### Authentication
|
|
71
84
|
|
|
72
85
|
#### Username/password
|
|
@@ -207,6 +220,14 @@ das config reset --force
|
|
|
207
220
|
|
|
208
221
|
Two common patterns are supported.
|
|
209
222
|
|
|
223
|
+
- [Pattern A: login once with CLI, then use managers in Python](#pattern-a-login-once-with-cli-then-use-managers-in-python)
|
|
224
|
+
- [Pattern B: authenticate in Python with `Das`](#pattern-b-authenticate-in-python-with-das)
|
|
225
|
+
- Managers — full API reference below:
|
|
226
|
+
- [`EntryManager`](#entrymanager)
|
|
227
|
+
- [`SearchManager`](#searchmanager)
|
|
228
|
+
- [`DownloadManager`](#downloadmanager)
|
|
229
|
+
- [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
230
|
+
|
|
210
231
|
### Pattern A: login once with CLI, then use managers in Python
|
|
211
232
|
|
|
212
233
|
```python
|
|
@@ -253,6 +274,30 @@ entries = EntryManager() # reads API URL + token from stored config
|
|
|
253
274
|
|
|
254
275
|
All managers raise `ValueError` when the API URL is not configured or when required parameters are missing.
|
|
255
276
|
|
|
277
|
+
- [`EntryManager`](#entrymanager)
|
|
278
|
+
- [`get` / `get_entry`](#get--get_entry--fetch-one-entry)
|
|
279
|
+
- [`create`](#create--create-one-or-many-entries)
|
|
280
|
+
- [`update`](#update--update-one-or-many-entries)
|
|
281
|
+
- [`delete`](#delete--delete-one-entry)
|
|
282
|
+
- [`create_from_file`](#create_from_file--bulk-create-from-file)
|
|
283
|
+
- [`chown`](#chown--transfer-ownership)
|
|
284
|
+
- [`get_entry_logs`](#get_entry_logs--audit--change-history)
|
|
285
|
+
- [`get_direct_relations`](#get_direct_relations--related-entries)
|
|
286
|
+
- [`SearchManager`](#searchmanager)
|
|
287
|
+
- [`search_entries`](#search_entries--search-within-an-attribute)
|
|
288
|
+
- [`DownloadManager`](#downloadmanager)
|
|
289
|
+
- [`create_download_request`](#create_download_request--request-files-for-download)
|
|
290
|
+
- [`get_my_requests`](#get_my_requests--list-your-download-requests)
|
|
291
|
+
- [`delete_download_request`](#delete_download_request--remove-a-request)
|
|
292
|
+
- [`download_files`](#download_files--get-streaming-response)
|
|
293
|
+
- [`save_download`](#save_download--download-and-save-in-one-step)
|
|
294
|
+
- [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
295
|
+
- [`upload_digital_object`](#upload_digital_object--upload-file-and-link-to-entry)
|
|
296
|
+
- [`link_existing_digital_objects`](#link_existing_digital_objects--link-or-unlink-by-codes)
|
|
297
|
+
- [`download_digital_object`](#download_digital_object--download-by-digital-object-code-or-id)
|
|
298
|
+
- [`direct_download_digital_object`](#direct_download_digital_object--download-from-a-specific-entry)
|
|
299
|
+
- [Complete end-to-end script](#complete-end-to-end-script)
|
|
300
|
+
|
|
256
301
|
---
|
|
257
302
|
|
|
258
303
|
### `EntryManager`
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
- a Python package for scripts, automations, and integrations.
|
|
6
6
|
|
|
7
7
|
This README is organized around how people actually use the project:
|
|
8
|
-
1. [CLI workflows](#cli-usage)
|
|
9
|
-
2. [Programmatic workflows](#programmatic-usage-python)
|
|
10
|
-
3. [Manager-layer API reference
|
|
8
|
+
1. [CLI workflows](#cli-usage) — [Authentication](#authentication) · [Search and Read](#search-and-read) · [Entries](#entries) · [Digital Objects](#digital-objects) · [Downloads](#downloads) · [Other CLI groups](#other-cli-groups)
|
|
9
|
+
2. [Programmatic workflows](#programmatic-usage-python) — [Pattern A](#pattern-a-login-once-with-cli-then-use-managers-in-python) · [Pattern B](#pattern-b-authenticate-in-python-with-das)
|
|
10
|
+
3. [Manager-layer API reference](#manager-layer-api-reference-domain-layer) — [`EntryManager`](#entrymanager) · [`SearchManager`](#searchmanager) · [`DownloadManager`](#downloadmanager) · [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
@@ -44,6 +44,19 @@ das entry get --code zb.b.1ub
|
|
|
44
44
|
|
|
45
45
|
## CLI Usage
|
|
46
46
|
|
|
47
|
+
- [Authentication](#authentication)
|
|
48
|
+
- [Username/password](#usernamepassword)
|
|
49
|
+
- [API key](#api-key)
|
|
50
|
+
- [OAuth / Azure Entra](#oauth--azure-entra)
|
|
51
|
+
- [Search and Read](#search-and-read)
|
|
52
|
+
- [Entries](#entries)
|
|
53
|
+
- [Create entries](#create-entries)
|
|
54
|
+
- [Update entries](#update-entries)
|
|
55
|
+
- [Logs and ownership](#logs-and-ownership)
|
|
56
|
+
- [Digital Objects](#digital-objects)
|
|
57
|
+
- [Downloads](#downloads)
|
|
58
|
+
- [Other CLI groups](#other-cli-groups)
|
|
59
|
+
|
|
47
60
|
### Authentication
|
|
48
61
|
|
|
49
62
|
#### Username/password
|
|
@@ -184,6 +197,14 @@ das config reset --force
|
|
|
184
197
|
|
|
185
198
|
Two common patterns are supported.
|
|
186
199
|
|
|
200
|
+
- [Pattern A: login once with CLI, then use managers in Python](#pattern-a-login-once-with-cli-then-use-managers-in-python)
|
|
201
|
+
- [Pattern B: authenticate in Python with `Das`](#pattern-b-authenticate-in-python-with-das)
|
|
202
|
+
- Managers — full API reference below:
|
|
203
|
+
- [`EntryManager`](#entrymanager)
|
|
204
|
+
- [`SearchManager`](#searchmanager)
|
|
205
|
+
- [`DownloadManager`](#downloadmanager)
|
|
206
|
+
- [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
207
|
+
|
|
187
208
|
### Pattern A: login once with CLI, then use managers in Python
|
|
188
209
|
|
|
189
210
|
```python
|
|
@@ -230,6 +251,30 @@ entries = EntryManager() # reads API URL + token from stored config
|
|
|
230
251
|
|
|
231
252
|
All managers raise `ValueError` when the API URL is not configured or when required parameters are missing.
|
|
232
253
|
|
|
254
|
+
- [`EntryManager`](#entrymanager)
|
|
255
|
+
- [`get` / `get_entry`](#get--get_entry--fetch-one-entry)
|
|
256
|
+
- [`create`](#create--create-one-or-many-entries)
|
|
257
|
+
- [`update`](#update--update-one-or-many-entries)
|
|
258
|
+
- [`delete`](#delete--delete-one-entry)
|
|
259
|
+
- [`create_from_file`](#create_from_file--bulk-create-from-file)
|
|
260
|
+
- [`chown`](#chown--transfer-ownership)
|
|
261
|
+
- [`get_entry_logs`](#get_entry_logs--audit--change-history)
|
|
262
|
+
- [`get_direct_relations`](#get_direct_relations--related-entries)
|
|
263
|
+
- [`SearchManager`](#searchmanager)
|
|
264
|
+
- [`search_entries`](#search_entries--search-within-an-attribute)
|
|
265
|
+
- [`DownloadManager`](#downloadmanager)
|
|
266
|
+
- [`create_download_request`](#create_download_request--request-files-for-download)
|
|
267
|
+
- [`get_my_requests`](#get_my_requests--list-your-download-requests)
|
|
268
|
+
- [`delete_download_request`](#delete_download_request--remove-a-request)
|
|
269
|
+
- [`download_files`](#download_files--get-streaming-response)
|
|
270
|
+
- [`save_download`](#save_download--download-and-save-in-one-step)
|
|
271
|
+
- [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
272
|
+
- [`upload_digital_object`](#upload_digital_object--upload-file-and-link-to-entry)
|
|
273
|
+
- [`link_existing_digital_objects`](#link_existing_digital_objects--link-or-unlink-by-codes)
|
|
274
|
+
- [`download_digital_object`](#download_digital_object--download-by-digital-object-code-or-id)
|
|
275
|
+
- [`direct_download_digital_object`](#direct_download_digital_object--download-from-a-specific-entry)
|
|
276
|
+
- [Complete end-to-end script](#complete-end-to-end-script)
|
|
277
|
+
|
|
233
278
|
---
|
|
234
279
|
|
|
235
280
|
### `EntryManager`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: das-cli
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.272
|
|
4
4
|
Summary: DAS api client.
|
|
5
5
|
Author: Royal Netherlands Institute for Sea Research
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,9 +28,9 @@ Dynamic: license-file
|
|
|
28
28
|
- a Python package for scripts, automations, and integrations.
|
|
29
29
|
|
|
30
30
|
This README is organized around how people actually use the project:
|
|
31
|
-
1. [CLI workflows](#cli-usage)
|
|
32
|
-
2. [Programmatic workflows](#programmatic-usage-python)
|
|
33
|
-
3. [Manager-layer API reference
|
|
31
|
+
1. [CLI workflows](#cli-usage) — [Authentication](#authentication) · [Search and Read](#search-and-read) · [Entries](#entries) · [Digital Objects](#digital-objects) · [Downloads](#downloads) · [Other CLI groups](#other-cli-groups)
|
|
32
|
+
2. [Programmatic workflows](#programmatic-usage-python) — [Pattern A](#pattern-a-login-once-with-cli-then-use-managers-in-python) · [Pattern B](#pattern-b-authenticate-in-python-with-das)
|
|
33
|
+
3. [Manager-layer API reference](#manager-layer-api-reference-domain-layer) — [`EntryManager`](#entrymanager) · [`SearchManager`](#searchmanager) · [`DownloadManager`](#downloadmanager) · [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
34
34
|
|
|
35
35
|
## Install
|
|
36
36
|
|
|
@@ -67,6 +67,19 @@ das entry get --code zb.b.1ub
|
|
|
67
67
|
|
|
68
68
|
## CLI Usage
|
|
69
69
|
|
|
70
|
+
- [Authentication](#authentication)
|
|
71
|
+
- [Username/password](#usernamepassword)
|
|
72
|
+
- [API key](#api-key)
|
|
73
|
+
- [OAuth / Azure Entra](#oauth--azure-entra)
|
|
74
|
+
- [Search and Read](#search-and-read)
|
|
75
|
+
- [Entries](#entries)
|
|
76
|
+
- [Create entries](#create-entries)
|
|
77
|
+
- [Update entries](#update-entries)
|
|
78
|
+
- [Logs and ownership](#logs-and-ownership)
|
|
79
|
+
- [Digital Objects](#digital-objects)
|
|
80
|
+
- [Downloads](#downloads)
|
|
81
|
+
- [Other CLI groups](#other-cli-groups)
|
|
82
|
+
|
|
70
83
|
### Authentication
|
|
71
84
|
|
|
72
85
|
#### Username/password
|
|
@@ -207,6 +220,14 @@ das config reset --force
|
|
|
207
220
|
|
|
208
221
|
Two common patterns are supported.
|
|
209
222
|
|
|
223
|
+
- [Pattern A: login once with CLI, then use managers in Python](#pattern-a-login-once-with-cli-then-use-managers-in-python)
|
|
224
|
+
- [Pattern B: authenticate in Python with `Das`](#pattern-b-authenticate-in-python-with-das)
|
|
225
|
+
- Managers — full API reference below:
|
|
226
|
+
- [`EntryManager`](#entrymanager)
|
|
227
|
+
- [`SearchManager`](#searchmanager)
|
|
228
|
+
- [`DownloadManager`](#downloadmanager)
|
|
229
|
+
- [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
230
|
+
|
|
210
231
|
### Pattern A: login once with CLI, then use managers in Python
|
|
211
232
|
|
|
212
233
|
```python
|
|
@@ -253,6 +274,30 @@ entries = EntryManager() # reads API URL + token from stored config
|
|
|
253
274
|
|
|
254
275
|
All managers raise `ValueError` when the API URL is not configured or when required parameters are missing.
|
|
255
276
|
|
|
277
|
+
- [`EntryManager`](#entrymanager)
|
|
278
|
+
- [`get` / `get_entry`](#get--get_entry--fetch-one-entry)
|
|
279
|
+
- [`create`](#create--create-one-or-many-entries)
|
|
280
|
+
- [`update`](#update--update-one-or-many-entries)
|
|
281
|
+
- [`delete`](#delete--delete-one-entry)
|
|
282
|
+
- [`create_from_file`](#create_from_file--bulk-create-from-file)
|
|
283
|
+
- [`chown`](#chown--transfer-ownership)
|
|
284
|
+
- [`get_entry_logs`](#get_entry_logs--audit--change-history)
|
|
285
|
+
- [`get_direct_relations`](#get_direct_relations--related-entries)
|
|
286
|
+
- [`SearchManager`](#searchmanager)
|
|
287
|
+
- [`search_entries`](#search_entries--search-within-an-attribute)
|
|
288
|
+
- [`DownloadManager`](#downloadmanager)
|
|
289
|
+
- [`create_download_request`](#create_download_request--request-files-for-download)
|
|
290
|
+
- [`get_my_requests`](#get_my_requests--list-your-download-requests)
|
|
291
|
+
- [`delete_download_request`](#delete_download_request--remove-a-request)
|
|
292
|
+
- [`download_files`](#download_files--get-streaming-response)
|
|
293
|
+
- [`save_download`](#save_download--download-and-save-in-one-step)
|
|
294
|
+
- [`DigitalObjectsManager`](#digitalobjectsmanager)
|
|
295
|
+
- [`upload_digital_object`](#upload_digital_object--upload-file-and-link-to-entry)
|
|
296
|
+
- [`link_existing_digital_objects`](#link_existing_digital_objects--link-or-unlink-by-codes)
|
|
297
|
+
- [`download_digital_object`](#download_digital_object--download-by-digital-object-code-or-id)
|
|
298
|
+
- [`direct_download_digital_object`](#direct_download_digital_object--download-from-a-specific-entry)
|
|
299
|
+
- [Complete end-to-end script](#complete-end-to-end-script)
|
|
300
|
+
|
|
256
301
|
---
|
|
257
302
|
|
|
258
303
|
### `EntryManager`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|