Skip to main content

Python helpers for the Authenticated Lighting Network Protocol.

Project description

ALNP Python Package

Lightweight Python helpers for ALNP control envelopes and headers. This package is a thin layer for constructing/serializing control-plane messages; networking is left to the application.

Usage

from alnp import (
    build_discovery_request,
    build_control_envelope,
    build_frame_envelope,
    CapabilitySet,
    DeviceIdentity,
)

discovery = build_discovery_request(["identity", "capabilities"], b"\x00" * 32)
control = build_control_envelope(
    session_id="00000000-0000-0000-0000-000000000000",
    seq=1,
    op="set_mode",
    payload={"mode": "Normal"},
    mac=b"\x00" * 16,
)
frame = build_frame_envelope(
    session_id="00000000-0000-0000-0000-000000000000",
    timestamp_us=0,
    priority=5,
    channel_format="u8",
    channels=[0, 1, 2, 3],
)
print(discovery, control, frame)

Build

python -m pip install -U build
python -m build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alnp-1.2.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alnp-1.2.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file alnp-1.2.4.tar.gz.

File metadata

  • Download URL: alnp-1.2.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alnp-1.2.4.tar.gz
Algorithm Hash digest
SHA256 88f229d5ae9e52034e741e31189fbddf4be82de573ce82e390121f6361106036
MD5 ea9bc66fb7261139e65620117ceb290c
BLAKE2b-256 9285eba8bd8aad4a4a2e18880b46cf26ca7869839a8692705aac83a201618849

See more details on using hashes here.

Provenance

The following attestation bundles were made for alnp-1.2.4.tar.gz:

Publisher: python-release.yml on alpine-core/Authenticated-Lighting-Protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file alnp-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: alnp-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alnp-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 08fb02cc04446a6f559b2f6c913a7f3d3d6e2bf482d41dffafcbb5d9854ac7c7
MD5 cdfe96e7bdb72b119f4b072aa402097d
BLAKE2b-256 771434e7fb16ac76a3a3129b9475796e9230795f1791031dca2bef19c03ab910

See more details on using hashes here.

Provenance

The following attestation bundles were made for alnp-1.2.4-py3-none-any.whl:

Publisher: python-release.yml on alpine-core/Authenticated-Lighting-Protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page