-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[help wanted]help for cloud variables #319
Labels
support
Help with using scratchattach is requested
Comments
CooperWaNg-py
changed the title
help for cloud varibles
[help wanted]help for cloud variables
Jan 1, 2025
import scratchattach as sa
session = sa.login("username", "password") #Returns a sa.Session object
cloud = session.connect_cloud("project_id") # connects any cloud (by
default Scratch one's). Returns a sa.ScratchCloud object by default
cloud = session.connect_scratch_cloud("project_id") # connects Scratch's
cloud. Returns a sa.ScratchCloud object by default
cloud = session.connect_tw_cloud("project_id", purpose="(optional) your use
case", contact="(optional) your Scratch account or other contact info")
# connects TurboWarp's cloud. Returns a sa.TwCloud object by default.
# Optional arguments: purpose and contact. Providing these arguments allows
TurboWarp to understand what you're using their cloud server for.
# Optional argument: cloud_host (for connecting to custom websockets). To
connect to forkphorus's cloud server, use cloud_host="wss://
stratus.turbowarp.org"
cloud.set_var("variable", "value") # the variable name is specified without
the cloud emoji
…On Tue, Dec 31, 2024 at 7:16 PM Cooper Wang ***@***.***> wrote:
im new to this scratchattach lib and i don't really know how to do things.
I looked through the wiki, but it wasn't informative enough. when i
submitted an issue, faretek responded to me to use the turbowarp cloud
variables, but i didn't know how to or how to use the scratch's cloud
variables with scratchattach.
can anybody give me a simple answer to my question: how do I use
scratchattach with python to change and view cloud variables?
—
Reply to this email directly, view it on GitHub
<#319>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2IJDIP7XD2HFI4UNXPTQPD2IM6X7AVCNFSM6AAAAABUODEQKWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DINZWGQ4DKMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Do you know python?
Cooper Wang ***@***.***> schrieb am Mi., 1. Jan. 2025, 02:16:
… im new to this scratchattach lib and i don't really know how to do things.
I looked through the wiki, but it wasn't informative enough. when i
submitted an issue, faretek responded to me to use the turbowarp cloud
variables, but i didn't know how to or how to use the scratch's cloud
variables with scratchattach.
can anybody give me a simple answer to my question: how do I use
scratchattach with python to change and view cloud variables?
—
Reply to this email directly, view it on GitHub
<#319>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATCKMZTOA2KPJA62AOMNMT32IM6X5AVCNFSM6AAAAABUODEQKWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DINZWGQ4DKMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I know basic python syntax and that is pretty much it |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
im new to this scratchattach lib and i don't really know how to do things. I looked through the wiki, but it wasn't informative enough. when i submitted an issue, faretek responded to me to use the turbowarp cloud variables, but i didn't know how to or how to use the scratch's cloud variables with scratchattach.
can anybody give me a simple answer to my question: how do I use scratchattach with python to change and view cloud variables?
The text was updated successfully, but these errors were encountered: