Python binding for libinco_32
Project description
inco_32 Python Binding
This is a Python 2 and 3 binding for libinco_32 (inco_32.dll/libinco_32.so), the library used for INCO communication to Indel industrial automation systems.
To use it, you need to have Indel Tools installed, which provides the library.
Usage
The Python API is for the most part a direct translation of the C API, with the exception that errors are reported using exceptions rather than return values, and output is provided as return values rather than through pointer arguments. Therefore, refer to the C API documentation for details.
Example
import inco_32
target = 'MyTarget'
try:
cpuname = inco_32.GetVariable(target, 'Target.Cpu', 256)
except inco_32.INCOError as e:
if e.m_uError == inco_32.ER_INCO_VAR_NOT_FOUND:
print('where?')
For more usage examples, see the tests in tests/test_inco_32.py
.
Installation
The binding is already installed in the Python installations included with Indel Tools (Indel Tools Setup on Windows, package python-inco32
on Linux). These installations are intended for internal use by Indel Tools.
For larger customer applications that require more packages to be installed, it is recommended that you use your own Python installation. For those, the package is available from PyPI:
pip install inco_32
To build from source, pip install build
and use
rm -rf build src/inco_32.egg-info && python3 -m build .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file inco_32-4.4.1.tar.gz
.
File metadata
- Download URL: inco_32-4.4.1.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf498ea64f55cac75ee126167c755d42df47adb4a303b84ae263d8f983efa76 |
|
MD5 | eec07b0b3a9207e6e11bb747091ae988 |
|
BLAKE2b-256 | c186d4277b85bcb5dbe2ab9601a60163c3e379754958ef648250f9d9fc2dd42e |
File details
Details for the file inco_32-4.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: inco_32-4.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7cdb5258d95fdfeac4cef2a9ab6decb26aa78789a32acea41d17b7b3a9102c |
|
MD5 | a14f48d5b3aac6089da7a90fab0e3ab5 |
|
BLAKE2b-256 | f18fa4f37a146aa319ed7432d4f4157a36ed14077d6440094aeddb522fe15264 |