Catalog PyPI
PACKAGE EXPLORERView in registry

agiltron-selfalign

PyPI

Python interface for the Agiltron SelfAlign fiber switch

agiltronfiberlab-automationserialswitch
Versions collected1
Direct dependencies1From release 0.2.0
Last observed21 Oct, 09:08 UTC

README

Version 0.2.0 documentation

Agiltron-SelfAlign

Python versions on PyPI agiltron-selfalign version on PyPI

Python interface for the Agiltron SelfAlign fiber switch.

Requires Python 3.11 or newer.

Install

uv add agiltron-selfalign

Or install directly from source:

uv add git+https://github.com/ograsdijk/Agiltron-SelfAlign.git

Code Example

from agiltron_selfalign import AgiltronSelfAlign

resource_name = "COM8"
switch = AgiltronSelfAlign(resource_name, number_of_ports=16)

# change port to port 14
switch.set_fiber_port(14)

# home switch to port 1
switch.home()

Context Manager Example

from agiltron_selfalign import AgiltronSelfAlign

resource_name = "COM8"

with AgiltronSelfAlign(resource_name, number_of_ports=16) as switch:
		switch.set_fiber_port(14)
		switch.home()

API

  • AgiltronSelfAlign(resource_name, timeout=2.0, number_of_ports=16, baudrate=9600, write_timeout=None, inter_byte_timeout=None)
    • Opens the serial connection to the switch.
    • write_timeout=None defaults to the read timeout value.
  • set_fiber_port(fiber_port)
    • Switches to the requested fiber port and validates the acknowledgement frame.
  • home()
    • Sends the home command to move the switch to port 1.
  • close()
    • Closes the serial connection.
  • AgiltronSelfAlignError
    • Raised for serial communication failures and protocol response errors.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.018 Feb 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
ograsdijk/agiltron-selfalign

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c11934fa7b4083b55dc7f8990108837e06bc76fea8197b2dbe633b728f77cced