ingenialink-python is a Python library for simple motion control tasks and communication with Ingenia drives.
- Python 3.9 or higher
- WinPcap 4.1.3
Installation is done by using pip, i.e:
pip install ingenialink
For further details you can read the documentation where you will find simple usage examples, the API docs, etc.
Install poetry:
pip install poetry
Use an environment with a certain Python version:
poetry env use 3.12
Install all dependencies:
poetry install --all-groups
To run the tasks use poe. For example, to run the format task:
poetry run poe format
Any extra CLI arguments will be appended. For example, to indicate a certain test for pytest:
poetry run poe tests -k test_servo.py
Activate poetry environment and run the following:
poetry run poe build-wheel
Create tests/setups/tests_setup.py file with configuration file.
This file is ignored by git and won't be uploaded to the repository. Example of a setup:
from pathlib import Path
from summit_testing_framework.setups import LocalDriveConfigSpecifier
DEN_NET_E_SETUP = LocalDriveConfigSpecifier.from_ethercat_configuration(
identifier="den-net-e",
dictionary=Path("C://Users//some.user//Downloads//den-net-e_eoe_2.7.3.xdf"),
config_file=Path("C://Users//some.user//Downloads//den_net_e.xcf"),
firmware_file=Path("C://Users//some.user//Downloads//den-net-e_2.7.3.lfu"),
ifname="\\Device\\NPF_{675921D7-B64A-4997-9211-D18E2A6DC96A}",
slave=1,
boot_in_app=False,
)For more information, check summit-testing-framework documentation.
Run tests selecting the markers that you want and are appropriate for your setup. Beware that some tests may not be appropriate for the setup that you have and may fail.
Run the tests:
poetry run poe tests -m {markers}