Skip to content

Repository files navigation

autosar-e2e

PyPI - Version PyPI - Python Version Documentation Status

The documentation is available here.


Table of Contents

Description

This library provides fast C implementations of the E2E CRC algorithms and E2E profiles.

Installation

pip install autosar-e2e

Usage

CRC example

import e2e
crc: int = e2e.crc.calculate_crc8_h2f(b"\x00\x00\x00\x00")

E2E Profile 2

import e2e
# create data
data = bytearray(b"\x00" *  8)
data_id_list = b"\x00" * 16
# increment counter and calculate CRC inplace
e2e.p02.e2e_p02_protect(data, data_id_list, increment_counter=True)
# check CRC
crc_correct: bool = e2e.p02.e2e_p02_check(data, data_id_list)

Test

uvx tox

Build

uv build
uvx twine check dist/*

License

autosar-e2e is distributed under the terms of the MIT license.

About

Python implementation of the AUTOSAR E2E Protocol

Topics

Resources

Stars

34 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages