Comments (4)
Released to PyPI as v1.1.16
The signature is the same as add_tags()
; you can pass an arbitrary (up to 50) number of tags, or use a list with the splat operator:
delete_tags('tag_a', 'tag_b', 'tag_c')
delete_tags(*[tag_list])
from pyzotero.
Could you test this by uninstalling pyzotero, then doing pip install https://github.com/urschrei/pyzotero/archive/dev.zip
?
That should give you a delete_tags(['tag a', 'tag b', 'tag c'])
(up to 50 tags) method. I'll merge it into master and cut a release if it's working correctly.
from pyzotero.
Hi,
thanks for this quick implementation! I tested it and it works perfect. Tags are completely removed from the tag library and not only from items so that versions of the same tag with different case can be added later on.
Just for curiosity and security reasons I also tested if tags are removed by substring match and fortunately they are not. Curiously enough the string that matches the tag which should be removed is case sensitive like it sould be in the Zotero API. I really wonder why the same does not comply with the way Tags are handled inside the Zotero GUI. So everything is great, thx.
The only small issue which might be a question of consistency within pyzotero is that the add_tags
method add tags as a list of n parameters whereas the new del_tags
method takes one parameter that is a list of n tags. I do not know if you want to change that but I wanted to mention it at least.
Thx
from pyzotero.
Hmm I'll have a think about the consistency issue.
from pyzotero.
Related Issues (20)
- There has an question of this code HOT 1
- pyzotero.zotero_errors.HTTPError: Code: 500 HOT 6
- update_items() only processes the first chunk (50 items) HOT 2
- How to get notes associated with a journal entry? HOT 2
- API Limits? HOT 4
- retrieving items from subcollections HOT 2
- Automatically upload or update pdfs in zotero with pyzotero HOT 7
- get_subset does not return actual data
- Can't attach note to item HOT 3
- Deleting a note HOT 3
- Are new Zotero beta notes and annotations (not saved in the PDF) retrievable in Pyzotero? HOT 6
- HTTP response is stored in Zotero.request property
- report requests.exceptions.HTTPError: 403, when use attachment_simple() function HOT 1
- Can't retrieve groups metadata.
- Feature Request - Add tags and modify comments of annotations HOT 8
- Missing git tag for 1.5.3 HOT 2
- How can I access the link of an attachment file in Zotero and update it? HOT 4
- Using search/request parameters HOT 2
- Software itemType HOT 2
- Wrong documentation for combining tags via logical "OR" operator?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyzotero.