Skip to content
A Python interface to Scratch
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A Python connection class for Scratch

Getting Started

  1. Start up Scratch

  2. Enable remote sensor connections, or "Host Mesh" in BYOB

  3. Create a variable foo

>>> import scratch
>>> s = scratch.Scratch(host='localhost')
>>> s.broadcast("Hello, Scratch!")
>>> s.receive()
{'broadcast': [], 'sensor-update': {'foo': '0'}}
Something went wrong with that request. Please try again.