Skip to main content

An event-based asynchronous wrapper for cloud variables.

Project description


An asynchronous Pythonic wrapper for cloud websockets.

PyPi Package Version PyPi Package Python Versions PyPi Downloads / Month Discord server invite


  • Efficient asynchronous connection with Scratch.
  • Event-based handling of cloud variables.
  • Built-in reconnecting.
  • Encoding and decoding support.


  • Fetching data from the Scratch API.
  • Easily customizable codecs for encoding and decoding variables.
  • Sending and parsing large cloud payloads.
  • Validating the cloud by finding who changed a cloud variable.


from scratchcloud import CloudClient, CloudChange

client = CloudClient('yuwe', '588579111')

async def on_connect():

async def on_disconnect():

async def on_message(cloud: CloudChange):
    print(f"{} was set to {cloud.value}!")
    await client.set_cloud(, "123")"SuperSecretPassword22")


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scratchcloud-1.2.3.tar.gz (16.7 kB view hashes)

Uploaded source

Built Distribution

scratchcloud-1.2.3-py3-none-any.whl (17.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page