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

Uploaded Python 3Windows x86-64

pyidh-26.6.0-py3-none-manylinux_2_28_x86_64.whl (24.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

pyidh-26.6.0-py3-none-manylinux_2_28_aarch64.whl (24.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

File details

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

File metadata

  • Download URL: pyidh-26.6.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.12

File hashes

Hashes for pyidh-26.6.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6ff6679ac3e5a8aa3ad1e4ae8578cd88574201018e34003d94b988a56dd9e59b
MD5 d7385c7f5cc12ef35f7bfe8056cfbcd9
BLAKE2b-256 b3a58ea8243933cc6cdbd046a8dec9af7d02f47e37160148ad9514891fdf0475

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyidh-26.6.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed6616bcce97d514bac1624eeea913e698e367aba4da708eaa87e803cbfe86dc
MD5 4907f52767dfe220eeafd131f6f53052
BLAKE2b-256 8c2c61f78b3dee1abbd5717760178e6679799537c572809efa36c17af2d5e333

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyidh-26.6.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 95fe5b0f82aff19300c7750904515929b0d7d4cbcf5fb64f32b6b94beeac081e
MD5 b8e46ca3984b6d00ac947c248668ee2a
BLAKE2b-256 fb6de67414d394204929ce66f9af544db760ca8c4560d67b9717ba09f839f8f3

See more details on using hashes here.

Provenance

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