Skip to main content

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 .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inco_32-4.5.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inco_32-4.5.0-py2.py3-none-any.whl (21.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file inco_32-4.5.0.tar.gz.

File metadata

  • Download URL: inco_32-4.5.0.tar.gz
  • Upload date:
  • Size: 23.0 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

Hashes for inco_32-4.5.0.tar.gz
Algorithm Hash digest
SHA256 6f6a9912e400111af25539dfddf556eb787ccfc20b3ef203c0b7f9b37dbf12dd
MD5 fe9da61e5bdebfc0752bed9e7a6359c2
BLAKE2b-256 1ae4c5fdd923d324eb9e289a417f75d453d5f73673bcf14db19fd3570d2c751c

See more details on using hashes here.

File details

Details for the file inco_32-4.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: inco_32-4.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.5 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

Hashes for inco_32-4.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9758e2159750e5f30765df69f835c2afe4989590e3f43c5b88ba43f61d555123
MD5 0272d8fd9b45df149cec3b4dcc61d1e7
BLAKE2b-256 09a968a3a1779d1979212c6bacec0c0f7601343355b634e51235b8a56243003a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.5.0 This release

2 files

4.4.1

2 files

4.4.0

2 files

4.3.9

2 files

4.3.8

2 files

4.3.7

2 files

4.3.6

2 files

4.3.5

2 files

4.3.3

2 files

4.3.2

2 files

4.3.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page