Skip to main content

Electron Fuses

Python-implementation of Electron's fuses module, intended for querying fuse states of an Electron binary.

Installation

python3 -m pip install electron-fuses

Usage

>>> from electron_fuses import Fuses
>>> fuses = Fuses("path/to/electron")

>>> print(fuses)

   RUN_AS_NODE: DISABLE
   ENABLE_COOKIE_ENCRYPTION: DISABLE
   ENABLE_NODE_OPTIONS_ENVIRONMENT_VARIABLE: DISABLE
   ENABLE_NODE_CLI_INSPECT_ARGUMENTS: DISABLE
   ENABLE_EMBEDDED_ASAR_INTEGRITY_VALIDATION: ENABLE
   ONLY_LOAD_APP_FROM_ASAR: ENABLE
   LOAD_BROWSER_PROCESS_SPECIFIC_V8_SNAPSHOT: DISABLE

>>> from electron_fuses import FuseConfig
>>> print(fuses.config[FuseV1Options.RUN_AS_NODE])

   FuseState.DISABLE

If searching a macOS executable, the .app or entry point (under Contents/MacOS) can be provided to electron_fuses.ResolveFramework() to determine the path to the Electron Framework for fuse parsing:

>>> from electron_fuses import ResolveFramework
>>> print(ResolveFramework("1Password.app").framework)
"1Password.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework"

Additionally can detect Electron and Chromium versions:

  • Partially supports nwjs-based applications for Chromium version detection
>>> from electron_fuses import ElectronVersion
>>> print(ElectronVersion("path/to/electron").chromium_version)
"118.0.5993.144"
>>> print(ElectronVersion("path/to/electron").electron_version)
"27.1.0"
>>> print(ElectronVersion("path/to/electron").electron_release_date)
"2023-11-15T19:00:32Z"

Metadata

Release files for electron-fuses 1.4.0

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

Built distribution (wheel)

Table of built distributions (wheels) for electron-fuses 1.4.0
File Interpreter ABI Platform
electron_fuses-1.4.0-py3-none-any.whl Python 3 none any Details

Release files / electron_fuses-1.4.0-py3-none-any.whl

Download URL electron_fuses-1.4.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005ef48013dd52acbbf5d035d9f4cac4fb1ebe17a54ccccd7352c76dfc1699af
BLAKE2b-256 checksum
How to use checksums
121566e98b710d56f0a2beb0c8edd26117267899d41428b7cbf105b7406dccd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.4.0 This release

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

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