Skip to main content

A scratch API wrapper for Python.

Project description


A scratch API wrapper for python.


Go to your terminal (not your python shell) and execute this command:

pip install scratchclient

If this didn't work for whatever reason, open your python shell and run the following:

import os; os.system("pip install scratchclient")

Example Usage

Basic Usage

from scratchclient import ScratchSession

session = ScratchSession("ceebee", "--uwu--")

# post comments

# lots of other stuff

Cloud Connection

from scratchclient import ScratchSession

session = ScratchSession("griffpatch", "SecurePassword7")

connection = session.create_cloud_connection(450216269)

connection.set_cloud_variable("variable name", 5000)

def on_set(variable):
    print(, variable.value)

print(connection.get_cloud_variable("other variable"))

Documentation is available at

All bugs should be reported to the github repository. If you need help or guideance, check out the forum topic.

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

scratchclient-1.0.1.tar.gz (25.7 kB view hashes)

Uploaded source

Supported by

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