Skip to main content

Chrome extension (crx) packing tool.

Project description

CRX3

PyPI version PyPI Supported Python Versions Downloads GitHub Actions (Tests)

crx3 is a python library for packaging and parsing crx files.

Installation

crx3 is available on PyPI:

$ python -m pip install crx3

crx3 officially supports Python 3.7+.

Functions

  • Create a private key for signing the crx file.
from crx3 import creator

creator.create_private_key_file('{output_private_key_file.pem}')
  • Packaging a zip file or extension code directory to a crx file.
from crx3 import creator

creator.create_crx_file('{extension_zip_or_dir}', '{private_key.pem}', '{output_crx_file.crx}')
  • Verify if a file is a valid crx version 3 file.
from crx3 import verifier

verifier_result, header_info = verifier.verify('{crx_file.crx}')
print(verifier_result, header_info)
assert verifier_result == verifier.VerifierResult.OK_FULL
assert header_info.crx_id == '{alphabet crx id string}'
assert header_info.public_key == '{public key string}'

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

crx3-0.0.1.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

crx3-0.0.1-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

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