How do i send and recive data from python

I am making a script that gets something from my game and sends it to my python script is there any way i can do that?
i saw someone did this but i dont know how?
thanks

Web server.

Use glitch.com and set up an API. Python might not be the best for backend though.

thank you i will test it right now

i don’t figure out how to use it is there any tutorials?

Python is not officially supported by Glitch and I would highly recommend you use Node.js for backend, but if it’s your only option there’s a really good example of how to use Python with Glitch in this project.

Unfortunately there are not a lot of tutorials for doing this sort of thing on Python with Glitch. If you end up using Node.js, there’s an NPM package that makes the creation of APIs super easy called Express, with loads of tutorials on YouTube with details about how to set up an API with it.

there is not any easy way like a python package or a public api ?
edit: something like client side not calling a api so it will make it long to get data

This might help. I’m not 100% sure but I don’t believe you’d be able to make this work with Glitch as it’s intended to be used with Express.

how do i make my own api? is there somewhere for free to make api

Try repl.it and Flask. It should probably work.

Plus a tut: https://blog.bearer.sh/consume-webhooks-with-python/

1 Like

i dont really understand but i have a friend that he did that maybe he should say how he did that.

i want to send and receive color from my python and game