Agiltron-SelfAlign
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=Nonedefaults to the readtimeoutvalue.
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.
Metadata
Release files for agiltron-selfalign 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agiltron_selfalign-0.2.0.tar.gz | 40.9 kB | Without provenance | Details for agiltron_selfalign-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agiltron_selfalign-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for agiltron_selfalign-0.2.0-py3-none-any.whl |
Total release size: 46.0 kB
Release files / agiltron_selfalign-0.2.0.tar.gz
| Download URL | agiltron_selfalign-0.2.0.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0289048f0d1d0295d22620d3721a31583cb79fed3ff24905515e9f864520e147
|
|
BLAKE2b-256 checksum How to use checksums |
fddc63b7e3b5c391b4e33c39b6b35327253d64709926264cd12013250b9312b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / agiltron_selfalign-0.2.0-py3-none-any.whl
| Download URL | agiltron_selfalign-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87a0c128648b96f1d74cd81b2af4e21b2e0cde2c5bac365e3a2cbed12511ef14
|
|
BLAKE2b-256 checksum How to use checksums |
e9b98f38d0b0b7509ddab9839ddde1bc9137ee2ff3485b51172416f30efea72d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for agiltron-selfalign 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.