Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/deanishe/zothero
/ functions
Functions
438 in github.com/deanishe/zothero
⨍
Functions
438
◇
Types & classes
59
↓ 1 callers
Method
__getitem__
(self, key)
src/lib/workflow/web.py:133
↓ 1 callers
Method
__init__
(self, short=None, long=None, argcount=0, value=False)
src/lib/docopt.py:188
↓ 1 callers
Method
__init__
Same arguments as :meth:`Workflow.add_item`.
src/lib/workflow/workflow.py:720
↓ 1 callers
Method
_add_table
Add new table to database, verifying name first. Name should contain only lowercase ASCII letters, digits and underscore (_). May not
src/lib/zothero/cache.py:362
↓ 1 callers
Function
_background
Fork the current process into a background daemon. :param pidfile: file to write PID of daemon process to. :type pidfile: filepath :param
src/lib/workflow/background.py:126
↓ 1 callers
Method
_db_valid
Validate database version against `DB_VERSION`.
src/lib/zothero/index.py:159
↓ 1 callers
Method
_entry_attachments
Fetch attachments for an entry.
src/lib/zothero/zotero.py:324
↓ 1 callers
Method
_entry_collections
Fetch collections for an entry.
src/lib/zothero/zotero.py:353
↓ 1 callers
Method
_entry_creators
Fetch creators for an entry.
src/lib/zothero/zotero.py:358
↓ 1 callers
Method
_entry_notes
Fetch notes for an entry.
src/lib/zothero/zotero.py:363
↓ 1 callers
Method
_entry_tags
Fetch tags for an entry.
src/lib/zothero/zotero.py:368
↓ 1 callers
Method
_fetch_style
Generate `CSLStyle` from a remote .csl file. Args: url (unicode): URL to retrieve .csl stylesheet from. Returns:
src/lib/zothero/styles.py:364
↓ 1 callers
Method
_filter_item
Filter ``value`` against ``query`` using rules ``match_on``. :returns: ``(score, rule)``
src/lib/workflow/workflow.py:1924
↓ 1 callers
Method
_get_encoding
Get encoding from HTTP headers or content. :returns: encoding or `None` :rtype: unicode or ``None``
src/lib/workflow/web.py:416
↓ 1 callers
Method
_icon
Return `icon` object for item. Returns: dict: Mapping for item `icon` (may be empty).
src/lib/workflow/workflow3.py:235
↓ 1 callers
Method
_icon
Return `icon` object for item. Returns: dict: Mapping for item `icon` (may be empty).
src/lib/workflow/workflow3.py:400
↓ 1 callers
Method
_load
Load cached settings from JSON file `self._filepath`.
src/lib/workflow/workflow.py:833
↓ 1 callers
Method
_load_info_plist
Load workflow info from ``info.plist``.
src/lib/workflow/workflow.py:2766
↓ 1 callers
Method
_modifiers
Build `mods` dictionary for JSON feedback. Returns: dict: Modifier mapping or `None`.
src/lib/workflow/workflow3.py:432
↓ 1 callers
Method
_parse
(self, vstr)
src/lib/workflow/update.py:244
↓ 1 callers
Function
_process_exists
Check if a process with PID ``pid`` exists. :param pid: PID to check :type pid: ``int`` :returns: ``True`` if process exists, else ``Fals
src/lib/workflow/background.py:70
↓ 1 callers
Method
_register_default_magic
Register the built-in magic arguments.
src/lib/workflow/workflow.py:2489
↓ 1 callers
Method
_search_for_query
(self, query)
src/lib/workflow/workflow.py:2016
↓ 1 callers
Method
_text
Return `largetext` and `copytext` object for item. Returns: dict: `text` mapping (may be empty)
src/lib/workflow/workflow3.py:416
↓ 1 callers
Method
acquire
Acquire the lock if possible. If the lock is in use and ``blocking`` is ``False``, return ``False``. Otherwise, check every
src/lib/workflow/util.py:419
↓ 1 callers
Method
add_item
Add an item to be output to Alfred. Args: match (unicode, optional): If you have "Alfred filters results" turned
src/lib/workflow/workflow3.py:561
↓ 1 callers
Method
all
Iterate over all styles. Yields: models.CSLStyle: CSL style installed in Zotero. Args: hidden (bool, optiona
src/lib/zothero/styles.py:167
↓ 1 callers
Method
all_entries
Return all database entries.
src/lib/zothero/zotero.py:265
↓ 1 callers
Function
build_api_url
Generate releases URL from GitHub repo. Args: repo (unicode): Repo name in form ``username/repo`` Returns: unicode: URL to t
src/lib/workflow/update.py:374
↓ 1 callers
Method
cached_data_fresh
Whether cache `name` is less than `max_age` seconds old. :param name: name of datastore :param max_age: maximum age of data in second
src/lib/workflow/workflow.py:1732
↓ 1 callers
Method
canonical
Resolve dependent styles and return the root style.
src/lib/zothero/styles.py:150
↓ 1 callers
Function
check_update
Check whether a newer release is available on GitHub. Args: repo (unicode): ``username/repo`` for workflow's GitHub repo current_
src/lib/workflow/update.py:438
↓ 1 callers
Method
cite
Formatted citation for an Entry. Generate and return HTML and RTF citations. The "text" format returned is also HTML (intended for us
src/lib/zothero/styles.py:183
↓ 1 callers
Method
citekey
Return Better Bibtex citekey for Zotero item. Args: key (unicode): ``libraryID_itemKey`` Better Bibtex key. Returns:
src/lib/zothero/betterbibtex.py:56
↓ 1 callers
Method
clear
Clear Stores. If no `name` is specified, the entire cache is deleted. Args: name (str, optional): Name of a specific sto
src/lib/zothero/cache.py:318
↓ 1 callers
Method
clear_data
Delete all files in workflow's :attr:`datadir`. :param filter_func: Callable to determine whether a file should be deleted or not
src/lib/workflow/workflow.py:2611
↓ 1 callers
Method
clear_settings
Delete workflow's :attr:`settings_path`.
src/lib/workflow/workflow.py:2623
↓ 1 callers
Method
convert
(cls, html)
src/lib/cite/html2rtf.py:28
↓ 1 callers
Function
convert_creator
Convert Zotero Creator into CSL creator.
src/lib/zothero/csl.py:85
↓ 1 callers
Function
convert_image
Convert an image file using ``sips``. Args: inpath (str): Path of source file. outpath (str): Path to destination file. s
src/lib/workflow/notify.py:213
↓ 1 callers
Function
copyifnewer
Replace path `copy` with a copy of file at `source`. Returns path to `copy`, overwriting it first with a copy of `source` if `source` is newe
src/lib/zothero/util.py:127
↓ 1 callers
Method
cursor
Context manager providing database cursor.
src/lib/zothero/index.py:182
↓ 1 callers
Method
delete_password
Delete the password stored at ``service/account``. Raise :class:`PasswordNotFound` if account is unknown. :param account: name of th
src/lib/workflow/workflow.py:2465
↓ 1 callers
Function
encode_multipart_formdata
Encode form data (``fields``) and ``files`` for POST request. :param fields: mapping of ``{name : value}`` pairs for normal form fields. :typ
src/lib/workflow/web.py:605
↓ 1 callers
Method
entry
Return Entry for key.
src/lib/zothero/zotero.py:243
↓ 1 callers
Function
entry_data
Get CSL(JSON) data for an Entry. The data are compatible with CSL-JSON. Args: e (models.Entry): Entry to generate data for. Ret
src/lib/zothero/csl.py:102
↓ 1 callers
Function
extras
(help, version, options, doc)
src/lib/docopt.py:479
↓ 1 callers
Function
find_prefs
Find prefs.js by parsing profiles.ini.
src/lib/zothero/config.py:39
↓ 1 callers
Method
fix
(self)
src/lib/docopt.py:40
↓ 1 callers
Method
fix_identities
Make pattern-tree tips point to same object if they are equal.
src/lib/docopt.py:45
↓ 1 callers
Method
fix_repeating_arguments
Fix elements that should accumulate/increment values.
src/lib/docopt.py:57
↓ 1 callers
Method
fold_to_ascii
Convert non-ASCII characters to closest ASCII equivalent. .. versionadded:: 1.3 .. note:: This only works for a subset of European l
src/lib/workflow/workflow.py:2705
↓ 1 callers
Function
formal_usage
(printable_usage)
src/lib/docopt.py:474
↓ 1 callers
Method
from_dict
Create a `Download` from a `dict`.
src/lib/workflow/update.py:71
↓ 1 callers
Method
from_releases
Extract downloads from GitHub releases. Searches releases with semantic tags for assets with file extension .alfredworkflow or .alfre
src/lib/workflow/update.py:78
↓ 1 callers
Function
generate
Generate an HTML & RTF citation for ``csldata`` using ``cslfile``.
src/lib/cite/cite.py:33
↓ 1 callers
Method
generate
()
src/lib/workflow/web.py:367
↓ 1 callers
Function
get_content_type
Return or guess mimetype of ``filename``. :param filename: filename of file :type filename: unicode/str :returns: mime-type,
src/lib/workflow/web.py:630
↓ 1 callers
Function
get_creator
Convert Zotero creator type to CSL creator type. CSL creator type corresponding to a Zotero type. Returns ``None`` if there is no correspondi
src/lib/zothero/csl.py:49
↓ 1 callers
Function
get_downloads
Load available ``Download``s for GitHub repo. .. versionadded: 1.37 Args: repo (unicode): GitHub repo to load releases for. Ret
src/lib/workflow/update.py:390
↓ 1 callers
Function
get_field
Convert Zotero field name to CSL field name. CSL field name corresponding to a Zotero field. Returns ``None`` if there is no corresponding CS
src/lib/zothero/csl.py:29
↓ 1 callers
Method
get_password
Retrieve the password saved at ``service/account``. Raise :class:`PasswordNotFound` exception if password doesn't exist. :param acco
src/lib/workflow/workflow.py:2426
↓ 1 callers
Function
get_type
Convert Zotero publication type to CSL publication type. CLS publication type corresponding to the Zotero one. Return ``None`` if there is no
src/lib/zothero/csl.py:67
↓ 1 callers
Method
ids
Iterate entry IDs.
src/lib/zothero/zotero.py:238
↓ 1 callers
Function
install_notifier
Extract ``Notify.app`` from the workflow to data directory. Changes the bundle ID of the installed app and gives it the workflow's icon.
src/lib/workflow/notify.py:105
↓ 1 callers
Function
install_update
If a newer release is available, download and install it. :returns: ``True`` if an update is installed, else ``False``
src/lib/workflow/update.py:495
↓ 1 callers
Function
is_running
Test whether task ``name`` is currently running. :param name: name of task :type name: unicode :returns: ``True`` if task with name ``nam
src/lib/workflow/background.py:111
↓ 1 callers
Method
iter_content
Iterate over response data. .. versionadded:: 1.6 :param chunk_size: Number of bytes to read into memory :type chunk_size: i
src/lib/workflow/web.py:334
↓ 1 callers
Method
iteritems
Iterate over ``(key, value)`` pairs.
src/lib/workflow/web.py:165
↓ 1 callers
Method
keys
Iterate over all store keys. Yields: unicode: Store keys.
src/lib/zothero/cache.py:105
↓ 1 callers
Function
latest_download
Return newest `Download`.
src/lib/workflow/update.py:415
↓ 1 callers
Function
make_rank_func
Search ranking function. Use floats (1.0 not 1) for more accurate results. Use 0 to ignore a column. Adapted from <http://go
src/lib/zothero/index.py:89
↓ 1 callers
Method
modified_since
Iterate Entries modified since datetime.
src/lib/zothero/zotero.py:252
↓ 1 callers
Function
notifier_icon_path
Return path to icon file in installed Notify.app. Returns: unicode: Path to ``applet.icns`` within the app bundle.
src/lib/workflow/notify.py:96
↓ 1 callers
Function
notify
Post notification via Notify.app helper. Args: title (str, optional): Notification title. text (str, optional): Notification body
src/lib/workflow/notify.py:175
↓ 1 callers
Function
nsdata
Return an NSData instance for string `s`.
src/lib/pasteboard.py:44
↓ 1 callers
Method
open_help
Open :attr:`help_url` in default browser.
src/lib/workflow/workflow.py:2661
↓ 1 callers
Function
parseArgs
(argv)
cpjs/cite.js:45
↓ 1 callers
Function
parse_argv
Parse command-line argument vector. If options_first: argv ::= [ long | shorts ]* [ argument ]* [ '--' [ argument ]* ] ; else:
src/lib/docopt.py:430
↓ 1 callers
Function
parse_atom
atom ::= '(' expr ')' | '[' expr ']' | 'options' | long | shorts | argument | command ;
src/lib/docopt.py:404
↓ 1 callers
Function
parse_pattern
(source, options)
src/lib/docopt.py:370
↓ 1 callers
Function
parse_prefs
Extract relevant preferences from prefs.js.
src/lib/zothero/config.py:60
↓ 1 callers
Function
printable_usage
(doc)
src/lib/docopt.py:464
↓ 1 callers
Function
retrieve_download
Saves a download to a temporary file and returns path. .. versionadded: 1.37 Args: url (unicode): URL to .alfredworkflow file in Git
src/lib/workflow/update.py:347
↓ 1 callers
Method
run
Call ``func`` to run your workflow. :param func: Callable to call with ``self`` (i.e. the :class:`Workflow` instance) as first ar
src/lib/workflow/workflow.py:2031
↓ 1 callers
Function
run_trigger
Call an Alfred External Trigger. .. versionadded:: 1.31 If ``bundleid`` is not specified, reads the bundle ID of the current workflow fr
src/lib/workflow/util.py:240
↓ 1 callers
Method
save_to_path
Save retrieved data to file at ``filepath``. .. versionadded: 1.9.6 :param filepath: Path to save retrieved data.
src/lib/workflow/web.py:388
↓ 1 callers
Function
set_config
Set a workflow variable in ``info.plist``. .. versionadded:: 1.33 Args: name (str): Name of variable to set. value (str): Va
src/lib/workflow/util.py:267
↓ 1 callers
Method
set_last_version
Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current versi
src/lib/workflow/workflow.py:2229
↓ 1 callers
Method
single_match
(self, left)
src/lib/docopt.py:211
↓ 1 callers
Function
sqlite2dt
Convert Sqlite time string to `datetime` object. Format string is `util.SQLITE_DATE_FMT`. Microseconds are dropped on the floor. Args:
src/lib/zothero/util.py:49
↓ 1 callers
Method
start_update
Check for update and download and install new workflow file. .. versionadded:: 1.9 See :ref:`guide-updates` in the :ref:`user-manual
src/lib/workflow/workflow.py:2345
↓ 1 callers
Function
stripOuterDiv
(html)
cpjs/cite.js:113
↓ 1 callers
Function
strip_tags
Strip tags from HTML. Args: html (unicode): HTML text. Returns: unicode: Text contained in HTML.
src/lib/zothero/util.py:114
↓ 1 callers
Method
title
Properly formatted title. Returns 'xxx.' if title is empty, and appends a full stop if title does not already end with punctuation.
src/lib/zothero/formatting.py:28
↓ 1 callers
Method
update
Load CSL style definitions. Reads styles from :attr:`dirpath` and its ``hidden`` subdirectory, if it exists. Any files that
src/lib/zothero/styles.py:226
↓ 1 callers
Function
utf8encode
Ensure string is an encoded bytestring.
src/lib/zothero/util.py:172
↓ 1 callers
Function
utf8ify
Ensure string is a bytestring. .. versionadded:: 1.31 Returns `str` objects unchanced, encodes `unicode` objects to UTF-8, and calls :fu
src/lib/workflow/util.py:121
↓ 1 callers
Function
validate_sound
Coerce ``sound`` to valid sound name. Returns ``None`` for invalid sounds. Sound names can be found in ``System Preferences > Sound > Sound E
src/lib/workflow/notify.py:153
Function
Citer
(opts)
cpjs/cite.js:122
← previous
next →
101–200 of 438, ranked by callers