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.
Files changed (34) hide show
  1. {pyzotero-1.7.1 → pyzotero-1.7.2}/PKG-INFO +1 -1
  2. {pyzotero-1.7.1 → pyzotero-1.7.2}/pyproject.toml +1 -1
  3. {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/cli.py +7 -2
  4. {pyzotero-1.7.1 → pyzotero-1.7.2}/LICENSE.md +0 -0
  5. {pyzotero-1.7.1 → pyzotero-1.7.2}/README.md +0 -0
  6. {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/Makefile +0 -0
  7. {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/_templates/layout.html +0 -0
  8. {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/cat.png +0 -0
  9. {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/conf.py +0 -0
  10. {pyzotero-1.7.1 → pyzotero-1.7.2}/doc/index.rst +0 -0
  11. {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/__init__.py +0 -0
  12. {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/filetransport.py +0 -0
  13. {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/zotero.py +0 -0
  14. {pyzotero-1.7.1 → pyzotero-1.7.2}/src/pyzotero/zotero_errors.py +0 -0
  15. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/__init__.py +0 -0
  16. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/attachments_doc.json +0 -0
  17. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/citation_doc.xml +0 -0
  18. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collection_doc.json +0 -0
  19. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collection_tags.json +0 -0
  20. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collection_versions.json +0 -0
  21. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/collections_doc.json +0 -0
  22. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/creation_doc.json +0 -0
  23. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/groups_doc.json +0 -0
  24. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_doc.json +0 -0
  25. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_fields.json +0 -0
  26. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_file.pdf +0 -0
  27. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_template.json +0 -0
  28. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_types.json +0 -0
  29. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/item_versions.json +0 -0
  30. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/items_doc.json +0 -0
  31. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/keys_doc.txt +0 -0
  32. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/api_responses/tags_doc.json +0 -0
  33. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/test_async.py +0 -0
  34. {pyzotero-1.7.1 → pyzotero-1.7.2}/tests/test_zotero.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyzotero
3
- Version: 1.7.1
3
+ Version: 1.7.2
4
4
  Summary: Python wrapper for the Zotero API
5
5
  Keywords: Zotero,DH
6
6
  Author: Stephan Hügel
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyzotero"
3
- version = "1.7.1"
3
+ version = "1.7.2"
4
4
  description = "Python wrapper for the Zotero API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -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(json.dumps(output_items, indent=2))
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