Skip to main content

Python wrapper for Industry Data Hub (linux_aarch64)

Project description

PyIDH

Python wrapper for IDH (Industrial Data Hub) library.

Installation

  1. Install Microsoft Visual C++ 2015-2022 Redistributable:

  2. Install pyidh:

pip install pyidh

Usage

from pyidh import IDHLibrary, IDH_DATATYPE, IDH_RTSOURCE

# Create IDH Instance
idh = IDHLibrary()

# Create Data Source
source = idh.create_source(
    source_type=IDH_RTSOURCE.IDH_RTSOURCE_UA.value,
    source_schema="opc.tcp://localhost:4840",
    sample_timespan_msec=1000
)

# Read data
tags = [
    {
        "data_type": IDH_DATATYPE.IDH_DATATYPE_REAL.value,
        "namespace_index": 3,
        "tag_name": "Demo.Dynamic.Scalar.Float"
    }
]

result, values = idh.read_values(source, tags)
for value in values:
    print(f"Quality: {value.quality}, Timestamp: {value.timestamp}, Value: {value.value}")

# cleanup
idh.destroy_source(source)
idh.destroy()

Requirements

  • Python 3.8 or higher
  • Windows operating system
  • libidh.dll (included in the package)

License

MIT License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyidh-0.2.0-py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 3Windows x86-64

pyidh-0.2.0-py3-none-manylinux_2_28_x86_64.whl (8.0 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

pyidh-0.2.0-py3-none-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

File details

Details for the file pyidh-0.2.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: pyidh-0.2.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyidh-0.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 041efcd8e7d6523e9065c384e3514323b0cc3264caf74b36fd017f7127da450c
MD5 4da0c8cf9e4f4dad35710a44765d25a9
BLAKE2b-256 0f6aa4fd2fd31711e78c7823ed70cb000a6591d220ed586a2f8585b678f086c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyidh-0.2.0-py3-none-win_amd64.whl:

Publisher: build.yml on ymwang78/IndustryDataHub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyidh-0.2.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyidh-0.2.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27533d6ea22016e61005fa2c6bcdd312081366a51312bd73e6077b2ec5310afb
MD5 7f7919e21681a5e64e20b2b3e712a6dd
BLAKE2b-256 677f522547c4a5660274c4acd9ac075ce08f7b8dfa510f52a9fc2eb5e18ecfd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyidh-0.2.0-py3-none-manylinux_2_28_x86_64.whl:

Publisher: build.yml on ymwang78/IndustryDataHub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyidh-0.2.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyidh-0.2.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b76d217235f2f36699f55c2041288b5cef0dc9d98f1b4061cd48fe09a53604c0
MD5 99cc8924d897ec4ef58d58e319830209
BLAKE2b-256 cabb682b9bc8d95cecac7040da0ab6fb8d327e5f7b644e4980bfb716241a761c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyidh-0.2.0-py3-none-manylinux_2_28_aarch64.whl:

Publisher: build.yml on ymwang78/IndustryDataHub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page