Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- Dacggug
-
4 posts
scratchattach - A Scratch API wrapper (Python)
say [Oh, it did work!] for (2) secs
- god286
-
1000+ posts
scratchattach - A Scratch API wrapper (Python)
Cool! And it looks like a lot of new people are coming to this forum. Maybe it will make the ATs more active 

- -FreeEngines-
-
100+ posts
scratchattach - A Scratch API wrapper (Python)
theres an more ind depth explanation on his github / the pip page Thank you so much! I know there is a way to use external code to make it so you can have more cloud variables, or something equivalent to that. Could you make a guid for how to code that? I'm planning to make a real time strategy game with multiple players.
- -FreeEngines-
-
100+ posts
scratchattach - A Scratch API wrapper (Python)
PyCharm is just an IDE for python, and im pretty sure it has pip built in, if not, you should defenetly install it, as its a must have for python developers Thanks for the package! I'll use it for my future python projects
Also, is it available on PyCharm? I don't have pip.
- Esben_Flavogle
-
76 posts
scratchattach - A Scratch API wrapper (Python)
just install pip, it should be compatible with python 3.0 Thanks for the package! I'll use it for my future python projects
Also, is it available on PyCharm? I don't have pip.
- -wolfs
-
6 posts
scratchattach - A Scratch API wrapper (Python)
I think this will be Helpful for other programmers 











































- youhan_school
-
41 posts
scratchattach - A Scratch API wrapper (Python)
It will be very helpful to everyone who want to learn how to integrate your project to scratch! Cool thing ya!

- ScratchTheCoder12345
-
500+ posts
scratchattach - A Scratch API wrapper (Python)
Hold on let me check if it's on PyCharm, I have it. Yep! It's called scratch3.py in Python Packages
- altrip
-
8 posts
scratchattach - A Scratch API wrapper (Python)
I downloaded python but I don't know which version to use or which app to open since it also installed a bunch of other apps
- Scratch_Record_Egg
-
4 posts
scratchattach - A Scratch API wrapper (Python)
Does anyone have any recommendations of where and how to host the python program. What does @TimMcCool use? Are there free options other than on my own computer?
- -FreeEngines-
-
100+ posts
scratchattach - A Scratch API wrapper (Python)
tim uses replit.com in combination with uptimerobot and a keep alive script which makes his programm into a python flask server
- TSSA-13
-
3 posts
scratchattach - A Scratch API wrapper (Python)
• I see. @TimMcCool, you used a bit of coding on Python and converted it into scratch code to make that user stats project.
• Ich verstehe. @TimMcCool, Sie haben ein bisschen Programmieren in Python verwendet und es in Scratch-Code konvertiert, um dieses Benutzerstatistikprojekt zu erstellen.
• Ich verstehe. @TimMcCool, Sie haben ein bisschen Programmieren in Python verwendet und es in Scratch-Code konvertiert, um dieses Benutzerstatistikprojekt zu erstellen.
- -FreeEngines-
-
100+ posts
scratchattach - A Scratch API wrapper (Python)
1.) Never use google translate, especially not in combination with the german language • I see. @TimMcCool, you used a bit of coding on Python and converted it into scratch code to make that user stats project.
• Ich verstehe. @TimMcCool, Sie haben ein bisschen Programmieren in Python verwendet und es in Scratch-Code konvertiert, um dieses Benutzerstatistikprojekt zu erstellen.
2.) Not really. he's not converting code in any way, python and scratch are seperated. his package is just an api wrapper, and his stats projects works by communicating between python and scratch using cloud vars, nothing more
- The-_Trio
-
12 posts
scratchattach - A Scratch API wrapper (Python)
• I see. @TimMcCool, you used a bit of coding on Python and converted it into scratch code to make that user stats project.
• Ich verstehe. @TimMcCool, Sie haben ein bisschen Programmieren in Python verwendet und es in Scratch-Code konvertiert, um dieses Benutzerstatistikprojekt zu erstellen.
He also could've just learned the language, INCLUDING, from Germany, so many people learn English from Germany.
- ScratchcatandGobo
-
1000+ posts
scratchattach - A Scratch API wrapper (Python)
Traceback (most recent call last):
File “C
Users/censord/OneDrive/Desktop/Griffpatch.py”, line 6, in <module>
conn.set_var(“Followers”, 1)
File “C:\Users\lcensord\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\scratchattach\_cloud.py”, line 50, in set_var
if len(value) > 256:
TypeError: object of type ‘int’ has no len()
File “C

conn.set_var(“Followers”, 1)
File “C:\Users\lcensord\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\scratchattach\_cloud.py”, line 50, in set_var
if len(value) > 256:
TypeError: object of type ‘int’ has no len()
- ScratchcatandGobo
-
1000+ posts
scratchattach - A Scratch API wrapper (Python)
How are you even supposed to set a cloud variable to a python variable? This is really bugging me…
conn = session.connect_cloud(project_id=“688967859”)
user = session.connect_user(“griffpatch”)
session.get_linked_user()
variable = user.follower_count()
conn.set_var(“Username”, variable)
conn = session.connect_cloud(project_id=“688967859”)
user = session.connect_user(“griffpatch”)
session.get_linked_user()
variable = user.follower_count()
conn.set_var(“Username”, variable)
Last edited by ScratchcatandGobo (May 11, 2022 20:55:02)
- proprogrammer44
-
59 posts
scratchattach - A Scratch API wrapper (Python)
cast it to a string Traceback (most recent call last):
File “CUsers/censord/OneDrive/Desktop/Griffpatch.py”, line 6, in <module>
conn.set_var(“Followers”, 1)
File “C:\Users\lcensord\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\scratchattach\_cloud.py”, line 50, in set_var
if len(value) > 256:
TypeError: object of type ‘int’ has no len()
- Discussion Forums
- » Advanced Topics
-
» scratchattach - A Scratch API wrapper (Python)