iolink
IO-Link is a standardized point-to-point connection down at the edge layer of the factory automation pyramid.
The iolink Python package allows access to IO-Link devices from within Python, by providing a common abstraction layer to different IO-Link adapters.
Note that for now, only the iqLink® device is supported and only under Windows.
Installation
Use pip to install the libary.
$ pip install iolink
Apart from that, you need to install the dependencies that are required for your adapter.
Example usage
This example prints the product name of a connected device, by reading out the standard ISDU parameter 0x12.
import iolink
# create a port instance
with iolink.get_port(interface='iqLink') as port:
# change state of the connected device to "Operate"
port.change_device_state_to('Operate')
# read standard ISDU
isdu_0x12_data = port.read_device_isdu(0x12, 0)
# convert the received bytes object that's supposed
# to be an ASCII string to a standard Python 3 string
# and print the result
print(f'Product Name: {isdu_0x12_data.decode("utf8")}')
Contributing
Pull requests are welcome. For any major changes or questions regarding implementation, please open an issue to ask or discuss first.
License
iolink is licensed under the MIT License.
Trademarks
IO-Link is a registered trademark of Profibus User Organization (PNO)
Metadata
Release files for iolink 0.0.5
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 | |
|---|---|---|---|---|
| iolink-0.0.5.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iolink-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / iolink-0.0.5.tar.gz
| Download URL | iolink-0.0.5.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
601b1f272a60e81a7c03b53b4c07ab826bf4ac3e3b3b725ce4ee6cb2bb8b4ab9
|
|
BLAKE2b-256 checksum How to use checksums |
0beb605ffdd73a231f29498017e8fc53ae6d0badd10d8937b02a0ccf1942b320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / iolink-0.0.5-py3-none-any.whl
| Download URL | iolink-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9258fb24d72a4e9371e1c34514cfcb946c84c4130fafd1ea47a511c14a607904
|
|
BLAKE2b-256 checksum How to use checksums |
cf798587ce90afb0b2568581170fee16220e03d52776931393dc96169a3fe9b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for iolink 0.0.5
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.