ScratchData LogoScratchData
Back to TheCloudDev's profile

scratchDatabase - new s2py class

THTheCloudDev•Created September 24, 2021
scratchDatabase - new s2py class
28
21
627 views
View on Scratch

Instructions

A new class for scratch2py Set var (var) to (val) # Set's a var on the server to a value. Decoded info from server is in the "Return" variable. (Without cloud symbol) Delete var (obj) # Delete's a var on the server. Decoded info from server is in the "Return" variable. (Without cloud symbol) Get var(obj) # Return's the value of the var. (Data is stored in "Object" var.)

Description

All by me Use this script for python side for scratchDatabase: from scratch2py import Scratch2Py s2py = Scratch2Py('Username', 'Password') db = s2py.scratchDatabase('project_id') db.startLoop() # And you're all set! Use this for turbowarpDatabase: from scratch2py import Scratch2Py s2py = Scratch2Py('Username', 'Password') db = s2py.turbowarpDatabase('project_id') db.startLoop() # And you're all set!

Project Details

Project ID574609423
CreatedSeptember 24, 2021
Last ModifiedDecember 12, 2021
SharedSeptember 28, 2021
Visibilityvisible
CommentsAllowed