rda-python-globus 1.0.14__tar.gz → 1.0.18__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.
- {rda_python_globus-1.0.14/src/rda_python_globus.egg-info → rda_python_globus-1.0.18}/PKG-INFO +6 -5
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/README.md +5 -4
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/pyproject.toml +1 -1
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/task_management.py +50 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18/src/rda_python_globus.egg-info}/PKG-INFO +6 -5
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/LICENSE +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/setup.cfg +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/__init__.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/file_management.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/lib/__init__.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/lib/auth.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/lib/config.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/list.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/main.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/transfer.py +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/SOURCES.txt +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/dependency_links.txt +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/entry_points.txt +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/requires.txt +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/top_level.txt +0 -0
- {rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/tests/test_example.py +0 -0
{rda_python_globus-1.0.14/src/rda_python_globus.egg-info → rda_python_globus-1.0.18}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_globus
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.18
|
|
4
4
|
Summary: Tools for managing Globus transfers supporting the NSF NCAR Geoscience Data Exchange (GDEX) project.
|
|
5
5
|
Author-email: Thomas Cram <tcram@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-globus
|
|
@@ -20,7 +20,7 @@ Dynamic: license-file
|
|
|
20
20
|
# dsglobus
|
|
21
21
|
|
|
22
22
|
This application is a command-line tool for Globus data transfer and management of files
|
|
23
|
-
archived in the NSF NCAR
|
|
23
|
+
archived in the [NSF NCAR Geoscience Data Exchange (GDEX)](https://gdex.ucar.edu).
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
26
26
|
|
|
@@ -43,6 +43,7 @@ The `dsglobus` app is run with the following subcommands. Each supports a
|
|
|
43
43
|
dsglobus transfer --help
|
|
44
44
|
dsglobus get-task --help
|
|
45
45
|
dsglobus task-list --help
|
|
46
|
+
dsglobus task-event-list --help
|
|
46
47
|
dsglobus cancel-task --help
|
|
47
48
|
dsglobus ls --help
|
|
48
49
|
dsglobus mkdir --help
|
|
@@ -51,12 +52,12 @@ dsglobus delete --help
|
|
|
51
52
|
```
|
|
52
53
|
|
|
53
54
|
### Example usage
|
|
54
|
-
1. Transfer a single file from the `NCAR
|
|
55
|
+
1. Transfer a single file from the `NCAR GDEX GLADE` endpoint to the `NCAR GDEX Quasar`
|
|
55
56
|
endpoint:
|
|
56
57
|
```
|
|
57
58
|
$ dsglobus transfer \
|
|
58
|
-
--source-endpoint
|
|
59
|
-
--destination-endpoint
|
|
59
|
+
--source-endpoint gdex-glade \
|
|
60
|
+
--destination-endpoint gdex-quasar \
|
|
60
61
|
--source-file /data/d999009/file.txt \
|
|
61
62
|
--destination-file /d999009/file.txt
|
|
62
63
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsglobus
|
|
2
2
|
|
|
3
3
|
This application is a command-line tool for Globus data transfer and management of files
|
|
4
|
-
archived in the NSF NCAR
|
|
4
|
+
archived in the [NSF NCAR Geoscience Data Exchange (GDEX)](https://gdex.ucar.edu).
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -24,6 +24,7 @@ The `dsglobus` app is run with the following subcommands. Each supports a
|
|
|
24
24
|
dsglobus transfer --help
|
|
25
25
|
dsglobus get-task --help
|
|
26
26
|
dsglobus task-list --help
|
|
27
|
+
dsglobus task-event-list --help
|
|
27
28
|
dsglobus cancel-task --help
|
|
28
29
|
dsglobus ls --help
|
|
29
30
|
dsglobus mkdir --help
|
|
@@ -32,12 +33,12 @@ dsglobus delete --help
|
|
|
32
33
|
```
|
|
33
34
|
|
|
34
35
|
### Example usage
|
|
35
|
-
1. Transfer a single file from the `NCAR
|
|
36
|
+
1. Transfer a single file from the `NCAR GDEX GLADE` endpoint to the `NCAR GDEX Quasar`
|
|
36
37
|
endpoint:
|
|
37
38
|
```
|
|
38
39
|
$ dsglobus transfer \
|
|
39
|
-
--source-endpoint
|
|
40
|
-
--destination-endpoint
|
|
40
|
+
--source-endpoint gdex-glade \
|
|
41
|
+
--destination-endpoint gdex-quasar \
|
|
41
42
|
--source-file /data/d999009/file.txt \
|
|
42
43
|
--destination-file /d999009/file.txt
|
|
43
44
|
```
|
{rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/task_management.py
RENAMED
|
@@ -212,6 +212,55 @@ def task_list(
|
|
|
212
212
|
|
|
213
213
|
print_table(tasks, fields)
|
|
214
214
|
|
|
215
|
+
@click.command(
|
|
216
|
+
help="List events and show details about a Globus task, including faults and error messages.",
|
|
217
|
+
)
|
|
218
|
+
@click.argument(
|
|
219
|
+
"task-id",
|
|
220
|
+
type=click.UUID,
|
|
221
|
+
)
|
|
222
|
+
@click.option(
|
|
223
|
+
"--limit",
|
|
224
|
+
"-l",
|
|
225
|
+
type=int,
|
|
226
|
+
default=None,
|
|
227
|
+
show_default=True,
|
|
228
|
+
help="Limit the number of results returned.",
|
|
229
|
+
)
|
|
230
|
+
@click.option(
|
|
231
|
+
"--offset",
|
|
232
|
+
"-o",
|
|
233
|
+
type=int,
|
|
234
|
+
default=None,
|
|
235
|
+
help="Offset used in pagination.",
|
|
236
|
+
)
|
|
237
|
+
@click.option(
|
|
238
|
+
"--error-only",
|
|
239
|
+
"-e",
|
|
240
|
+
is_flag=True,
|
|
241
|
+
help="Only show events with error codes.",
|
|
242
|
+
)
|
|
243
|
+
@namespace_options
|
|
244
|
+
@common_options
|
|
245
|
+
def task_event_list(task_id: uuid.UUID, limit: int, offset: int, error_only: bool, namespace: str) -> None:
|
|
246
|
+
"""
|
|
247
|
+
List the events associated with a Globus task. This includes status
|
|
248
|
+
updates, error messages, and other information about the task's progress.
|
|
249
|
+
"""
|
|
250
|
+
if not task_id:
|
|
251
|
+
raise click.UsageError("TASK_ID is required.")
|
|
252
|
+
|
|
253
|
+
tc = transfer_client(namespace=namespace)
|
|
254
|
+
try:
|
|
255
|
+
if error_only:
|
|
256
|
+
filters = {"filter": "is_error:1"}
|
|
257
|
+
for event in tc.task_event_list(task_id, limit=limit, offset=offset, query_params=filters):
|
|
258
|
+
print(f"Event on Task({task_id}) at {event['time']}:\n{event['code']}\n{event['description']}\n{event['details']}\n")
|
|
259
|
+
except (GlobusAPIError, NetworkError) as e:
|
|
260
|
+
logger.error(f"Error: {e}")
|
|
261
|
+
click.echo("Failed to get task events.")
|
|
262
|
+
return
|
|
263
|
+
|
|
215
264
|
@click.command(
|
|
216
265
|
help="Cancel a Globus task.",
|
|
217
266
|
)
|
|
@@ -241,4 +290,5 @@ def add_commands(group):
|
|
|
241
290
|
""" Add task management commands to a click group. """
|
|
242
291
|
group.add_command(get_task)
|
|
243
292
|
group.add_command(task_list)
|
|
293
|
+
group.add_command(task_event_list)
|
|
244
294
|
group.add_command(cancel_task)
|
{rda_python_globus-1.0.14 → rda_python_globus-1.0.18/src/rda_python_globus.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_globus
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.18
|
|
4
4
|
Summary: Tools for managing Globus transfers supporting the NSF NCAR Geoscience Data Exchange (GDEX) project.
|
|
5
5
|
Author-email: Thomas Cram <tcram@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-globus
|
|
@@ -20,7 +20,7 @@ Dynamic: license-file
|
|
|
20
20
|
# dsglobus
|
|
21
21
|
|
|
22
22
|
This application is a command-line tool for Globus data transfer and management of files
|
|
23
|
-
archived in the NSF NCAR
|
|
23
|
+
archived in the [NSF NCAR Geoscience Data Exchange (GDEX)](https://gdex.ucar.edu).
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
26
26
|
|
|
@@ -43,6 +43,7 @@ The `dsglobus` app is run with the following subcommands. Each supports a
|
|
|
43
43
|
dsglobus transfer --help
|
|
44
44
|
dsglobus get-task --help
|
|
45
45
|
dsglobus task-list --help
|
|
46
|
+
dsglobus task-event-list --help
|
|
46
47
|
dsglobus cancel-task --help
|
|
47
48
|
dsglobus ls --help
|
|
48
49
|
dsglobus mkdir --help
|
|
@@ -51,12 +52,12 @@ dsglobus delete --help
|
|
|
51
52
|
```
|
|
52
53
|
|
|
53
54
|
### Example usage
|
|
54
|
-
1. Transfer a single file from the `NCAR
|
|
55
|
+
1. Transfer a single file from the `NCAR GDEX GLADE` endpoint to the `NCAR GDEX Quasar`
|
|
55
56
|
endpoint:
|
|
56
57
|
```
|
|
57
58
|
$ dsglobus transfer \
|
|
58
|
-
--source-endpoint
|
|
59
|
-
--destination-endpoint
|
|
59
|
+
--source-endpoint gdex-glade \
|
|
60
|
+
--destination-endpoint gdex-quasar \
|
|
60
61
|
--source-file /data/d999009/file.txt \
|
|
61
62
|
--destination-file /d999009/file.txt
|
|
62
63
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus/file_management.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_globus-1.0.14 → rda_python_globus-1.0.18}/src/rda_python_globus.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|