The package is available on PyPi and on GitHub
You can install it using
pip install scratchattach
The features include
- Getting / setting cloud variables and cloud events
- Built-in cloud requests that make it easy to interact with your Scratch project
- Users, projects and studios
- Getting search / explore page
- Forum Posts / Topics
- Searching comments and forum posts
… and much more! (All features) (Official studio for scratchattach projects)
How to use
Setting a cloud var:
import scratchattach as scratch3
session = scratch3.login("username", "password")
conn = session.connect_cloud(project_id="project_id")
conn.set_var("variable", value)
Cloud requests:
(Find out how to use cloud requests)
Cloud event handler:
import scratchattach as scratch3
events = scratch3.CloudEvents("project_id")
@events.event
def on_set(event): #Called when a cloud var is set
print(f"{event.user} set the variable {event.var} to the valuee {event.value} at {event.timestamp}")
events.start()
More instructions on usage: https://github.com/TimMcCool/scratchattach
Support and Bug Report
If you have a question, ask here or on the github repo.
Reasons to use scratchattach
➥ Simple to use
➥ Fast and safe
➥ Cloud events & built-in class for encoded cloud requests
➥ Users, projects, comments, search, explore & more!
➥ Forum posts and topics
➥ Most features don't require a session
➥ Open-source

Note: This topic is for talking about scratchattach and reporting bugs / glitches, not for advertising projects or other libraries.