Skip to main content

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:

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

plover_startup_py-0.0.3.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

plover_startup_py-0.0.3-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page