pyzotero 1.6.1__tar.gz → 1.6.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 (55) hide show
  1. {pyzotero-1.6.1 → pyzotero-1.6.2}/.github/pull_request_template.md +2 -2
  2. {pyzotero-1.6.1 → pyzotero-1.6.2}/.github/workflows/tests.yml +1 -1
  3. {pyzotero-1.6.1 → pyzotero-1.6.2}/PKG-INFO +8 -7
  4. {pyzotero-1.6.1 → pyzotero-1.6.2}/README.md +5 -5
  5. {pyzotero-1.6.1 → pyzotero-1.6.2}/doc/index.rst +2 -2
  6. {pyzotero-1.6.1 → pyzotero-1.6.2}/pyproject.toml +4 -3
  7. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/_version.py +2 -2
  8. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero/zotero.py +109 -128
  9. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero.egg-info/PKG-INFO +8 -7
  10. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero.egg-info/requires.txt +2 -1
  11. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/test_zotero.py +30 -7
  12. pyzotero-1.6.2/uv.lock +488 -0
  13. pyzotero-1.6.1/uv.lock +0 -345
  14. {pyzotero-1.6.1 → pyzotero-1.6.2}/.coveragerc +0 -0
  15. {pyzotero-1.6.1 → pyzotero-1.6.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  16. {pyzotero-1.6.1 → pyzotero-1.6.2}/.github/ISSUE_TEMPLATE/usage_question.md +0 -0
  17. {pyzotero-1.6.1 → pyzotero-1.6.2}/.github/dependabot.yml +0 -0
  18. {pyzotero-1.6.1 → pyzotero-1.6.2}/.gitignore +0 -0
  19. {pyzotero-1.6.1 → pyzotero-1.6.2}/.readthedocs.yaml +0 -0
  20. {pyzotero-1.6.1 → pyzotero-1.6.2}/AUTHORS +0 -0
  21. {pyzotero-1.6.1 → pyzotero-1.6.2}/CITATION.cff +0 -0
  22. {pyzotero-1.6.1 → pyzotero-1.6.2}/CONTRIBUTING.md +0 -0
  23. {pyzotero-1.6.1 → pyzotero-1.6.2}/CONTRIBUTORS.md +0 -0
  24. {pyzotero-1.6.1 → pyzotero-1.6.2}/LICENSE.md +0 -0
  25. {pyzotero-1.6.1 → pyzotero-1.6.2}/__init__.py +0 -0
  26. {pyzotero-1.6.1 → pyzotero-1.6.2}/doc/Makefile +0 -0
  27. {pyzotero-1.6.1 → pyzotero-1.6.2}/doc/_templates/layout.html +0 -0
  28. {pyzotero-1.6.1 → pyzotero-1.6.2}/doc/cat.png +0 -0
  29. {pyzotero-1.6.1 → pyzotero-1.6.2}/doc/conf.py +0 -0
  30. {pyzotero-1.6.1 → pyzotero-1.6.2}/dump_contributors.py +0 -0
  31. {pyzotero-1.6.1 → pyzotero-1.6.2}/setup.cfg +0 -0
  32. {pyzotero-1.6.1 → pyzotero-1.6.2}/setup.py +0 -0
  33. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero/__init__.py +0 -0
  34. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero/zotero_errors.py +0 -0
  35. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero.egg-info/SOURCES.txt +0 -0
  36. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero.egg-info/dependency_links.txt +0 -0
  37. {pyzotero-1.6.1 → pyzotero-1.6.2}/src/pyzotero.egg-info/top_level.txt +0 -0
  38. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/__init__.py +0 -0
  39. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/attachments_doc.json +0 -0
  40. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/citation_doc.xml +0 -0
  41. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/collection_doc.json +0 -0
  42. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/collection_tags.json +0 -0
  43. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/collection_versions.json +0 -0
  44. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/collections_doc.json +0 -0
  45. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/creation_doc.json +0 -0
  46. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/groups_doc.json +0 -0
  47. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/item_doc.json +0 -0
  48. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/item_fields.json +0 -0
  49. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/item_file.pdf +0 -0
  50. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/item_template.json +0 -0
  51. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/item_types.json +0 -0
  52. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/item_versions.json +0 -0
  53. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/items_doc.json +0 -0
  54. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/keys_doc.txt +0 -0
  55. {pyzotero-1.6.1 → pyzotero-1.6.2}/tests/api_responses/tags_doc.json +0 -0
@@ -1,7 +1,7 @@
1
1
  Thanks for opening a PR. Please read the following:
2
2
 
3
- - **Base your changes on the `dev` branch**
4
- - If necessary, rebase against `dev` before opening a pull request
3
+ - **Base your changes on the `main` branch**
4
+ - If necessary, rebase against `main` before opening a pull request
5
5
  - Follow [PEP 8](http://www.python.org/dev/peps/pep-0008/). I run [`ruff`](https://docs.astral.sh/ruff/) against the codebase and perhaps you should, too
6
6
  - Use spaces for indentation, and ensure that all methods have a proper docstring. **Please don't use Doctest**
7
7
  - If at all possible, don't add dependencies
@@ -4,7 +4,7 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  build:
7
-
7
+ name: Build and test
8
8
  runs-on: ubuntu-latest
9
9
  strategy:
10
10
  matrix:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyzotero
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: Python wrapper for the Zotero API
5
5
  Author-email: Stephan Hügel <urschrei@gmail.com>
6
6
  License: # Blue Oak Model License
@@ -61,12 +61,13 @@ License-File: LICENSE.md
61
61
  License-File: AUTHORS
62
62
  Requires-Dist: feedparser>=6.0.11
63
63
  Requires-Dist: pytz
64
- Requires-Dist: requests>=2.21.0
65
64
  Requires-Dist: bibtexparser
65
+ Requires-Dist: httpx>=0.28.1
66
66
  Provides-Extra: test
67
67
  Requires-Dist: pytest>=7.4.2; extra == "test"
68
68
  Requires-Dist: httpretty; extra == "test"
69
69
  Requires-Dist: python-dateutil; extra == "test"
70
+ Requires-Dist: ipython; extra == "test"
70
71
 
71
72
  [![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
72
73
 
@@ -86,7 +87,7 @@ Then:
86
87
 
87
88
  ``` python
88
89
  from pyzotero import zotero
89
- zot = zotero.Zotero(library_id, library_type, api_key)
90
+ zot = zotero.Zotero(library_id, library_type, api_key) # local=True for read access to local Zotero
90
91
  items = zot.top(limit=5)
91
92
  # we've retrieved the latest five top-level items in our library
92
93
  # we can print each item's item type and ID
@@ -109,7 +110,7 @@ Example:
109
110
  ``` bash
110
111
  git clone git://github.com/urschrei/pyzotero.git
111
112
  cd pyzotero
112
- git checkout dev
113
+ git checkout main
113
114
  pip install .
114
115
  ```
115
116
 
@@ -119,7 +120,7 @@ Run `pytest .` from the top-level directory.
119
120
 
120
121
  ## Issues
121
122
 
122
- The latest commits can be found on the [dev branch][9], although new features are currently rare. If you encounter an error, please open an issue.
123
+ The latest commits can be found on the [main branch][9], although new features are currently rare. If you encounter an error, please open an issue.
123
124
 
124
125
  ## Pull Requests
125
126
 
@@ -145,14 +146,14 @@ A sample citation (APA 6th edition) might look like:
145
146
 
146
147
  # License
147
148
 
148
- Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENCE.md](LICENCE.md) for details.
149
+ Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENSE.md](LICENSE.md) for details.
149
150
 
150
151
  [1]: https://www.zotero.org/support/dev/web_api/v3/start
151
152
  [2]: https://www.zotero.org/settings/keys/new
152
153
  [3]: http://pyzotero.readthedocs.org/en/latest/
153
154
  [7]: https://nose2.readthedocs.io/en/latest/
154
155
  [8]: https://opensource.org/license/blue-oak-model-license
155
- [9]: https://github.com/urschrei/pyzotero/tree/dev
156
+ [9]: https://github.com/urschrei/pyzotero/tree/main
156
157
  [10]: http://www.pip-installer.org/en/latest/index.html
157
158
  † This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
158
159
 
@@ -16,7 +16,7 @@ Then:
16
16
 
17
17
  ``` python
18
18
  from pyzotero import zotero
19
- zot = zotero.Zotero(library_id, library_type, api_key)
19
+ zot = zotero.Zotero(library_id, library_type, api_key) # local=True for read access to local Zotero
20
20
  items = zot.top(limit=5)
21
21
  # we've retrieved the latest five top-level items in our library
22
22
  # we can print each item's item type and ID
@@ -39,7 +39,7 @@ Example:
39
39
  ``` bash
40
40
  git clone git://github.com/urschrei/pyzotero.git
41
41
  cd pyzotero
42
- git checkout dev
42
+ git checkout main
43
43
  pip install .
44
44
  ```
45
45
 
@@ -49,7 +49,7 @@ Run `pytest .` from the top-level directory.
49
49
 
50
50
  ## Issues
51
51
 
52
- The latest commits can be found on the [dev branch][9], although new features are currently rare. If you encounter an error, please open an issue.
52
+ The latest commits can be found on the [main branch][9], although new features are currently rare. If you encounter an error, please open an issue.
53
53
 
54
54
  ## Pull Requests
55
55
 
@@ -75,14 +75,14 @@ A sample citation (APA 6th edition) might look like:
75
75
 
76
76
  # License
77
77
 
78
- Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENCE.md](LICENCE.md) for details.
78
+ Pyzotero is licensed under the [Blue Oak Model Licence 1.0.0][8]. See [LICENSE.md](LICENSE.md) for details.
79
79
 
80
80
  [1]: https://www.zotero.org/support/dev/web_api/v3/start
81
81
  [2]: https://www.zotero.org/settings/keys/new
82
82
  [3]: http://pyzotero.readthedocs.org/en/latest/
83
83
  [7]: https://nose2.readthedocs.io/en/latest/
84
84
  [8]: https://opensource.org/license/blue-oak-model-license
85
- [9]: https://github.com/urschrei/pyzotero/tree/dev
85
+ [9]: https://github.com/urschrei/pyzotero/tree/main
86
86
  [10]: http://www.pip-installer.org/en/latest/index.html
87
87
  † This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
88
88
 
@@ -59,7 +59,7 @@ From a local clone, if you wish to install Pyzotero from a specific branch:
59
59
 
60
60
  git clone git://github.com/urschrei/pyzotero.git
61
61
  cd pyzotero
62
- git checkout dev
62
+ git checkout main
63
63
  pip install .
64
64
 
65
65
  The Pyzotero source tarball is also available from `PyPI <http://pypi.python.org/pypi/Pyzotero>`_
@@ -69,7 +69,7 @@ The Pyzotero source tarball is also available from `PyPI <http://pypi.python.org
69
69
  ===============================
70
70
  Installing development versions
71
71
  ===============================
72
- Pyzotero remains in development as of November 2024. Unstable development versions can be found on the `Github dev branch <https://github.com/urschrei/pyzotero/tree/dev>`_, and installed directly from there using pip: ``pip install -e git+https://github.com/urschrei/pyzotero.git@dev#egg=pyzotero``, or from the checked-out ``dev`` branch on a local clone, as in the example above.
72
+ Pyzotero remains in development as of November 2024. Unstable development versions can be found on the `Github main branch <https://github.com/urschrei/pyzotero/tree/main>`_, and installed directly from a checked-out ``main`` branch on a local clone, as in the example above.
73
73
 
74
74
 
75
75
  =======
@@ -6,8 +6,8 @@ requires-python = ">=3.8"
6
6
  dependencies = [
7
7
  "feedparser >= 6.0.11",
8
8
  "pytz",
9
- "requests >= 2.21.0",
10
- "bibtexparser"
9
+ "bibtexparser",
10
+ "httpx>=0.28.1",
11
11
  ]
12
12
  authors = [{ name = "Stephan Hügel", email = "urschrei@gmail.com" }]
13
13
  license = {file = "LICENSE.md"}
@@ -35,7 +35,8 @@ Tracker = "https://github.com/urschrei/pyzotero/issues"
35
35
  test = [
36
36
  "pytest >= 7.4.2",
37
37
  "httpretty",
38
- "python-dateutil"
38
+ "python-dateutil",
39
+ "ipython"
39
40
  ]
40
41
 
41
42
  [tool.setuptools.dynamic]
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.6.1'
16
- __version_tuple__ = version_tuple = (1, 6, 1)
15
+ __version__ = version = '1.6.2'
16
+ __version_tuple__ = version_tuple = (1, 6, 2)