pyzotero 1.6.9
pip install pyzotero
Released:
Python wrapper for the Zotero API
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Blue Oak Model License (BlueOak-1.0.0) (# Blue Oak Model License)
- Author: Stephan Hügel
- Tags Zotero, DH
- Requires: Python >=3.9
-
Provides-Extra:
test
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Pyzotero: An API Client for the Zotero API
Quickstart
pip install pyzotero
orconda config --add channels conda-forge && conda install pyzotero
- You'll need the ID of the personal or group library you want to access:
- Your personal library ID is available here, in the section
Your userID for use in API calls
- For group libraries, the ID can be found by opening the group's page:
https://www.zotero.org/groups/groupname
, and hovering over thegroup settings
link. The ID is the integer after/groups/
- Your personal library ID is available here, in the section
- You'll also need† to get an API key here
- Are you accessing your own Zotero library?
library_type
is'user'
- Are you accessing a shared group library?
library_type
is'group'
.
Then:
from pyzotero import zotero
zot = zotero.Zotero(library_id, library_type, api_key) # local=True for read access to local Zotero
items = zot.top(limit=5)
# we've retrieved the latest five top-level items in our library
# we can print each item's item type and ID
for item in items:
print('Item: %s | Key: %s' % (item['data']['itemType'], item['data']['key']))
Documentation
Full documentation of available Pyzotero methods, code examples, and sample output is available on Read The Docs.
Installation
- Using pip:
pip install pyzotero
(it's available as a wheel, and is tested on Python 3.7 and up) - Using Anaconda:
conda config --add channels conda-forge && conda install pyzotero
- From a local clone, if you wish to install Pyzotero from a specific branch:
Example:
git clone git://github.com/urschrei/pyzotero.git
cd pyzotero
git checkout main
pip install .
Testing
Run pytest .
from the top-level directory.
Issues
The latest commits can be found on the main branch, although new features are currently rare. If you encounter an error, please open an issue.
Pull Requests
Pull requests are welcomed. Please read the contribution guidelines. In particular, please base your PR on the dev
branch.
Versioning
As of v1.0.0, Pyzotero is versioned according to Semver; version increments are performed as follows:
- MAJOR version will increment with incompatible API changes,
- MINOR version will increment when functionality is added in a backwards-compatible manner, and
- PATCH version will increment with backwards-compatible bug fixes.
Citation
Pyzotero has a DOI:
You may also cite Pyzotero using CITATION.cff.
A sample citation (APA 6th edition) might look like:
Stephan Hügel, The Pyzotero Authors (2019, May 18). urschrei/pyzotero: Version v1.3.15. http://doi.org/10.5281/zenodo.2917290
License
Pyzotero is licensed under the Blue Oak Model Licence 1.0.0. See LICENSE.md for details.
† This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Blue Oak Model License (BlueOak-1.0.0) (# Blue Oak Model License)
- Author: Stephan Hügel
- Tags Zotero, DH
- Requires: Python >=3.9
-
Provides-Extra:
test
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyzotero-1.6.9.tar.gz
.
File metadata
- Download URL: pyzotero-1.6.9.tar.gz
- Upload date:
- Size: 552.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a40ac678bd5293ebebc7f799220c0494918fedb9cc11fca9e66b39ce8898988 |
|
MD5 | ee8dfacc5896e49d0204e43158cbf734 |
|
BLAKE2b-256 | a611134390278c35a50528aefdb32819c72a6197352f8e7ae79e860671b9a907 |
Provenance
The following attestation bundles were made for pyzotero-1.6.9.tar.gz
:
Publisher:
tests.yml
on urschrei/pyzotero
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pyzotero-1.6.9.tar.gz
- Subject digest:
1a40ac678bd5293ebebc7f799220c0494918fedb9cc11fca9e66b39ce8898988
- Sigstore transparency entry: 172162238
- Sigstore integration time:
- Permalink:
urschrei/pyzotero@65db1e3907a6c6958533e710b9d7d86b8b20b600
- Branch / Tag:
refs/tags/v1.6.9
- Owner: https://github.com/urschrei
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
tests.yml@65db1e3907a6c6958533e710b9d7d86b8b20b600
- Trigger Event:
push
- Statement type:
File details
Details for the file pyzotero-1.6.9-py3-none-any.whl
.
File metadata
- Download URL: pyzotero-1.6.9-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95b0cd214fa5e5259567b76624b770a380929ee1fca8cdb7a83c7adc965c9c31 |
|
MD5 | 87295fceba31af2c723c9ce131f33efb |
|
BLAKE2b-256 | 43be5754b553ea812ad3a8ceea28ec71606dd4ed0d7a0206bfa3abe414873303 |
Provenance
The following attestation bundles were made for pyzotero-1.6.9-py3-none-any.whl
:
Publisher:
tests.yml
on urschrei/pyzotero
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pyzotero-1.6.9-py3-none-any.whl
- Subject digest:
95b0cd214fa5e5259567b76624b770a380929ee1fca8cdb7a83c7adc965c9c31
- Sigstore transparency entry: 172162241
- Sigstore integration time:
- Permalink:
urschrei/pyzotero@65db1e3907a6c6958533e710b9d7d86b8b20b600
- Branch / Tag:
refs/tags/v1.6.9
- Owner: https://github.com/urschrei
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
tests.yml@65db1e3907a6c6958533e710b9d7d86b8b20b600
- Trigger Event:
push
- Statement type: