You can install it using
pip install scratchclient
Thanks to this npm package for the reference code and ilcheese2 for their modified version of my cloud code.
You can report issues on the (email removed by moderator - please don't share contact information) this topic, or my scratch profile.
Usage:
Basic usage:
from scratchclient import ScratchSession session = ScratchSession("ceebee", "--uwu--") # post comments session.get_user("Paddle2See").post_comment("OwO") # lots of other stuff print(session.get_project(450216269).get_comments()[0].content) print(session.get_studio(29251822).description)
from scratchclient import ScratchSession session = ScratchSession("griffpatch", "SecurePassword7") connection = session.create_cloud_connection(450216269) connection.set_cloud_variable("variable name", 5000) @connection.on("set") def on_set(variable): print(variable.name, variable.value) print(connection.get_cloud_variable("other variable"))
I havent made documentation yet because I'm lazy
