Skip to main content

Cogniflow OPC-UA owner utilities for virtual-server and read APIs.

Project description

cf-opcua-server

Current-phase Cogniflow OPC UA owner module.

The package still publishes under the existing cf-opcua-server name for compatibility, but it now covers both:

  • virtual OPC UA server utilities for demos
  • reusable one-shot OPC UA read APIs for owner-module consumers
  • a native owner-contract provider consumed by cf_pipeline_engine and cf_basic_io

Architecture note:

  • cf_datahive is the reference owner for storage egress
  • cf_opcua_server is the current owner for OPC UA integration until a future dedicated rename/migration task possibly broadens the package to cf-opencua

Published distribution name:

pip install cf-opcua-server

Usage

cf-opcua-server start --interval 1.0

Read a snapshot from an OPC UA endpoint:

cf-opcua-server read --endpoint opc.tcp://127.0.0.1:4840/VirtualPhServer

Python API:

from cf_opcua_server import DEFAULT_NODE_MAP, read_nodes_once_json_sync, read_nodes_once_sync

payload = read_nodes_once_sync(
    "opc.tcp://127.0.0.1:4840/VirtualPhServer",
    DEFAULT_NODE_MAP,
    timeout=2.0,
)
print(payload)

payload_json = read_nodes_once_json_sync(
    "opc.tcp://127.0.0.1:4840/VirtualPhServer",
    DEFAULT_NODE_MAP,
    timeout=2.0,
)
print(payload_json)

The default read mapping uses the virtual demo nodes:

  • pH
  • temperature
  • timestamp

Runner-owned consumers that need a single-line payload can use:

cf-opcua-server read --compact --endpoint opc.tcp://127.0.0.1:4840/VirtualPhServer

The package also publishes a native provider surface for CfOpcuaOwnerContractV1. The engine links that provider and injects it into CfExecutionContext.opcua_owner for plugin-executed cfio:OpcuaReaderStep.

Publishing

cf_opcua_server is published with the dedicated Windows workflow:

  • Workflow: .github/workflows/cf_opcua_server_windows_publish.yml
  • Package directory: sandcastle/cf_opcua_server
  • PyPI tag: cf-opcua-server-v<version>
  • TestPyPI tag: cf-opcua-server-v<version>-test

Local preflight:

powershell -ExecutionPolicy Bypass -File scripts/mimic_windows_python_publish_workflow.ps1 `
  -WorkflowFile .github/workflows/cf_opcua_server_windows_publish.yml `
  -PackageDir sandcastle/cf_opcua_server `
  -PythonExe py `
  -PythonVersion 3.14

Queue a dry-run dispatch:

powershell -ExecutionPolicy Bypass -File scripts/queue_windows_python_publish_workflow.ps1 `
  -WorkflowFile .github/workflows/cf_opcua_server_windows_publish.yml `
  -PackageDir sandcastle/cf_opcua_server `
  -PublishTarget testpypi `
  -Ref main `
  -RequireLocalPass `
  -DryRun

Project details


Download files

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

Source Distribution

cf_opcua_server-0.2.4.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

cf_opcua_server-0.2.4-cp314-cp314-win_amd64.whl (32.9 kB view details)

Uploaded CPython 3.14Windows x86-64

File details

Details for the file cf_opcua_server-0.2.4.tar.gz.

File metadata

  • Download URL: cf_opcua_server-0.2.4.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for cf_opcua_server-0.2.4.tar.gz
Algorithm Hash digest
SHA256 496eabd4e7fbe1bcd9e4c02e0e59c8342c21617bae2d9f3cf1c231974664997f
MD5 8608d9350a83af69b182428cd333714c
BLAKE2b-256 2e3de89c67b531e21f36b8bd59caae9892caf02e21767682ed211c19f10a2632

See more details on using hashes here.

File details

Details for the file cf_opcua_server-0.2.4-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for cf_opcua_server-0.2.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 ef4df1a377fadd1997523cdfd5f0f3435f0dc156e2a2a44a38cac28eb5c0d946
MD5 ca0a23cc7fd0b2b3da2fa9aaaade039e
BLAKE2b-256 a455a1f9d6a2798200ec60c4dca2c99df570c6d8b4f754419e6a4e3f382b75b8

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