Releases: drunsinn/pyLSV2
fix table reader
fix error in table parser not splitting columns correctly
missing safe login and broken file search
fix iTNC transfer error and old key codes
python3.4 and axis values
v0.7.3
Fix broken demo script
This release fixes a problem in the demo script, Thanks to @PandaRoux8!
iTNC: access values via data path
With the new function read_data_path(path)
it is possible to read values from PLC memory or tables using the data path
Code Cleanup and Commandline Tool
This release is the result of an overhaul of the code to change all static values to enumerations. This should make it clearer which values belong together. As a side effect the length of some of the name was reduced, resulting in a easier to understand code.
The drawback of breaking compatibility with all prior version resulted in the change to v0.7. Please refer to the documentation and the demo scripts on how to change existing code to the new API.
The other, smaller addition is the command line script lsv2cmd.py which allows transferring of files via lsv2. See it's help message for information on how to use it.
usage: lsv2cmd.py [-h] [-d | -v] [-t TIMEOUT] [-f] source destination
command line script for functions in pyLSV2
positional arguments:
source souce file. Either local path or URL with format lsv2://<hostname_or_ip>:<port>/TNC:/<path_to_file>
destination destination file. Either local path or URL with format lsv2://<hostname_or_ip>:<port>/TNC:/<path_to_file>
optional arguments:
-h, --help show this help message and exit
-d, --debug enable log level DEBUG
-v, --verbose enable log level INFO
-t TIMEOUT, --timeout TIMEOUT
timeout duration in seconds
-f, --force replace file at target if it already exists
Packages available via pip or https://pypi.org/project/pyLSV2/
error messages, file list and documentation
This release adds two new functions:
- get_error_messages() reads all available error messages from the control. Only works for iTNC
- get_file_list(path=None, descend=True, pattern=None) returns a list of all files and applies a regex filter to the file name
With this sphinx is used to generate documentation based on the docstrings.
Fix issue with table header and column names
Integrate #12 to fix problem with not recognizing table names and column titles.