[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 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mozInstall-1.0.tar.gz | 5.5 kB | Without provenance | Details |
Release files / mozInstall-1.0.tar.gz
| Download URL | mozInstall-1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29b3ad4bf241f0aec317c4e3e4ba114844ba7b9d357913ed03dbf2aef34cba87
|
|
BLAKE2b-256 checksum How to use checksums |
f9a74ed4b59ff7be6808fa17e074146c42c81d6f282494f9e9d0a9802c048fcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mozInstall 1.0
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.