Skip to main content

pyavaccess

Python libary for interfacing with AV Access devices over serial. Designed for use with Home Assistant.

Supported Devices

Although this library was created for and tested with the 4kmx42-h2a, it was written so that it could be easily expanded for use with any AV Access device.

Have a different device?

If you're a developer - please consider contributing to this project :)

If you're not a developer - open an issue with the model and features of your device and I'll see what I can do

Usage

from pyavaccess import HDMIMatrixSerial

# Interface with a "4kmx42-h2a" device over serial at "/dev/ttyUSB0"
av = HDMIMatrixSerial("/dev/ttyUSB0", "4KMX42-H2A")

# Print current version
print(av.getVer())

# Get a map of active input for each output {out: in, ...}
outputMap = av.getMappings()

# For each output, print the input mapped to it
for output, input in outputMap.items():
    print("Output {} is mapped to input {}".format(output, input))

# Set the input for output 1 to input 4
av.mapOutput(1, 4)

# Check that the mapping was successful
assert av.getMapping(1) == 4

Testing

The tests for this library are driven by pytest and require connection to an AV Access device.

pytest

Metadata

Release files for pyavaccess 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyavaccess 0.2.0
File Size Uploaded Provenance
pyavaccess-0.2.0.tar.gz 19.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyavaccess 0.2.0
File Interpreter ABI Platform
pyavaccess-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.7 kB

Release files / pyavaccess-0.2.0.tar.gz

Download URL pyavaccess-0.2.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b3e17aebb79b9595f00e246cf3b01f6661f71e01046cb6515580d2e3aa2a4e90
BLAKE2b-256 checksum
How to use checksums
9cf9e1d8fb214f6925d99781db54bd66380abcce77c5dba46e22e5b216b3b44c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.1

Release files / pyavaccess-0.2.0-py3-none-any.whl

Download URL pyavaccess-0.2.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf4d72d471458be3a82ad073354686f8f02ee98f3f59234e0ab81b994c04723e
BLAKE2b-256 checksum
How to use checksums
c606caedeea5a7fe8e225fa89f1f44c7ca36c44c1e39dd2993a50a71a76af342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.1

Security for pyavaccess 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page