Skip to main content

A Python port of KUKA VarProxy client (OpenShowVar).

Project description

py_openshowvar

A Python port of KUKA VarProxy client (OpenShowVar).

Python version

Supports 2.6+ / 3.3+, tested at 2.7.11 and 3.6.3.

Install

On PYPI: https://pypi.python.org/pypi/py-openshowvar

pip install py_openshowvar

Usage

Module usage:

>>> from py_openshowvar import openshowvar
>>> client = openshowvar('192.168.19.132', 7001)
>>> client.can_connect
True
>>> ov = client.read('$OV_PRO', debug=True)
[DEBUG] (48, 6, 0, 3, '100', '\x00\x01\x01')
100
>>> print ov
100
>>> client.close()

Built-in shell usage:

$ python ./py_openshowvar.py
IP Address: 192.168.19.132
Port: 7001

Connected KRC Name:  "xxxxxxxxxx"

Input var_name [, var_value]
(`q` for quit): $OV_PRO
[DEBUG] (66, 5, 0, 2, '50', '\x00\x01\x01')
50

Input var_name [, var_value]
(`q` for quit): $OV_PRO, 100
[DEBUG] (67, 6, 1, 3, '100', '\x00\x01\x01')
100

Input var_name [, var_value]
(`q` for quit): q
Bye

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

py_openshowvar-1.1.6.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

py_openshowvar-1.1.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file py_openshowvar-1.1.6.tar.gz.

File metadata

  • Download URL: py_openshowvar-1.1.6.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.2

File hashes

Hashes for py_openshowvar-1.1.6.tar.gz
Algorithm Hash digest
SHA256 85db4d32edfeeec61c5d93a5048d30ac72a6ecefecf0e5f8b692fdf6cba7ad69
MD5 132a2a4d8851b9c84416c53f50711d51
BLAKE2b-256 39acf4d04efece90d72f7fe71aa5ec7faf2f145064fddb6104e544300800b3a7

See more details on using hashes here.

File details

Details for the file py_openshowvar-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: py_openshowvar-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.2

File hashes

Hashes for py_openshowvar-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7b830b60e74996424418e49b7105d81dce878a076f64d0af340bfb31108ee45d
MD5 25d5017d7d1d4a4453f64bbca7ed030c
BLAKE2b-256 d074673b12fff8acdf3376e47695c46321a0d963443d5d6abac6fbb2deded6c4

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