Skip to main content

[Mozinstall](https://github.com/mozilla/mozbase/tree/master/mozinstall) is a python package for installing Mozilla applications on various platforms.

For example, depending on the platform, Firefox can be distributed as a zip, tar.bz2, exe or dmg file or cloned from a repository. Mozinstall takes the hassle out of extracting and/or running these files and for convenience returns the full path to the application’s binary in the install directory. In the case that mozinstall is invoked from the command line, the binary path will be printed to stdout.

# Usage

For command line options run mozinstall –help

Mozinstall’s main function is the install method

import mozinstall mozinstall.install(‘path_to_install_file’, dest=’path_to_install_folder’)

The dest parameter defaults to the directory in which the install file is located. The install method accepts a third parameter called apps which tells mozinstall which binary to search for. By default it will search for ‘firefox’, ‘thunderbird’ and ‘fennec’ so unless you are installing a different application, this parameter is unnecessary.

# Error Handling

Mozinstall throws two different types of exceptions:

  • mozinstall.InvalidSource is thrown when the source is not a recognized file type (zip, exe, tar.bz2, tar.gz, dmg)

  • mozinstall.InstallError is thrown when the installation fails for any reason. A traceback is provided.

# Dependencies

Mozinstall depends on the [mozinfo](https://github.com/mozilla/mozbase/tree/master/mozinfo) package which is also found in the mozbase repository.

Metadata

Release files for mozInstall 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mozInstall 0.3
File Size Uploaded Provenance Actions
mozInstall-0.3.tar.gz 4.7 kB Without provenance Details for mozInstall-0.3.tar.gz

Release files / mozInstall-0.3.tar.gz

Download URL mozInstall-0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
731467d1184bb83bd965f2eba6e6cea92274171ba05193305ed951b0f63e6780
BLAKE2b-256 checksum
How to use checksums
49e7bb8db1b481101e28e4a53c150adc742547cd9c7425377fc342a8bfa818b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mozInstall 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page