Chrome extension (crx) packing tool.
Project description
CRX3
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
Release history Release notifications | RSS feed
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)
Built Distribution
crx3-0.0.1-py3-none-any.whl
(11.1 kB
view hashes)