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.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_openshowvar-1.1.7.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for py_openshowvar-1.1.7.tar.gz
Algorithm Hash digest
SHA256 f8abfb4bb8a63155b14d727b3c5940948c155d65f47adae17701a04747cbcbcf
MD5 9bc119e97938f5d28d37cf034018ee92
BLAKE2b-256 2891562eb8f4d8bd9ebab49e4a47dd550130a4b55a33c56bb05c2c16b3b89ba8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_openshowvar-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for py_openshowvar-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ffd6380ba3351f256e115239cf00861356f5437fddc58458eacfa0226cf54caa
MD5 73bc543bab3721be3b361f87cbbd4bbe
BLAKE2b-256 ffcbd01624a00a6e6d989d62e26d397d73f2179f4f39a4f75306b1a75c7228f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page