Quick and dirty plugin to run something when Plover starts.
Project description
plover-startup-py
Quick and dirty plugin to run something when Plover starts.
About plugin
This plugin should only used for testing purposes. See also:
- user202729/plover-debugging-console: A IPython debugging console for Plover.
- user202729/plover-run-py: Command plugin for Plover to run an arbitrary Python command.
Installation
The package can be installed from pip or GitHub.
Configuration
You need to create a file named plover_startup_py_config.py
in Plover's configuration folder
(see https://plover.readthedocs.io/en/latest/api/oslayer_config.html#plover.oslayer.config.CONFIG_DIR
for where it is exactly)
The file must define two functions start
and stop
, each receives the engine as the only input parameter:
def start(engine):
pass
def stop(engine):
pass
They will be called when the plugin starts/stops (which is normally when Plover starts/exits)
Usage
Go to "Plugins" tab of Plover configuration, enable the plugin named "plover_startup_py".
To view the full traceback/error messages, you may need to invoke Plover with --log-level debug
.
There's also an additional command {plover:plover_startup_py_reload}
for reloading the module.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plover_startup_py-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35eaafb2e74934ff7f613ea477d2f8aa7994198326c505bd9ac480d724bc98bd |
|
MD5 | 4a9b79b2993908ed56412fc41896b5c3 |
|
BLAKE2b-256 | 860cb1a3af726c37d7dc4294f7d77ab268ad433154e70850514e4620fc203666 |