Skip to main content

A Python module and CLI tool to manually download Chrome/Chromium components.

Project description

Chrome Component Downloader

A Python module and CLI tool to manually download Chrome/Chromium components.

Features

  • Generate update requests for Chromium components.
  • Support for Omaha protocol version 3.1.
  • Download latest and previous versions of each component.

Installation

To use this component yourself, you can clone this repo or install it with pip:

pip install chrome-component-downloader

Python Module

The module allows to download Chromium components and generate update requests.

Example usage

Download component and save as zip file locally:

from chrome_component_downloader import download_component

component_zip, version = download_component(
    component_id = "niikhdgajlphfehepabhhblakbdgeefj", # Privacy Sandbox Attestations
    target_version = "2025.03.31",
    send_system_info = False
)

print(f"Version: {version}")
with open("component.zip", "wb") as out_file:
    out_file.write(component_zip)

Generate an update request:

from chrome_component_downloader.update_request import generate as generate_update_request

update_request = generate_update_request(
    component_id = "niikhdgajlphfehepabhhblakbdgeefj", # Privacy Sandbox Attestations
    target_version = "2025.03.31",
    send_system_info = False
)

print(update_request)

CLI Tool

The CLI tool provides a simple way to download a component from the command line.

Usage

usage: chrome-component-downloader [-h] [--target_version TARGET_VERSION] [--output OUTPUT] [--send_system_info] component

positional arguments:
  component             The component's ID or name. The component names can be one of the following: 
                        - autofill_states_data
                        - pki_metadata
                        - subresource_filter_rules
                        - crowd_deny
                        - certificate_error_assistant
                        - related_website_sets
                        - amount_extraction_heuristic_regexes
                        - crlset
                        - hyphenation
                        - third_party_cookie_deprecation_metadata
                        - safety_tips
                        - file_type_policies
                        - trust_token_key_commitments
                        - mei_preload
                        - origin_trials
                        - optimization_hints
                        - cookie_readiness_list
                        - screenai_library
                        - privacy_sandbox_attestations
                        - ondeviceheadsuggest
                        - widevine_content_decryption_module
                        - zxcvbn_data_dictionaries
                        - open_cookie_database

options:
  -h, --help            show this help message and exit
  --target_version TARGET_VERSION
                        The component's target version. It can be a prefix that the version number must match. If no value is specified, the latest version is downloaded.
  --output OUTPUT       The output file name. If no value is specified, the component's ID and version is used as the file name.
  --send_system_info    Send system information to the CUP server.

Example usage

Download a specific component:

chrome-component-downloader privacy_sandbox_attestations --target_version 2025.03.31

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrome_component_downloader-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chrome_component_downloader-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file chrome_component_downloader-0.1.1.tar.gz.

File metadata

  • Download URL: chrome_component_downloader-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.13.9-200.fc41.x86_64

File hashes

Hashes for chrome_component_downloader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 530720226784700d7a7b919250b8f19a04ce38dcb71f585c1580403cfb135f9e
MD5 5a9f58c40509cbbdc1a2f67d24c28d7e
BLAKE2b-256 a91678f6d034a3ea34da52a9f5a2c091736df9366ea2ba818e32f469da92e0fe

See more details on using hashes here.

File details

Details for the file chrome_component_downloader-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for chrome_component_downloader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12e70fa2d96a1aa18d804c576f03f4b80b1ba7c057b5d15a9aaa94de43b718ab
MD5 6168277ea01194318de92d78a2a715d2
BLAKE2b-256 4bbca53470c023b186d13411c198a5a7bc776cf1948bba2ef25775cdb7a486d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page