dump-things-pyclient 0.2.7__py3-none-any.whl → 0.2.8__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.
- dump_things_pyclient/commands/dtc_plugins/auto_curate.py +1 -2
- dump_things_pyclient/commands/dtc_plugins/get_records.py +5 -6
- {dump_things_pyclient-0.2.7.dist-info → dump_things_pyclient-0.2.8.dist-info}/METADATA +1 -1
- {dump_things_pyclient-0.2.7.dist-info → dump_things_pyclient-0.2.8.dist-info}/RECORD +7 -7
- {dump_things_pyclient-0.2.7.dist-info → dump_things_pyclient-0.2.8.dist-info}/WHEEL +0 -0
- {dump_things_pyclient-0.2.7.dist-info → dump_things_pyclient-0.2.8.dist-info}/entry_points.txt +0 -0
- {dump_things_pyclient-0.2.7.dist-info → dump_things_pyclient-0.2.8.dist-info}/top_level.txt +0 -0
|
@@ -12,7 +12,6 @@ from typing import (
|
|
|
12
12
|
)
|
|
13
13
|
|
|
14
14
|
import rich_click as click
|
|
15
|
-
from rich import print as rprint
|
|
16
15
|
from rich.console import Console
|
|
17
16
|
from rich.progress import track
|
|
18
17
|
|
|
@@ -300,7 +299,7 @@ def auto_curate(
|
|
|
300
299
|
return 1
|
|
301
300
|
|
|
302
301
|
if output is not None:
|
|
303
|
-
|
|
302
|
+
click.echo(json.dumps(output, ensure_ascii=False))
|
|
304
303
|
|
|
305
304
|
return 0
|
|
306
305
|
|
|
@@ -68,13 +68,13 @@ console = Console(file=sys.stderr)
|
|
|
68
68
|
@click.option(
|
|
69
69
|
'--page-size', '-s',
|
|
70
70
|
type=click.IntRange(1, 100),
|
|
71
|
-
default=
|
|
71
|
+
default=None,
|
|
72
72
|
help='set the page size (default: 100). (ignored if "--pid" is provided)'
|
|
73
73
|
)
|
|
74
74
|
@click.option(
|
|
75
75
|
'--first-page', '-F',
|
|
76
76
|
type=click.INT,
|
|
77
|
-
default=
|
|
77
|
+
default=None,
|
|
78
78
|
help='the first page to return (default: 1). (ignored if "--pid" is provided)'
|
|
79
79
|
)
|
|
80
80
|
@click.option(
|
|
@@ -206,9 +206,8 @@ def get_records(
|
|
|
206
206
|
(cls, '-c/--class'),
|
|
207
207
|
):
|
|
208
208
|
if argument_value:
|
|
209
|
-
|
|
210
|
-
f'
|
|
211
|
-
err=True,
|
|
209
|
+
console.print(
|
|
210
|
+
f'[yellow]Warning[/yellow]: {argument_name} ignored because "-p/--pid" is provided',
|
|
212
211
|
)
|
|
213
212
|
|
|
214
213
|
kwargs['pid'] = pid
|
|
@@ -242,7 +241,7 @@ def get_records(
|
|
|
242
241
|
else:
|
|
243
242
|
kwargs.update(dict(
|
|
244
243
|
matching=matching,
|
|
245
|
-
page=first_page,
|
|
244
|
+
page=first_page or 1,
|
|
246
245
|
size=page_size or 100,
|
|
247
246
|
last_page=last_page,
|
|
248
247
|
))
|
|
@@ -5,17 +5,17 @@ dump_things_pyclient/commands/dtc.py,sha256=dxW5RuogqwhzfVujZ_EEsQMk8BcVMbZyMdg5
|
|
|
5
5
|
dump_things_pyclient/commands/json2ttl.py,sha256=8BkvdjLWZ_H0L6fTmuR2M2MglKiMUiuNUcuWr_w6_dQ,2133
|
|
6
6
|
dump_things_pyclient/commands/redirect.py,sha256=kl8pGj8khjxk4lhk8AJLfgtCIm5PtjeMAl0J6K5FB7M,264
|
|
7
7
|
dump_things_pyclient/commands/dtc_plugins/__init__.py,sha256=0YLByLiofhHkhJcDCkokldcCw3Jj0rsKJinRX4tt3Hc,514
|
|
8
|
-
dump_things_pyclient/commands/dtc_plugins/auto_curate.py,sha256=
|
|
8
|
+
dump_things_pyclient/commands/dtc_plugins/auto_curate.py,sha256=fWylrzsrBWzJthWJNd_NAy3KSfxKfdFQun6EACpymnw,9968
|
|
9
9
|
dump_things_pyclient/commands/dtc_plugins/clean_incoming.py,sha256=ikSPNTt254ax2tXhMK_gTgDCVkxMYJ_0NTAP8XsaRjk,2188
|
|
10
10
|
dump_things_pyclient/commands/dtc_plugins/delete_records.py,sha256=SRQTHz4cWofI-RVx_p_mUex3amTaGZ9xP_S4F12Pw64,3849
|
|
11
11
|
dump_things_pyclient/commands/dtc_plugins/export.py,sha256=Nbq-o1hq_6ZroBctKxzMyA1BSBnoqIkpSY8BO1aWuoA,7522
|
|
12
|
-
dump_things_pyclient/commands/dtc_plugins/get_records.py,sha256=
|
|
12
|
+
dump_things_pyclient/commands/dtc_plugins/get_records.py,sha256=5yzkZFrYIlN6O-QmAZjr6L5SFhpncC6lgQaqgZzg_TE,7614
|
|
13
13
|
dump_things_pyclient/commands/dtc_plugins/list_incoming.py,sha256=tmM0Qs4MVwMMLyERsWCxWGTM90rSNOShLpHH32wObd8,1959
|
|
14
14
|
dump_things_pyclient/commands/dtc_plugins/maintenance.py,sha256=yTw1T_cvVTmwuzrTPteu6O6qiNCMxL5ZQoVF8yb72-M,1707
|
|
15
15
|
dump_things_pyclient/commands/dtc_plugins/post_records.py,sha256=0676miD7VTMmokBAo7JdA9Dr9FZwhs0auNuRltulcBw,3469
|
|
16
16
|
dump_things_pyclient/commands/dtc_plugins/read_pages.py,sha256=Libxf36L-0wUqAqfavotZPRMy5LjWJ37n_zSae1TgTA,3546
|
|
17
|
-
dump_things_pyclient-0.2.
|
|
18
|
-
dump_things_pyclient-0.2.
|
|
19
|
-
dump_things_pyclient-0.2.
|
|
20
|
-
dump_things_pyclient-0.2.
|
|
21
|
-
dump_things_pyclient-0.2.
|
|
17
|
+
dump_things_pyclient-0.2.8.dist-info/METADATA,sha256=KAgBvgq-AlPkjmh-r5KwXkGNw9Wp0emCH3A8OCFNXJA,1028
|
|
18
|
+
dump_things_pyclient-0.2.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
19
|
+
dump_things_pyclient-0.2.8.dist-info/entry_points.txt,sha256=U1QhQtk767G_OXdZwPdTXYbIPfcDU13Z2u1d6exX8uE,470
|
|
20
|
+
dump_things_pyclient-0.2.8.dist-info/top_level.txt,sha256=Asvruw-SyLoYhWis1CFOx89RGxpjXoTZVGoq4JSGt88,21
|
|
21
|
+
dump_things_pyclient-0.2.8.dist-info/RECORD,,
|
|
File without changes
|
{dump_things_pyclient-0.2.7.dist-info → dump_things_pyclient-0.2.8.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|