Discuss Scratch

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)

Dacggug wrote:

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.
theres an more ind depth explanation on his github / the pip page
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

brandontwinzone wrote:

Thanks for the package! I'll use it for my future python projects
Also, is it available on PyCharm? I don't have pip.
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
Esben_Flavogle
Scratcher
76 posts

scratchattach - A Scratch API wrapper (Python)

brandontwinzone wrote:

Thanks for the package! I'll use it for my future python projects
Also, is it available on PyCharm? I don't have pip.
just install pip, it should be compatible with python 3.0

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)

youhan_school
Scratcher
41 posts

scratchattach - A Scratch API wrapper (Python)

youhan_school wrote:

Cool thing ya!
It will be very helpful to everyone who want to learn how to integrate your project to scratch! . Recommended for beginners too!
ScratchTheCoder12345
Scratcher
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

Hello, I'm Brandon a Python developer who loves math and coding.
he/him
Feel free to message me with any questions
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

Developer of scratchattach, the most popular Python Scratch API wrapper
Dacggug
Scratcher
4 posts

scratchattach - A Scratch API wrapper (Python)

Thank you!
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.
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

TSSA-13 wrote:

• 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.
1.) Never use google translate, especially not in combination with the german language
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)

TSSA-13 wrote:

• 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()

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)

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)





























Powered by DjangoBB