Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
pip install pyzotero
or conda config --add channels conda-forge && conda install pyzotero
Your userID for use in API calls
https://www.zotero.org/groups/groupname
, and hovering over the group settings
link. The ID is the integer after /groups/
library_type
is 'user'
library_type
is 'group'
.Then:
from pyzotero import zotero
zot = zotero.Zotero(library_id, library_type, api_key)
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']))
Full documentation of available Pyzotero methods, code examples, and sample output is available on Read The Docs.
pip install pyzotero
(it's available as a wheel, and is tested on Python 3.7 and up)conda config --add channels conda-forge && conda install pyzotero
Example:
git clone git://github.com/urschrei/pyzotero.git
cd pyzotero
git checkout dev
pip install .
Run pytest .
from the top-level directory.
The latest commits can be found on the dev branch, although new features are currently rare. If you encounter an error, please open an issue.
Pull requests are welcomed. Please read the contribution guidelines. In particular, please base your PR on the dev
branch.
As of v1.0.0, Pyzotero is versioned according to Semver; version increments are performed as follows:
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
Pyzotero is licensed under the Blue Oak Model Licence 1.0.0. See LICENCE.md for details.
† This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
FAQs
Python wrapper for the Zotero API
We found that pyzotero demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.