mozinfo

1.2.3 · active · verified Thu Apr 16

mozinfo is a Python library designed to retrieve system information, primarily for use within Mozilla's testing infrastructure. It acts as a bridge to normalize diverse operating system and architecture details into a consistent set of values, such as 'os', 'version', 'bits', and 'processor'. The current version is 1.2.3, and it is actively maintained as part of the broader Mozilla ecosystem.

Common errors

Warnings

Install

Imports

Quickstart

The quickstart demonstrates how to import the `mozinfo` module and access its primary system information attributes directly. It also shows how to retrieve all available information as a dictionary via `mozinfo.info`.

import mozinfo

print(f"Operating System: {mozinfo.os}")
print(f"OS Version: {mozinfo.version}")
print(f"Architecture Bits: {mozinfo.bits}")
print(f"Processor Type: {mozinfo.processor}")

# Access all info as a dictionary
print("\nAll mozinfo attributes:")
for key, value in mozinfo.info.items():
    print(f"  {key}: {value}")

view raw JSON →