pyzotero 1.7.1__tar.gz → 1.7.2__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.
- {pyzotero-1.7.1 → pyzotero-1.7.2}/PKG-INFO +1 -1
- {pyzotero-1.7.1 → pyzotero-1.7.2}/pyproject.toml +1 -1
- {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/cli.py +7 -2
- {pyzotero-1.7.1 → pyzotero-1.7.2}/LICENSE.md +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/README.md +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/Makefile +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/_templates/layout.html +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/cat.png +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/conf.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/index.rst +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/__init__.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/filetransport.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/zotero.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/zotero_errors.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/__init__.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/attachments_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/citation_doc.xml +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collection_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collection_tags.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collection_versions.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collections_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/creation_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/groups_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_fields.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_file.pdf +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_template.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_types.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_versions.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/items_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/keys_doc.txt +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/tags_doc.json +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/test_async.py +0 -0
- {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/test_zotero.py +0 -0
|
@@ -5,7 +5,7 @@ import sys
|
|
|
5
5
|
|
|
6
6
|
import click
|
|
7
7
|
|
|
8
|
-
from pyzotero import zotero
|
|
8
|
+
from pyzotero import __version__, zotero
|
|
9
9
|
from pyzotero.zotero import chunks
|
|
10
10
|
|
|
11
11
|
|
|
@@ -15,6 +15,7 @@ def _get_zotero_client(locale="en-US"):
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
@click.group()
|
|
18
|
+
@click.version_option(version=__version__, prog_name="pyzotero")
|
|
18
19
|
@click.option(
|
|
19
20
|
"--locale",
|
|
20
21
|
default="en-US",
|
|
@@ -210,7 +211,11 @@ def search(ctx, query, fulltext, itemtype, collection, limit, output_json): # n
|
|
|
210
211
|
|
|
211
212
|
# Output results
|
|
212
213
|
if output_json:
|
|
213
|
-
click.echo(
|
|
214
|
+
click.echo(
|
|
215
|
+
json.dumps(
|
|
216
|
+
{"count": len(output_items), "items": output_items}, indent=2
|
|
217
|
+
)
|
|
218
|
+
)
|
|
214
219
|
else:
|
|
215
220
|
click.echo(f"\nFound {len(results)} items:\n")
|
|
216
221
|
for idx, item_obj in enumerate(output_items, 1):
|
|
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
|