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,
    support_subscribe=1
)

# 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.1.7-py3-none-win_amd64.whl (4.0 MB view details)

Uploaded Python 3Windows x86-64

pyidh-0.1.7-py3-none-manylinux_2_28_x86_64.whl (4.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

pyidh-0.1.7-py3-none-manylinux_2_28_aarch64.whl (4.6 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

File details

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

File metadata

  • Download URL: pyidh-0.1.7-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.1.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 98a2a3f613b219fa78c1a6e65ef5e8381d397d708f52219747dc730c6253fe67
MD5 e7923a55c85c70e5e115b1c334181255
BLAKE2b-256 d292b3ac4cb04fb1435b9133510d0cb560b2f337e71d7f29c0b3c0e645e72cb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyidh-0.1.7-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c78ba03a27c23a30f29b6e6f3a1602f6a448bbb27466d97b2bbc52933665dd0b
MD5 596ca707958cf3241caea54bbcd42f47
BLAKE2b-256 77837e0f3263a2ca8f594ea33765bfc207fcf7522cf1941927793d99bc916ee7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyidh-0.1.7-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 230abfb0e62acea8390361a6e055821b7f9ee4273c94833430072e73def0cbc1
MD5 8865325c9d7b51b1f0da9869c55581d9
BLAKE2b-256 ba39d3255aba13ded1a364fdcd784aec1d4c2e5833867afb4e28aae3f1a8399e

See more details on using hashes here.

Provenance

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