MCPcopy Index your code

hub / github.com/deanishe/zothero / functions

Functions438 in github.com/deanishe/zothero

↓ 40 callersMethodget
Return value for case-insensitive key or default.
src/lib/workflow/web.py:139
↓ 26 callersMethodencode
(self, input, errors='strict')
src/lib/rtfunicode.py:41
↓ 23 callersFunctionwf
Lazy `Workflow` object.
src/lib/workflow/update.py:46
↓ 17 callersFunctionshortpath
Replace ``$HOME`` in path with ~.
src/lib/zothero/util.py:258
↓ 16 callersMethodinfo
:class:`dict` of ``info.plist`` contents.
src/lib/workflow/workflow.py:1085
↓ 15 callersMethodstrip
Extract text from HTML. Args: html (unicode): HTML to process. decode (bool, optional): Decode from UTF-8 to Unicode.
src/lib/zothero/util.py:77
↓ 13 callersMethodcurrent
(self)
src/lib/docopt.py:298
↓ 12 callersMethodget
Return value for `key` or `default`. Passes result through `self.convert_out()` before returning. Args: key (str): Datab
src/lib/zothero/cache.py:119
↓ 12 callersMethodmove
(self)
src/lib/docopt.py:295
↓ 11 callersMethoddecode
Return ``text`` as normalised unicode. If ``encoding`` and/or ``normalization`` is ``None``, the ``input_encoding``and ``normalizatio
src/lib/workflow/workflow.py:2671
↓ 11 callersMethoditems
Return ``(key, value)`` pairs.
src/lib/workflow/web.py:153
↓ 8 callersMethoddump
Serialize object ``obj`` to open JSON file. .. versionadded:: 1.8 :param obj: Python object to serialize :type obj: JSON-ser
src/lib/workflow/workflow.py:611
↓ 8 callersFunctionunicodify
Ensure ``s`` is Unicode. Returns Unicode unchanged, decodes bytestrings and calls `unicode()` on anything else. Args: s (basestr
src/lib/zothero/util.py:149
↓ 7 callersMethoddatafile
Path to ``filename`` in workflow's data directory. Return absolute path to ``filename`` within your workflow's :attr:`data directory
src/lib/workflow/workflow.py:1346
↓ 7 callersMethodget
Return `CSLStyle` for key. Args: key (unicode): Unique key for style. Returns: models.CSLStyle: Style object
src/lib/zothero/styles.py:138
↓ 7 callersFunctionwf
Return Workflow object for this module. Returns: workflow.Workflow: Workflow object for current workflow.
src/lib/workflow/notify.py:63
↓ 6 callersFunction_log
()
src/lib/workflow/background.py:42
↓ 6 callersMethodcache_data
Save ``data`` to cache under ``name``. If ``data`` is ``None``, the corresponding cache file will be deleted. :param name: n
src/lib/workflow/workflow.py:1706
↓ 6 callersMethodcachefile
Path to ``filename`` in workflow's cache directory. Return absolute path to ``filename`` within your workflow's :attr:`cache director
src/lib/workflow/workflow.py:1332
↓ 6 callersMethodindex
Search index. Creates and returns an `Index` object. The index is initialised, but may be empty. Returns: .index
src/lib/zothero/core.py:139
↓ 6 callersMethodload
Load serialized object from open JSON file. .. versionadded:: 1.8 :param file_obj: file handle :type file_obj: ``file`` obje
src/lib/workflow/workflow.py:597
↓ 6 callersMethodserializer
Return serializer object for ``name``. :param name: Name of serializer to return :type name: ``unicode`` or ``str`` :returns:
src/lib/workflow/workflow.py:548
↓ 6 callersFunctionset
Set the clipboard contents. `contents` should have the format: { 'UTI': 'value', ... } e.g. `{'
src/lib/pasteboard.py:54
↓ 5 callersMethod__init__
Create new `Entry`. Args: *args: Optional initialisation data. As for `dict`. **kwargs: Optional initialisation data.
src/lib/zothero/models.py:103
↓ 5 callersMethodflat
(self, *types)
src/lib/docopt.py:116
↓ 5 callersMethoditervalues
Interate over values.
src/lib/workflow/web.py:175
↓ 5 callersMethodmatch
(self, left, collected=None)
src/lib/docopt.py:277
↓ 5 callersMethodregister
Register ``serializer`` object under ``name``. Raises :class:`AttributeError` if ``serializer`` in invalid. .. note:: `
src/lib/workflow/workflow.py:527
↓ 5 callersMethodsave
Save settings to JSON file specified in ``self._filepath``. If you're using this class via :attr:`Workflow.settings`, which you proba
src/lib/workflow/workflow.py:847
↓ 5 callersMethodset
Set value for key, passing `value` through `self.convert_in()`. Args: key (str): Database key. value (obj): Object to
src/lib/zothero/cache.py:144
↓ 5 callersMethodupdate
Override :class:`dict` method to save on update.
src/lib/workflow/workflow.py:877
↓ 5 callersFunctionwf
()
src/lib/workflow/background.py:35
↓ 4 callersMethod_call_security
Call ``security`` CLI program that provides access to keychains. May raise `PasswordNotFound`, `PasswordExists` or `KeychainError` ex
src/lib/workflow/workflow.py:2785
↓ 4 callersFunctionatomic_writer
Atomic file writer. .. versionadded:: 1.12 Context manager that ensures the file is only written if the write succeeds. The data is firs
src/lib/workflow/util.py:349
↓ 4 callersMethodcursor
Context manager providing database cursor.
src/lib/zothero/cache.py:100
↓ 4 callersFunctionrun_applescript
Execute an AppleScript script and return its output. .. versionadded:: 1.31 Run AppleScript either by filepath or code. If ``script`` is a v
src/lib/workflow/util.py:187
↓ 4 callersMethodsearch
Search index for ``query``. Args: query (unicode): Query to search for Returns: list: `Entry` objects for ma
src/lib/zothero/index.py:222
↓ 4 callersFunctionshowHelp
(errMsg)
cpjs/cite.js:34
↓ 3 callersMethod__lt__
Implement comparison.
src/lib/workflow/update.py:289
↓ 3 callersMethod_load_entry
Create an `Entry` from a SQLite database row.
src/lib/zothero/zotero.py:270
↓ 3 callersMethod_parse_dotted_string
Parse string ``s`` into list of ints and strings.
src/lib/workflow/update.py:274
↓ 3 callersMethodadd_item
Add an item to be output to Alfred. :param title: Title shown in Alfred :type title: ``unicode`` :param subtitle: Subtitle sh
src/lib/workflow/workflow.py:2109
↓ 3 callersMethodcached_data
Return cached data if younger than ``max_age`` seconds. Retrieve data from cache or re-generate and re-cache data if stale/non-exista
src/lib/workflow/workflow.py:1671
↓ 3 callersFunctiondt2sqlite
Convert `datetime` to Sqlite time string. Format string is `SQLITE_DATE_FMT`. Args: dt (datetime): `datetime` object to convert.
src/lib/zothero/util.py:34
↓ 3 callersMethodfrom_json
Deserialise an `Entry` from JSON.
src/lib/zothero/models.py:91
↓ 3 callersFunctionisascii
Test if ``text`` contains only ASCII characters. :param text: text to test for ASCII-ness :type text: ``unicode`` :returns: ``True`` if `
src/lib/workflow/workflow.py:486
↓ 3 callersFunctionjxa_app_name
Return name of application to call currently running Alfred. .. versionadded: 1.37 Returns 'Alfred 3' or 'com.runningwithcrayons.Alfred' dep
src/lib/workflow/util.py:73
↓ 3 callersMethodkeys
Return original keys.
src/lib/workflow/web.py:157
↓ 3 callersFunctionlog
Return logger for this module. Returns: logging.Logger: Logger for this module.
src/lib/workflow/notify.py:75
↓ 3 callersMethodopen
Open a `Store` with `name` and using the specified converters. Args: name (str): The name of the Store/database table.
src/lib/zothero/cache.py:298
↓ 3 callersMethodparse
(class_, option_description)
src/lib/docopt.py:195
↓ 3 callersFunctionreadFile
(path)
cpjs/cite.js:107
↓ 3 callersFunctionrun_command
Run a command and return the output. .. versionadded:: 1.31 A thin wrapper around :func:`subprocess.check_output` that ensures all argum
src/lib/workflow/util.py:167
↓ 3 callersMethodsend_feedback
Print stored items to console/Alfred as XML.
src/lib/workflow/workflow.py:2176
↓ 3 callersFunctionshow_help
Print help message.
src/lib/workflow/update.py:533
↓ 3 callersFunctionstr_dict
Convert keys and values in ``dic`` into UTF-8-encoded :class:`str`. :param dic: Mapping of Unicode strings :type dic: dict :returns: Dict
src/lib/workflow/web.py:77
↓ 3 callersFunctionunicodify
Ensure string is Unicode. .. versionadded:: 1.31 Decode encoded strings using ``encoding`` and normalise Unicode to form ``norm`` if spe
src/lib/workflow/util.py:94
↓ 3 callersMethodworkflowfile
Return full path to ``filename`` in workflow's root directory. :param filename: basename of file :type filename: ``unicode``
src/lib/workflow/workflow.py:1360
↓ 2 callersMethod__init__
Create a new :class:`Item3` object. Use same arguments as for :class:`Workflow.Item <workflow.Workflow.Item>`. Argument ``su
src/lib/workflow/workflow3.py:264
↓ 2 callersMethod__setitem__
(self, key, value)
src/lib/workflow/web.py:136
↓ 2 callersFunction_arg_cache
Return path to pickle cache file for arguments. :param name: name of task :type name: ``unicode`` :returns: Path to cache file :rtype
src/lib/workflow/background.py:46
↓ 2 callersMethod_create
Create directory `dirpath` if it doesn't exist. :param dirpath: path to directory :type dirpath: ``unicode`` :returns: ``dirp
src/lib/workflow/workflow.py:2772
↓ 2 callersMethod_delete_directory_contents
Delete all files in a directory. :param dirpath: path to directory to clear :type dirpath: ``unicode`` or ``str`` :param filt
src/lib/workflow/workflow.py:2745
↓ 2 callersFunction_fork_and_exit_parent
(errmsg, wait=False, write=False)
src/lib/workflow/background.py:140
↓ 2 callersFunction_job_pid
Get PID of job or `None` if job does not exist. Args: name (str): Name of job. Returns: int: PID of job process (or `None` i
src/lib/workflow/background.py:86
↓ 2 callersMethod_load_style
Extract style info from a .csl file. Args: path (unicode): Path to a .csl file. Returns: models.CSLStyle: St
src/lib/zothero/styles.py:326
↓ 2 callersMethod_mk_session_name
New cache name/key based on session ID.
src/lib/workflow/workflow3.py:597
↓ 2 callersFunction_pid_file
Return path to PID file for ``name``. :param name: name of task :type name: ``unicode`` :returns: Path to PID file for task :rtype: `
src/lib/workflow/background.py:58
↓ 2 callersMethod_readdir
Load CSL styles from ``dirpath``. Read any .csl files in ``dirpath``, ignoring those that haven't been modified since they were last
src/lib/zothero/styles.py:272
↓ 2 callersFunction_rtfunicode_encode
(text, errors)
src/lib/rtfunicode.py:34
↓ 2 callersMethod_update
Update search index from a `Zotero` instance. Retrieve Zotero entries and add to/update in the search index. Args: zot (
src/lib/zothero/index.py:286
↓ 2 callersMethod_validate_key
Coerce `key` to Unicode or raise `ValueError`. Args: key (str or unicode): String key. Raises: TypeError: Ra
src/lib/zothero/cache.py:229
↓ 2 callersFunctionasciify
Ensure string only contains ASCII characters. Args: s (basestring): Unicode or bytestring. Returns: unicode: String containi
src/lib/zothero/util.py:183
↓ 2 callersMethodcached_data_age
Return age in seconds of cache `name` or 0 if cache doesn't exist. :param name: name of datastore :type name: ``unicode`` :re
src/lib/workflow/workflow.py:1749
↓ 2 callersMethodcheck_update
Call update script if it's time to check for a new release. .. versionadded:: 1.9 The update script will be run in the background, s
src/lib/workflow/workflow.py:2297
↓ 2 callersMethodclear_cache
Delete all files in workflow's :attr:`cachedir`. :param filter_func: Callable to determine whether a file should be deleted or no
src/lib/workflow/workflow.py:2599
↓ 2 callersMethoddelete
Remove item from store.
src/lib/zothero/cache.py:183
↓ 2 callersFunctionextract_value
(s)
src/lib/zothero/config.py:64
↓ 2 callersMethodjson
Serialise `Entry` to JSON. Returns: str: JSON-encoded `Entry`.
src/lib/zothero/models.py:181
↓ 2 callersFunctionnotifier_program
Return path to notifier applet executable. Returns: unicode: Path to Notify.app ``applet`` executable.
src/lib/workflow/notify.py:87
↓ 2 callersFunctionparse_date
Parse a Zotero date string into CSL(JSON) ``date-parts``. Args: datestr (unicode): Zotero date string. Returns: dict: ``date
src/lib/zothero/csl.py:143
↓ 2 callersFunctionparse_defaults
(doc)
src/lib/docopt.py:454
↓ 2 callersFunctionparse_expr
expr ::= seq ( '|' seq )* ;
src/lib/docopt.py:379
↓ 2 callersFunctionparse_long
long ::= '--' chars [ ( ' ' | '=' ) chars ] ;
src/lib/docopt.py:302
↓ 2 callersFunctionparse_seq
seq ::= ( atom [ '...' ] )* ;
src/lib/docopt.py:392
↓ 2 callersFunctionparse_shorts
shorts ::= '-' ( chars )* [ [ ' ' ] chars ] ;
src/lib/docopt.py:335
↓ 2 callersFunctionpng_to_icns
Convert PNG file to ICNS using ``iconutil``. Create an iconset from the source PNG file. Generate PNG files in each size required by macOS, t
src/lib/workflow/notify.py:237
↓ 2 callersMethodraise_for_status
Raise stored error if one occurred. error will be instance of :class:`urllib2.HTTPError`
src/lib/workflow/web.py:407
↓ 2 callersMethodrelease
Release the lock by deleting `self.lockfile`.
src/lib/workflow/util.py:465
↓ 2 callersFunctionrequest
Initiate an HTTP(S) request. Returns :class:`Response` object. :param method: 'GET' or 'POST' :type method: unicode :param url: URL to op
src/lib/workflow/web.py:466
↓ 2 callersMethodreset
Delete workflow settings, cache and data. File :attr:`settings <settings_path>` and directories :attr:`cache <cachedir>` and :attr:`d
src/lib/workflow/workflow.py:2629
↓ 2 callersFunctionrun_in_background
r"""Cache arguments then call this script again via :func:`subprocess.call`. :param name: name of job :type name: unicode :param args: ar
src/lib/workflow/background.py:199
↓ 2 callersFunctionsafename
Make a name filesystem-safe.
src/lib/zothero/util.py:250
↓ 2 callersMethodsetvar
Set a "global" workflow variable. .. versionchanged:: 1.33 These variables are always passed to downstream workflow objects.
src/lib/workflow/workflow3.py:525
↓ 2 callersFunctiontime_since
Human-readable time since timestamp ``ts``.
src/lib/zothero/util.py:276
↓ 2 callersFunctiontimed
Context manager that logs execution time.
src/lib/zothero/util.py:268
↓ 2 callersMethodupdate
Update search index from a `Zotero` instance. If the Zotero database is newer than the index (or the index is empty), retrieve entrie
src/lib/zothero/index.py:248
↓ 2 callersMethodupdate
Update values from other ``dict``.
src/lib/workflow/web.py:148
↓ 1 callersMethod__eq__
Compare Downloads based on version numbers.
src/lib/workflow/update.py:181
↓ 1 callersMethod__eq__
Implement comparison.
src/lib/workflow/update.py:307
next →1–100 of 438, ranked by callers