MCPcopy Create free account

hub / github.com/deanishe/zothero / functions

Functions438 in github.com/deanishe/zothero

Methodconn
Return connection to the database.
src/lib/zothero/zotero.py:181
Methodconn
Database connection.
src/lib/zothero/cache.py:95
Methodconn
Connection to database.
src/lib/zothero/cache.py:276
Methodconn
Return connection to the database.
src/lib/zothero/index.py:136
Methodcontent
Raw content of response (i.e. bytes). :returns: Body of HTTP response :rtype: str
src/lib/workflow/web.py:297
Methodcreators
Properly formatted authors. Returns 'xxx.' if there are no creators, otherwise joins them with commas & "and", and adds a full stop.
src/lib/zothero/formatting.py:49
Methodcsl
CSL data for `Entry` for converting to CSL-JSON. Returns: dict: Entry data converted to CSL types.
src/lib/zothero/models.py:134
Methodcsljson
CSL-JSON for `Entry`. Returns: str: JSON array containing CSL data for one `Entry`.
src/lib/zothero/models.py:145
Methodcursor
Context manager providing database cursor.
src/lib/zothero/cache.py:293
Methoddata_serializer
Name of default data serializer. .. versionadded:: 1.8 This serializer is used by :meth:`store_data()` and :meth:`stored_dat
src/lib/workflow/workflow.py:1517
Methoddatadir
Path to workflow's data directory. The data directory is a subdirectory of Alfred's own data directory in ``~/Library/Application Sup
src/lib/workflow/workflow.py:1256
Methoddebugging
Whether Alfred's debugger is open. :returns: ``True`` if Alfred's debugger is open. :rtype: ``bool``
src/lib/workflow/workflow.py:1108
Methoddecode_stream
(iterator, r)
src/lib/workflow/web.py:355
Methoddelete_paths
Clear one or more data stores
src/lib/workflow/workflow.py:1624
Methoddict
Convert `Download` to `dict`.
src/lib/workflow/update.py:163
Methoddo_help
()
src/lib/workflow/workflow.py:2567
Methoddo_update
()
src/lib/workflow/workflow.py:2554
Functiondocopt
Parse `argv` based on command-line interface described in `doc`. `docopt` creates your command-line interface based on its description that y
src/lib/docopt.py:493
Methoddumbify_punctuation
Convert non-ASCII punctuation to closest ASCII equivalent. This method replaces "smart" quotes and n- or m-dashes with their workaday
src/lib/workflow/workflow.py:2724
Methoddump
Serialize object ``obj`` to open pickle file. .. versionadded:: 1.8 :param obj: Python object to serialize :type obj: Python
src/lib/workflow/workflow.py:650
Methoddump
Serialize object ``obj`` to open pickle file. .. versionadded:: 1.8 :param obj: Python object to serialize :type obj: Python
src/lib/workflow/workflow.py:688
Methodeditors
Creators whose type is ``editor``. Returns: list: Sequence of `Creator` objects.
src/lib/zothero/models.py:124
Methodeither
Transform pattern into an equivalent, with only top-level Either.
src/lib/docopt.py:72
Methodelem
Create and return feedback item for Alfred. :returns: :class:`ElementTree.Element <xml.etree.ElementTree.Element>` instance for t
src/lib/workflow/workflow.py:740
Methodempty
Return ``True`` if index database is empty.
src/lib/zothero/index.py:188
Methodencode
(self, input, final=False)
src/lib/rtfunicode.py:46
Methodencoding
Text encoding of document or ``None``. :returns: Text encoding if found. :rtype: str or ``None``
src/lib/workflow/web.py:284
Methodentry
Retrieve `Entry` for ``key``. Args: key (str): Zotero database key Returns: zothero.zotero.Entry: `Entry` fo
src/lib/zothero/core.py:183
Methodentry
Return `Entry` for `entry_id`. Args: id (int): Zotero database ID Returns: zothero.zotero.Entry: `Entry` for
src/lib/zothero/index.py:205
Functionentry_icon
Return the appropriate icon for an `Entry`.
src/lib/zothero/icons.py:29
Methodfilter
Fuzzy search filter. Returns list of ``items`` that match ``query``. ``query`` is case-insensitive. Any item that does not contain the
src/lib/workflow/workflow.py:1765
Methodfirst_run
Return ``True`` if it's the first time this version has run. .. versionadded:: 1.9.10 Raises a :class:`ValueError` if :attr:`version
src/lib/workflow/workflow.py:2190
Methodflat
(self, *types)
src/lib/docopt.py:149
Methodfold_default
()
src/lib/workflow/workflow.py:2528
Methodfold_off
()
src/lib/workflow/workflow.py:2524
Methodfold_on
()
src/lib/workflow/workflow.py:2520
Methodfrom_json
Create a `CSLStyle` from a JSON object.
src/lib/zothero/models.py:273
Functionget
Initiate a GET request. Arguments as for :func:`request`. :returns: :class:`Response` instance
src/lib/workflow/web.py:582
Methodgetvar
Return value of workflow variable for ``name`` or ``default``. Args: name (unicode): Variable name. default (None, op
src/lib/workflow/workflow3.py:191
Methodgetvar
Return value of workflow variable for ``name`` or ``default``. Args: name (unicode): Variable name. default (None, op
src/lib/workflow/workflow3.py:304
Methodgetvar
Return value of workflow variable for ``name`` or ``default``. Args: name (unicode): Variable name. default (None, op
src/lib/workflow/workflow3.py:548
Methodhandle_data
(self, s)
src/lib/cite/html2rtf.py:63
Methodhandle_data
Callback for contents of HTML tags. Args: s (unicode): Text from between HTML tags.
src/lib/zothero/util.py:97
Methodhandle_endtag
(self, tag)
src/lib/cite/html2rtf.py:50
Methodhandle_starttag
(self, tag, attr)
src/lib/cite/html2rtf.py:37
Functionhtml2rtf
Convert HTML to RTF.
src/lib/cite/html2rtf.py:74
Methoditerkeys
Iterate over original keys.
src/lib/workflow/web.py:170
Methodjson
Decode response contents as JSON. :returns: object decoded from JSON :rtype: list, dict or unicode
src/lib/workflow/web.py:274
Functionjson_serialise
Serialise `date` objects. JSON serialisation helper to be passed as the ``default`` argument to `json.dump`. Args: obj (object):
src/lib/zothero/util.py:224
Methodkey
Return unique key for style. Returns: unicode: Style key.
src/lib/zothero/models.py:288
Methodkeys
Iterate entry keys.
src/lib/zothero/zotero.py:233
Functionkill
Send a signal to job ``name`` via :func:`os.kill`. .. versionadded:: 1.29 Args: name (str): Name of the job sig (int, option
src/lib/workflow/background.py:179
Methodlast_updated
Return modified time of database file.
src/lib/zothero/zotero.py:202
Methodlast_updated
Return modified time of database file.
src/lib/zothero/index.py:195
Methodlast_version_run
Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance
src/lib/workflow/workflow.py:2207
Methodlist_magic
Display all available magic args in Alfred.
src/lib/workflow/workflow.py:2580
Methodload
Load serialized object from open pickle file. .. versionadded:: 1.8 :param file_obj: file handle :type file_obj: ``file`` ob
src/lib/workflow/workflow.py:636
Methodload
Load serialized object from open pickle file. .. versionadded:: 1.8 :param file_obj: file handle :type file_obj: ``file`` ob
src/lib/workflow/workflow.py:674
Methodlocked
``True`` if file is locked by this instance.
src/lib/workflow/util.py:415
Methodlogfile
Path to logfile. :returns: path to logfile within workflow's cache directory :rtype: ``unicode``
src/lib/workflow/workflow.py:1372
Methodlogger
Logger that logs to both console and a log file. If Alfred's debugger is open, log level will be ``DEBUG``, else it will be ``INFO``.
src/lib/workflow/workflow.py:1382
Functionlookup
Return canonical Locale for string ``code``. Args: code (str): Locale code. Returns: Locale: Locale for code or ``None`` if
src/lib/cite/locales/__init__.py:76
Functionmain
Run command in a background process. Load cached arguments, fork into background, then call :meth:`subprocess.call` with cached arguments.
src/lib/workflow/background.py:248
Methodmatch
(self, left, collected=None)
src/lib/docopt.py:119
Methodmatch
(self, left, collected=None)
src/lib/docopt.py:228
Methodmatch
(self, left, collected=None)
src/lib/docopt.py:241
Methodmatch
(self, left, collected=None)
src/lib/docopt.py:255
Methodname
(self)
src/lib/docopt.py:218
Methodname
Name of locale in local language and English. Returns: unicode: Locale name.
src/lib/cite/locales/__init__.py:46
Methodname
Workflow name from Alfred's environmental vars or ``info.plist``. :returns: workflow name :rtype: ``unicode``
src/lib/workflow/workflow.py:1118
Methodobj
Return ``alfredworkflow`` `dict`.
src/lib/workflow/workflow3.py:70
Methodobj
Modifier formatted for JSON serialization for Alfred 3. Returns: dict: Modifier for serializing to JSON.
src/lib/workflow/workflow3.py:205
Methodobj
Item formatted for JSON serialization. Returns: dict: Data suitable for Alfred 3 feedback.
src/lib/workflow/workflow3.py:345
Methodobj
Feedback formatted for JSON serialization. Returns: dict: Data suitable for Alfred 3 feedback.
src/lib/workflow/workflow3.py:674
Methodopen_cachedir
Open the workflow's :attr:`cachedir` in Finder.
src/lib/workflow/workflow.py:2644
Methodopen_datadir
Open the workflow's :attr:`datadir` in Finder.
src/lib/workflow/workflow.py:2648
Methodopen_log
Open :attr:`logfile` in default app (usually Console.app).
src/lib/workflow/workflow.py:2640
Methodopen_terminal
Open a Terminal window at workflow's :attr:`workflowdir`.
src/lib/workflow/workflow.py:2656
Methodopen_workflowdir
Open the workflow's :attr:`workflowdir` in Finder.
src/lib/workflow/workflow.py:2652
Methodparse
(class_, source)
src/lib/docopt.py:164
Functionparse_date
Parse a Zotero date into YYYY-MM-DD, YYYY-MM or YYYY format. Zotero dates are in the format "YYYY-MM-DD <in words>", where <in words> may be
src/lib/zothero/util.py:198
Functionpaste
Simulate CMD+V to paste clipboard.
src/lib/pasteboard.py:76
Methodpath
Path to CSL locale definition file. Returns: str: Path to XML locale file.
src/lib/cite/locales/__init__.py:58
Functionpost
Initiate a POST request. Arguments as for :func:`request`. :returns: :class:`Response` instance
src/lib/workflow/web.py:594
Methodprereleases
Whether workflow should update to pre-release versions. .. versionadded:: 1.16 :returns: ``True`` if pre-releases are enabled with t
src/lib/workflow/workflow.py:2282
Methodprereleases_off
()
src/lib/workflow/workflow.py:2550
Methodprereleases_on
()
src/lib/workflow/workflow.py:2546
Functionrank
Rank function for SQLite. `matchinfo` is defined as returning 32-bit unsigned integers in machine byte order (see http://www.
src/lib/zothero/index.py:103
Functionread
Load data and attachments directories from Zotero prefs.
src/lib/zothero/config.py:30
Methodredirect_request
Ignore redirect.
src/lib/workflow/web.py:102
Methodrerun
How often (in seconds) Alfred should re-run the Script Filter.
src/lib/workflow/workflow3.py:494
Functionrtfunicode
(name)
src/lib/rtfunicode.py:57
Functionrun
(argv)
cpjs/cite.js:179
Functionrun_jxa
Execute a JXA script and return its output. .. versionadded:: 1.31 Wrapper around :func:`run_applescript` that passes ``lang=JavaScript``.
src/lib/workflow/util.py:222
Methodsave_password
Save account credentials. If the account exists, the old password will first be deleted (Keychain throws an error otherwise).
src/lib/workflow/workflow.py:2386
Methodsearch
Search the Zotero database.
src/lib/zothero/core.py:195
Methodsend_feedback
Print stored items to console/Alfred as JSON.
src/lib/workflow/workflow3.py:718
Methodserializers
Return names of registered serializers.
src/lib/workflow/workflow.py:580
Methodsession_id
A unique session ID every time the user uses the workflow. .. versionadded:: 1.25 The session ID persists while the user is using th
src/lib/workflow/workflow3.py:508
Methodsetdefault
Override :class:`dict` method to save on update.
src/lib/workflow/workflow.py:882
← previousnext →301–400 of 438, ranked by callers