Skip to main content

Package for sending (hardware) experiment requests across the network and receiving the results

Project description

Waverunner is a symmetrical client/server RPC tool

securely advertises and executes 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
from waverunner import SecureMethod

@SecureMethod
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
     --password mybestfriendsgirlfriendisamediocresong

found batch-script.get_measurement
serving at 142.555.432.1
sending notifications to 123.345.543.2

waverunner will now serve 'batch-script.get_measurement()' and advertise to any waverunner that might be running at 123.345.543.2

client-side code:

from waverunner import Server

server = Server(
            password='mybestfriendsgirlfriendisamediocresong',
            user_ips='142.555.432.1')

request = (
    'batch-script.get_measurement',
    np.stack([np.random.randn(100) for i in range(100)]),
)

result = server.external_request('http://142.555.432.1', *request)
print(result)

Project details


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

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

waverunner-0.2b6-py2.py3-none-any.whl (17.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file waverunner-0.2b6-py2.py3-none-any.whl.

File metadata

  • Download URL: waverunner-0.2b6-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for waverunner-0.2b6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 412f069258700ea38ddaf3902b97261dfead6fc06d4cb4dd5547f718a51c5da8
MD5 7b71775a39f292fad003bea2903c56ce
BLAKE2b-256 98d40bb085a39e1be6e990f5cfe67233ce1ceacb739e97dae6e0fd229f7b8756

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