pydevmgr package dedicated for generic client communication with OPC-UA.
The documentation is in progress.
One may be interested to higher level package such as
- [pydevmgr_elt](https://github.com/efisoft-elt/pydevmgr_elt)
Python package to by used as substitute of a real device manager running in a ELT-Software environment when the full ELT-Software environment cannot be used.
Sources are [here](https://github.com/efisoft-elt/pydevmgr_ua)
# Install
```bash
> pip install pydevmgr_ua
```
# Basic Usage
```python
from pydevmgr_ua import UaRpc, UaNode, UaCom
from pydevmgr_core.nodes import InsideInterval
import time
com = UaCom(address="opc.tcp://192.168.1.11:4840", prefix="MAIN")
target = 7.0
move = UaRpc( com=com, suffix="Motor1.RPC_MoveAbs", arg_parsers=[float, float])
pos = UaNode( com=com, suffix="Motor1.stat.lrPosActual" )
test = InsideInterval( node = pos, min=target-0.1, max=target+0.1 )
try:
com.connect()
move.call( 7.0, 1 )
while not test.get():
time.sleep(0.1)
print( "posisiotn is", pos.get() )
finally:
com.disconnect()
```
Raw data
{
"_id": null,
"home_page": "",
"name": "pydevmgr-ua",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Sylvain Guieu",
"author_email": "sylvain.guieu@univ-grenoble-alpes.fr",
"download_url": "https://files.pythonhosted.org/packages/0e/ad/d63a03cbd8753f273b2b10dca40a4504e08a89684378268385d301504f52/pydevmgr_ua-0.5.1.tar.gz",
"platform": null,
"description": "pydevmgr package dedicated for generic client communication with OPC-UA. \n\nThe documentation is in progress. \n\nOne may be interested to higher level package such as \n- [pydevmgr_elt](https://github.com/efisoft-elt/pydevmgr_elt)\n\n\nPython package to by used as substitute of a real device manager running in a ELT-Software environment when the full ELT-Software environment cannot be used. \n\n\n\nSources are [here](https://github.com/efisoft-elt/pydevmgr_ua)\n\n\n# Install\n\n```bash\n> pip install pydevmgr_ua\n```\n\n# Basic Usage\n\n\n\n```python\nfrom pydevmgr_ua import UaRpc, UaNode, UaCom\nfrom pydevmgr_core.nodes import InsideInterval\nimport time \n\ncom = UaCom(address=\"opc.tcp://192.168.1.11:4840\", prefix=\"MAIN\")\n\ntarget = 7.0\n\nmove = UaRpc( com=com, suffix=\"Motor1.RPC_MoveAbs\", arg_parsers=[float, float])\npos = UaNode( com=com, suffix=\"Motor1.stat.lrPosActual\" )\ntest = InsideInterval( node = pos, min=target-0.1, max=target+0.1 )\n\n\ntry:\n com.connect()\n move.call( 7.0, 1 )\n while not test.get():\n time.sleep(0.1)\n\n print( \"posisiotn is\", pos.get() )\nfinally:\n com.disconnect()\n\n```",
"bugtrack_url": null,
"license": "CeCILL Free Software License Agreement v2.1",
"summary": "",
"version": "0.5.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0eadd63a03cbd8753f273b2b10dca40a4504e08a89684378268385d301504f52",
"md5": "b0ee055b678ac3f0ec9836f0a3b224eb",
"sha256": "cdf57993ed55482fbdfb29debd494a6a8bf2bbfa834b4076bd7da676dd0aba40"
},
"downloads": -1,
"filename": "pydevmgr_ua-0.5.1.tar.gz",
"has_sig": false,
"md5_digest": "b0ee055b678ac3f0ec9836f0a3b224eb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10740,
"upload_time": "2022-09-28T13:34:06",
"upload_time_iso_8601": "2022-09-28T13:34:06.546145Z",
"url": "https://files.pythonhosted.org/packages/0e/ad/d63a03cbd8753f273b2b10dca40a4504e08a89684378268385d301504f52/pydevmgr_ua-0.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-09-28 13:34:06",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "pydevmgr-ua"
}