lpc_checksum
Python script to calculate LPC firmware checksums, based on the C version by Roel Verdult. It can be used as a standalone application, or as a Python module that integrates directly in a build environment (e.g. SCons). It does not need to be compiled.
Requirements
The only requirement is Python 3.9 or newer.
Installation
This module can be installed from Pypi via pip install lpc_checksum.
Alternatively, you can install the latest version by cloning this repository
and run python setup.py install.
Usage
There are two ways of using lpc_checksum.
Standalone
When installed via Pip or from source, the command lpc_checksum should be
available on your PATH. By default, it assumes the input file is a binary file.
lpc_checksum <firmware.bin|hex> [--format=bin] [--read-only]
Program exits with a non-zero error code when it failed.
As a module
import lpc_checksum
checksum = lpc_checksum.checksum(input_file, [read_only=True])
On error, an exception will be raised.
Tests
To run the tests, please clone this repository and run poetry run pytest.
Contributing
See the CONTRIBUTING.md file.
License
See the LICENSE.md file (MIT license).
Metadata
Release files for lpc-checksum 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lpc_checksum-3.0.0.tar.gz | 4.3 kB | Without provenance | Details for lpc_checksum-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lpc_checksum-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for lpc_checksum-3.0.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / lpc_checksum-3.0.0.tar.gz
| Download URL | lpc_checksum-3.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44d5ee8cd6291ab875287f99b94f44c5b5e6ce89e2bc9c884a08bb87cd4dacd4
|
|
BLAKE2b-256 checksum How to use checksums |
68e751b444c547f68b15cf3f865405c7dfadd5d7eb663150328c1904c8945779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0
|
Release files / lpc_checksum-3.0.0-py3-none-any.whl
| Download URL | lpc_checksum-3.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dd89baa4ae6c8961335ec8153a56efbd3ddbd286965943490b283774f3f41e6
|
|
BLAKE2b-256 checksum How to use checksums |
b0b4f5b9ca73a950e0f32fe8f9ee12ecb970641cb695327147261484642d1692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0
|
Security for lpc-checksum 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.