Package for sending (hardware) experiment requests across the network and receiving the results
Project description
Waverunner is a symmetrical client/server tool for securely
advertising and executing arbitrary remote python modules
server-side code:
create a script (let's call it batch-script.py
) that looks like this:
import numpy
import fancyInstrumentControl
def get_measurement(stimulus):
return fancyInstrumentControl.pass(stimulus)
then run waverunner:
$ python -m waverunner \
--srv-path /path/to/batch-script.py \
--notify 123.345.543.2
found batch-script.get_measurement
serving at 142.555.432.1
waverunner will now serve 'batch-script.get_measurement()' and advertise to any waverunner that might be running at 123.345.543.2
-side code:
from waverunner import Server
waver = Server()
request = (
'batch-script.get_measurement',
np.array([
[np.random.randn(100) for i in range(100)]
]),
)
result = waver.external_request('http://142.555.432.1', *request)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for waverunner-0.1b3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86cb824b94bb4c126ff8f724944615f3056c81101c23b6e785fe1c96147626c8 |
|
MD5 | 7dea6e79889f0deaf88d8129cf0a5843 |
|
BLAKE2b-256 | 0bb0ebcb9082fbe5c0936a76235a16ca4974db232ce967ec278a62aeb976e547 |