semvec/pypi-packages huggingface dataset:
lpc-checksum 3.0.0
Python script to calculate LPC firmware checksums
License: MIT
Requires Python: >=3.9,<4.0
Keywords: lpc,mcu,cortex,nxp,flashing

# 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.

[![Linting](https://github.com/basilfx/lpc_checksum/actions/workflows/lint.yml/badge.svg)](https://github.com/basilfx/lpc_checksum/actions/workflows/lint.yml)
[![Testing](https://github.com/basilfx/lpc_checksum/actions/workflows/test.yml/badge.svg)](https://github.com/basilfx/lpc_checksum/actions/workflows/test.yml)
[![PyPI version](https://badge.fury.io/py/lpc-checksum.svg)](https://badge.fury.io/py/lpc-checksum)

## 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`](CONTRIBUTING.md) file.

## License
See the [`LICENSE.md`](LICENSE.md) file (MIT license).
pycov-convert-relative-filenames 1.1.1
A quick and dirty helper script to convert a xml coverage report
License: MIT
Requires Python: >=3.6

[![license](https://img.shields.io/badge/license-MIT-brightgreen)](https://spdx.org/licenses/MIT.html)
[![pipelines](https://gitlab.com/jlecomte/projects/python/pycov-convert-relative-filenames/badges/master/pipeline.svg)](https://gitlab.com/jlecomte/projects/python/pycov-convert-relative-filenames/pipelines)
[![coverage](https://gitlab.com/jlecomte/projects/python/pycov-convert-relative-filenames/badges/master/coverage.svg)](https://jlecomte.gitlab.io/projects/python/pycov-convert-relative-filenames/coverage/index.html)

# pycov-convert-relative-filenames

A quick and dirty helper script to convert a xml coverage report into a valid cobertura file that will be accepted by GitLab CI.

This enables the merge request pages to have coverage shown on the code review tab.

## Installation from PyPI

You can install the latest version from PyPI package repository.

~~~bash
python3 -mpip install -U pycov-convert-relative-filenames
~~~

## GitLab CI Usage

Sample gitlab-ci.yml snippet for coverage:

~~~yaml
coverage:
  script:
    - python3 -m pytest --cov-report=xml:coverage.tmp.xml -- tests
    - pycov-convert-relative-filenames < coverage.tmp.xml > coverage.xml
  artifacts:
    when: always
    reports:
      coverage_report:
        coverage_format: cobertura
        path: coverage.xml
~~~

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Locations

  * GitLab: [https://gitlab.com/jlecomte/projects/python/pycov-convert-relative-filenames](https://gitlab.com/jlecomte/projects/python/pycov-convert-relative-filenames)
  * PyPi: [https://pypi.org/project/pycov-convert-relative-filenames](https://pypi.org/project/pycov-convert-relative-filenames)