Python API

Take control of your Moku hardware with Python. The Python API is compatible with Python scripting and live environments, making it easy to start interacting with your Moku device right away.

Get Started
Moku integration for Python API

Integrate with Python

There is no limit to what you can do with Python integration for Moku hardware, from real-time interfacing to automated control. Take advantage of the wide array of open-source libraries to further expand your applications.

software_python_interact-in-real-time_animation

Interact in real-time

Write and share scripts for repeatable automation or command your Moku hardware live, record and analyze your data all in a single place by partnering our Python API with Jupyter.

software_python_automated-control

Automated control

The Python API takes Moku hardware to the next level, turning it into an automated test, measurement, and control device for your lab. Python integration enables your Moku to automatically:

  • Switch instruments
  • Acquire and process measurements in real-time
  • Save data logs/metadata for post-processing
  • Generate output signals to control your system
python
>> data = oscilloscope.get_data()
>>
>>

Open-source integration

Add depth to your Moku applications by integrating with the many open-source Python libraries available on the web.

Create beautiful visualisations with seaborn, or track progress of your experiment remotely by streaming to the web using plotly. Got data? Pandas provides an endless list of high-performance data structures and easy-to-use analysis tools to get the job done.

software_python_cross-platform

Cross-platform

Moku’s Python API can be dropped in to any existing lab infrastructure. It’s fully supported on Windows, Linux, OSX, and in many cases can be installed without special privileges.

Share your programs with all your colleagues and computers, regardless of operating system; they’ll run anywhere.

Supported hardware platforms

Python integration is available across all Moku hardware platforms.

4000-supportedhardware-mokugo

Moku:Go

hardware-mokulab

Moku:Lab

hardware-mokupro

Moku:Pro

Before you start

Moku hardware supports the following versions of Python:

  • Version 2.7 (Moku:Lab only)
  • Version 3.5+ (Moku:Go and Moku:Pro only)
Get Python*

*Make sure your version of python is one of those listed above

Getting started

For Moku:Pro & Moku:Go

The API for Python is provided by moku-python, available for download at the Python Package Index or pip install moku

Download for Moku:Pro & Moku:Go Documentation Getting Started

 

For Moku:Lab

The Moku:Lab API for Python is provided by pymoku, available for download at the Python Package Index or pip install pymoku

Download for Moku:Lab Documentation Download quick-start guide