Giter Site home page Giter Site logo

Comments (4)

urschrei avatar urschrei commented on June 8, 2024 1

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.

urschrei avatar urschrei commented on June 8, 2024

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.

Cutuchiqueno avatar Cutuchiqueno commented on June 8, 2024

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.

urschrei avatar urschrei commented on June 8, 2024

Hmm I'll have a think about the consistency issue.

from pyzotero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.