Skip to main content

Python bindings for open62541 OPC UA library

Project description

pyo6 - Python bindings for open62541

prequesites

build requirements

pip install --upgrade pip setuptools build wheel numpy cython black mypy

build docs

pip install mkdocs mkdocs-gen-files mkdocstrings mkdocstrings-python mkdocs-material mkdocs-material-extensions

open62541 library

By default the module build will checkout open62541 into deps/open62541, build it, and install it into deps/open62541/build/install. The extension links against and bundles the local installation automatically.

open62541 may be installed system-wide (either from your package manager or by omitting -DCMAKE_INSTALL_PREFIX during cmake configuration). To make the module build link against the system library instead, use:

export O6_USE_SYSTEM_LIB=1

building o6-python module

python3 setup.py build

Optionally: To pin a specific open62541 version, run build_open62541 with --open62541-ref before the build, i.e.:

python3 setup.py build_open62541 --open62541-ref=v1.3.9 build

Optionally: To use a custom NodeSet2 XML for enum code generation, run src_gen with --nodeset before the build, i.e.:

python3 setup.py src_gen --nodeset path/to/custom_nodeset2.xml build

build + install for testing

pip install -v --break-system-packages --editable . --editable packages/o6-ns --no-build-isolation

Optional build configurations with --open62541-ref or --nodeset can be passed directly to the pip install command

pip install -v --break-system-packages --editable .  --no-build-isolation \
        --build-option="build_open62541 --open62541-ref=v1.3.9" \
        --build-option="src_gen --nodeset path/to/custom_nodeset2.xml"

valgrind tests

Additionally requires:

pip install pytest

Run with:

PYTHONMALLOC=malloc valgrind --tool=memcheck   --suppressions=/usr/lib/valgrind/python3.supp   --leak-check=full --track-origins=yes   python3 ./tests/test_client.py

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.

o7-0.2.0-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.26+ x86-64manylinux: glibc 2.28+ x86-64

o7-0.2.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

o7-0.2.0-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.26+ x86-64manylinux: glibc 2.28+ x86-64

o7-0.2.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

o7-0.2.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.26+ x86-64manylinux: glibc 2.28+ x86-64

o7-0.2.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

File details

Details for the file o7-0.2.0-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for o7-0.2.0-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 464319d101c204fda5f5c4f04c9b6298dc1a27d91a0145361e37fa5418f2bec8
MD5 9a70be3d96c970989a8dbf801ae68fc6
BLAKE2b-256 bac6022759efd39ddf4cf2d86f18abf610a941ac5c38b9b901e9130911e0b476

See more details on using hashes here.

File details

Details for the file o7-0.2.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for o7-0.2.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1a8a83d0057406f447aeebf284330fc459ace19cab66ba118bfd7b7b7f0d2609
MD5 88e0c3559d7359bba6e8a02b0686afb6
BLAKE2b-256 c22f775ea29ade78187b9a95c1fbe999e29aede00da7bc26a75d77b8cee3e194

See more details on using hashes here.

File details

Details for the file o7-0.2.0-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for o7-0.2.0-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e1ae8682675b2a0e3b1ea2c2b03745e34b7748773b60146fb8037369011d11a7
MD5 523627160b5e391c26d25923ad2806e7
BLAKE2b-256 5d88511ff5d6f8e02df89f57f53e2a5ec7190841863c33752201010f6b74a23a

See more details on using hashes here.

File details

Details for the file o7-0.2.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for o7-0.2.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 545807c105d9b7d635862c5aa092f8152dd779b73bebb341b96957cb9c9cde73
MD5 ce8c788ecd6c9c6b186c07455469b994
BLAKE2b-256 8a855616e4eec3ca0f1bd4775bd1ce81e3c81206ad9b30fb5e6e55d9b7d97033

See more details on using hashes here.

File details

Details for the file o7-0.2.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for o7-0.2.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab07c94c4348d013b97c63a0a3ae97b68e4ae36ec90699449254dd10c37f0b22
MD5 33bd8e58094984f8e7e6ee732b05f0cb
BLAKE2b-256 eb5af50e13784706abf7c2fe895973609550adbfaeb396a1dd995edb41662b63

See more details on using hashes here.

File details

Details for the file o7-0.2.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for o7-0.2.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 50c5a2c652b6d323268502c04fd08e343f103dc1386c07d5a91b0a47ea9b9c7f
MD5 f7e5efad1a9a49dd417772ef15f166df
BLAKE2b-256 04536062309b9ef92912dda889953016ac576e3388da79713c811db7962df787

See more details on using hashes here.

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