PyAVD Utilities (Internal)

0.0.4 · active · verified Fri Apr 17

PyAVD-Utils is a Python library providing Rust-based utilities primarily used by the `pyavd` library for Arista Network Automation. It is explicitly not intended for direct user consumption and therefore does not follow standard semantic versioning. Releases are ad-hoc and tied to the development of `pyavd`.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates a basic import and usage of an internal utility function. Users are strongly advised against using this library directly due to its unstable API and lack of semantic versioning. The `str_to_md5` function typically expects bytes, hence the `.encode('utf-8')`.

from pyavd_utils import str_to_md5

# WARNING: This library is NOT intended for direct user consumption.
# Its API is unstable and may change without notice, and it does not
# follow semantic versioning. Use at your own risk.

data_string = "Hello, pyavd-utils!"
# Rust-bound functions often expect bytes, not str
md5_hash = str_to_md5(data_string.encode('utf-8'))

print(f"MD5 of '{data_string}': {md5_hash}")

view raw JSON →