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.1-py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ x86-64

pyidh-0.2.1-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.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: pyidh-0.2.1-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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 02afd5ba4cf469437e1b374c30312a83ab8ef3dd4f961d19a957a51c0e6343c1
MD5 a5e9d8d3ded5b90547d8c32dffa68c00
BLAKE2b-256 5fb49db8068dee91ab9373eccab5191ce5d68b2806a132f5022f580978c58b62

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyidh-0.2.1-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.1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyidh-0.2.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8bbfc1b3c20e9c02651f82b3a6afe33f4e78cfb265e831ce2bf03ac650705248
MD5 b498dccc0d83d442911eb270b9d4940d
BLAKE2b-256 9034d392a7dd64849e73bb5aba74d8ee2eb4759d9bbca35c84ff3b35ef91c93b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyidh-0.2.1-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.1-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyidh-0.2.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6967e28c82e9373b97e4b0ef10e9366c6f30424fce3df11307dc28f2f162a983
MD5 c3a74cbf78fdc707b15f05f1cea6dd07
BLAKE2b-256 cd488f409293cc3fc7034bfd8d0095762d106140f3a51d3a805e57876b72d04c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyidh-0.2.1-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