Giter Site home page Giter Site logo

zotero-cli's Introduction

zotero-cli

asciicast

A simple command-line interface for the Zotero API.

Currently the following features are supported:

  • Search for items in the library
  • Add/Edit notes for existing items
  • Launch reader application for item attachments
  • Edit notes with a text editor of your choice in any format supported by pandoc (markdown, reStructuredText, etc.)

Installation

zotero-cli can be trivially installed from PyPi with pip:

$ pip install zotero-cli

If you want to try the bleeding-edge version:

$ pip install git+git://github.com/jbaiter/zotero-cli.git@master

Usage

To change the editor on *nix systems, set the VISUAL environment variable.

If you want to use a markup format other than pandoc's markdown, edit the configuration file under ~/.config/zotcli/config.ini and set the note_format field to your desired value (as seen in pandoc --help).

First, perform the initial configuration to generate an API key for the application:

$ zotcli configure

Search for an item:

$ zotcli query "deep learning"
[F5R83K6P] Goodfellow et al.: Deep Learning

Query strings with whitespace must be enclosed in quotes. For details on the supported syntax, consult the SQLite FTS documentation. Briefly, supported are AND/OR/NOT operators and prefix-search via the Kleene operator (e.g. pref*).

Read an item's attachment:

$ zotcli read "deep learning"
# Will launch the default PDF viewer with the item's first PDF attachment

Add a new note to an item using either the item's ID or a query string to locate it:

$ zotcli add-note "deep learning"
# Edit note in editor, save and it will be added to the library

If more than one item is found for the query string, you will be prompted which one to use.

Edit an existing note (you can use a query string instead of an ID, too):

$ zotcli edit-note F5R83K6P
# Edit note in editor, save and it will be updated in the library

zotero-cli's People

Contributors

jbaiter avatar joelostblom avatar kkremitzki avatar jdpopkin avatar

Watchers

James Cloos avatar  avatar  avatar

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.