Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- Dacggug
- Scratcher
4 posts
scratchattach - A Scratch API wrapper (Python)
Oh. You did! Thank you very much!
when I receive [I need to look more carefully v]
say [Oh, thanks!] for (2) secs
say [This is my first time using these things, so it may not work] for (2) secs
- Dacggug
- Scratcher
4 posts
scratchattach - A Scratch API wrapper (Python)
say [Oh, it did work!] for (2) secs
- god286
- Scratcher
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
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- -FreeEngines-
- Scratcher
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-
- Scratcher
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
- Scratcher
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.
if <This> then
Eat Ice Cream
else
Also eat ice cream
end
- -wolfs
- Scratcher
6 posts
scratchattach - A Scratch API wrapper (Python)
I think this will be Helpful for other programmers
Wolf god
- youhan_school
- Scratcher
41 posts
scratchattach - A Scratch API wrapper (Python)
Cool thing ya!
Main profile: https://scratch.mit.edu/users/youhan_school/
主要页面:https://scratch.mit.edu/users/youhan_school/
Profile utama: https://scratch.mit.edu/users/youhan_school/
- youhan_school
- Scratcher
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! . Recommended for beginners too! Cool thing ya!
Main profile: https://scratch.mit.edu/users/youhan_school/
主要页面:https://scratch.mit.edu/users/youhan_school/
Profile utama: https://scratch.mit.edu/users/youhan_school/
- altrip
- Scratcher
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
- Scratcher
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-
- Scratcher
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
- TimMcCool
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
I renamed the package to “scratchattach”
I also added a built in Encoder
I also added a built in Encoder
Developer of scratchattach, the most popular Python Scratch API wrapper
- TSSA-13
- Scratcher
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-
- Scratcher
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
- Scratcher
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
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
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()
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()
Check out Leo's adventure
I felt like I wanted to develop games on here, so I won't leave! (for now)
(last edited 2/8/24)
- ScratchcatandGobo
- Scratcher
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)
Check out Leo's adventure
I felt like I wanted to develop games on here, so I won't leave! (for now)
(last edited 2/8/24)
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)