Reliable start/stop/configuration of Mozilla Applications (Firefox, Thunderbird, etc.)
Project description
[mozrunner](https://github.com/mozilla/mozbase/tree/master/mozrunner) is a [python package](http://pypi.python.org/pypi/mozrunner) which handles running of Mozilla applications. mozrunner utilizes [mozprofile](/en/Mozprofile) for managing application profiles and [mozprocess](/en/Mozprocess) for robust process control.
mozrunner may be used from the command line or programmatically as an API.
# Command Line Usage
The mozrunner command will launch the application (specified by –app) from a binary specified with -b or as located on the PATH.
mozrunner takes the command line options from [mozprofile](/en/Mozprofile) for constructing the profile to be used by the application.
Run mozrunner –help for detailed information on the command line program.
# API Usage
mozrunner features a base class, [mozrunner.runner.Runner](https://github.com/mozilla/mozbase/blob/master/mozrunner/mozrunner/runner.py) which is an integration layer API for interfacing with Mozilla applications.
mozrunner also exposes two application specific classes, FirefoxRunner and ThunderbirdRunner which record the binary names necessary for the Runner class to find them on the system.
Example API usage:
from mozrunner import FirefoxRunner
# start Firefox on a new profile runner = FirefoxRunner() runner.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mozrunner-4.0.tar.gz
.
File metadata
- Download URL: mozrunner-4.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbe27cade675298bd2cc820ed6a1d80af86ac3e26cfa11dd402d53976f96ae33 |
|
MD5 | ba9616bc9c0261b4b55bfa5a35ebb69a |
|
BLAKE2b-256 | d1c4a44855a0a4e56e80c30e51acb01799d75ddf2ec0f149dfdb1edbdf02c620 |