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 compact JSON read surface consumed by
cf-pipeline-enginefor runner-ownedcfio:OpcuaReaderStep
Architecture note:
cf_datahiveis the reference owner for storage egresscf_opcua_serveris the current owner for OPC UA integration until a future dedicated rename/migration task possibly broadens the package tocf-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:
pHtemperaturetimestamp
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cf_opcua_server-0.2.2.tar.gz.
File metadata
- Download URL: cf_opcua_server-0.2.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93c37ef5f8f27a95f25d1c1a387131be75249fd9e4a10534049f8767f3d3b39d
|
|
| MD5 |
ff79b0915513632408ef669150af1342
|
|
| BLAKE2b-256 |
bfbc0dd5be6d35b52865cfce7992fde1ef79f8ef4e37d5bd90e13066b259a63c
|
File details
Details for the file cf_opcua_server-0.2.2-py3-none-any.whl.
File metadata
- Download URL: cf_opcua_server-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c557cbac3c23681822cf5b1cbd2cacaaa982676cd457cd6a7273cc9b4b88138
|
|
| MD5 |
98666c109651bed3a83d2682ac4e51ba
|
|
| BLAKE2b-256 |
3b234eff94cbff4aeb5fbc8a64a05d81063a013c256f3cd47a6d2ef219fb3499
|