# PyVISA-proxy
[](https://pyvisa-proxy.readthedocs.io/) [](https://github.com/casabre/pyvisa-proxy/actions/) [](https://pypi.python.org/pypi/pyvisa-proxy)  [](https://pypi.python.org/pypi/pyvisa-proxy) [](LICENSE)
This plugin should extend PyVISA's funtionality mainly in order to address local hardware which is attached to a remote node, e.g. USB or GPIB. In the end, you can decouple your VISA instrument hosting where you need bare metal nodes and the test script runner.
## Getting started
### Installation
Using pip:
```shell
pip install pyvisa-proxy
```
### Server
In order to make devices remotely available, just run the PyVISA-remote server on your node. The server will open new VISA resources per request. Just run
```shell
python -m pyivsa_proxy --port 5000
```
in order to host your "local" connections. Use any available port for network sharing.
### Client
Use a client like a normal PyVISA class. The calls will be forwarded by reflection to the server. In order to get started, use the following snippet in your code.
```python
import pyvisa
rm = pyvisa.ResourceManager("YourProxyServerIp:YourProxyServerPort@proxy")
instr = rm.open_resource(resource="GPIB0::1::INSTR")
print(instr.query("*IDN?"))
```
## Contributing
I welcome any contributions, enhancements, and bug-fixes. [Open an issue](https://github.com/casabre/pyvisa-remote/issues) on GitHub and [submit a pull request](https://github.com/casabre/pyvisa-remote/pulls).
## License
pyvisa-remote is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.
This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/casabre/pyvisa-remote) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
Raw data
{
"_id": null,
"home_page": "https://github.com/casabre/pyvisa-proxy",
"name": "PyVISA-proxy",
"maintainer": "Carsten Sauerbrey",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "carsten.sauerbrey@gmail.com",
"keywords": "Remote, VISA, GPIB, USB, serial, RS232, measurement, acquisition, zmq",
"author": "Carsten Sauerbrey",
"author_email": "carsten.sauerbrey@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8e/3b/936847e2cb1a184284f85a7b41391e07feadb26ddc951e2264534b1fea8f/pyvisa_proxy-0.1.3.tar.gz",
"platform": "Linux; Windows; Mac",
"description": "# PyVISA-proxy\n\n[](https://pyvisa-proxy.readthedocs.io/) [](https://github.com/casabre/pyvisa-proxy/actions/) [](https://pypi.python.org/pypi/pyvisa-proxy)  [](https://pypi.python.org/pypi/pyvisa-proxy) [](LICENSE)\n\nThis plugin should extend PyVISA's funtionality mainly in order to address local hardware which is attached to a remote node, e.g. USB or GPIB. In the end, you can decouple your VISA instrument hosting where you need bare metal nodes and the test script runner.\n\n## Getting started\n\n### Installation\n\nUsing pip:\n\n```shell\npip install pyvisa-proxy\n```\n\n### Server\n\nIn order to make devices remotely available, just run the PyVISA-remote server on your node. The server will open new VISA resources per request. Just run\n\n```shell\npython -m pyivsa_proxy --port 5000\n```\n\nin order to host your \"local\" connections. Use any available port for network sharing.\n\n### Client\n\nUse a client like a normal PyVISA class. The calls will be forwarded by reflection to the server. In order to get started, use the following snippet in your code.\n\n```python\nimport pyvisa\n\nrm = pyvisa.ResourceManager(\"YourProxyServerIp:YourProxyServerPort@proxy\")\ninstr = rm.open_resource(resource=\"GPIB0::1::INSTR\")\nprint(instr.query(\"*IDN?\"))\n```\n\n## Contributing\n\nI welcome any contributions, enhancements, and bug-fixes. [Open an issue](https://github.com/casabre/pyvisa-remote/issues) on GitHub and [submit a pull request](https://github.com/casabre/pyvisa-remote/pulls).\n\n## License\n\npyvisa-remote is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.\n\nThis package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/casabre/pyvisa-remote) to thank us for our work. By contributing to the Treeware forest you\u2019ll be creating employment for local families and restoring wildlife habitats.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "PyVISA remote proxy server and client in order to address \"remote\" hardware as local",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/casabre/pyvisa-proxy"
},
"split_keywords": [
"remote",
" visa",
" gpib",
" usb",
" serial",
" rs232",
" measurement",
" acquisition",
" zmq"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "57daf667d28ec6e3b6663d4274525a08ed0949ed55761d36ec25c7bd75b506c1",
"md5": "8c835626cd6fb449938bd1757e8931f8",
"sha256": "f579f824ec5d8bbc62c2b4f3fbd353e35e4d8c2ccc409656eaa02b65eedff1ff"
},
"downloads": -1,
"filename": "PyVISA_proxy-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8c835626cd6fb449938bd1757e8931f8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 15874,
"upload_time": "2024-07-26T06:38:30",
"upload_time_iso_8601": "2024-07-26T06:38:30.491561Z",
"url": "https://files.pythonhosted.org/packages/57/da/f667d28ec6e3b6663d4274525a08ed0949ed55761d36ec25c7bd75b506c1/PyVISA_proxy-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e3b936847e2cb1a184284f85a7b41391e07feadb26ddc951e2264534b1fea8f",
"md5": "60c0744a7bd40e5981fee9d536b4ae2a",
"sha256": "d6fc8488a9fc522c5bc39b5bce8d9055a52078c4a0737883aca8c48ffcc9c1ad"
},
"downloads": -1,
"filename": "pyvisa_proxy-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "60c0744a7bd40e5981fee9d536b4ae2a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 40860,
"upload_time": "2024-07-26T06:38:31",
"upload_time_iso_8601": "2024-07-26T06:38:31.704127Z",
"url": "https://files.pythonhosted.org/packages/8e/3b/936847e2cb1a184284f85a7b41391e07feadb26ddc951e2264534b1fea8f/pyvisa_proxy-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-26 06:38:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "casabre",
"github_project": "pyvisa-proxy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "pyvisa-proxy"
}