Chopsticks - a Pythonic orchestration library

Chopsticks is an orchestration and remote execution library. It lets you run Python code elsewhere: on remote hosts over SSH, in a Docker sandbox, on the local host (optionally with sudo) - even all of these in parallel. It currently runs on Linux and Mac machines.

Nothing needs to be installed on remote hosts except Python and an SSH agent.

Chopsticks was built for extensibility. Remote hosts may import Python code from the orchestration host on demand, so remote agents can immediately use new functions you define. In effect, you have access to the same codebase on remote hosts as on the orchestration host.

As a taster, let’s just get the unix time on a remote server called, then disconnect:

import time
from chopsticks.tunnel import SSHTunnel

with SSHTunnel('') as tun:

Indices and tables