ScratchData LogoScratchData
Back to ---ScratchTutor---'s profile

AttachTerm

-----ScratchTutor---•Created June 8, 2025
AttachTerm
1
1
1 views
View on Scratch

Instructions

Python backend for AttachTerm This Python 3.13 script works with the AttachTerm Scratch project via ScratchAttach. Run it on your computer/server to handle requests from the Scratch terminal. Make sure you have ScratchAttach installed and configured properly. Requirements: • Python 3.13 • scratchattach library Code: import scratchattach as sa import warnings warnings.filterwarnings('ignore', category=sa.LoginDataWarning) # Logowanie do Scratcha session = sa.login_by_id("your session id") session.connect_cloud(project_id) cloud = session.connect_cloud(project_id) client = cloud.requests() project = session.connect_project(project_id) @client.request def ping(): return "pong" @client.request def echo(argument1): return argument1 client.start(thread=True)

Description

@TimMcCool for cloud requests - ScratchAttach @-Rex- for PTE Ultra+

Project Details

Project ID1186170854
CreatedJune 8, 2025
Last ModifiedJuly 7, 2025
SharedJune 8, 2025
Visibilityvisible
CommentsAllowed