Forum Archive

Pythonista AirCode

JadedTuna

Hey guys! ShadowSlayer here. I've noticed that these is no AirCode function in Pythonista... So I made a simple app :). It has:

GUI Client (Computer)

Simple server (iOS)

GUI Client uses wxPython toolkit.

Basically, it allows you to edit files on your computer and then save them to Pythonista.

If you find any bugs, please report them to my email!

Website

Dann239

Error 404

JadedTuna

@Dann, sorry for this one, I was working on my website, and probably modified the file. It is fixed now

siddbudd

i am interested in this, but its offline again... why not use github?

JadedTuna

@siddbudd, well fixed it again. Now I have link pointing straight to the website.
And yeah, I will probably create github for this project

siddbudd

thx SS :)
I don't yet know how to use it though, but I will try to figure out... the client on Windows runs just fine after installing wxPy, but the server on my iPad seems to have some problem. First of all, its unstoppable, after launching it, I cannot quit it, nothing happens when tapping on the x button, I have to force quit Pythonista. Also cannot get connection to it from the client.

JadedTuna

@siddbudd, Well, I am working on the code. I plan adding select so you can stop the script any time. And to connect to the server, you have to get it's local IP address (like 192.168.0.xxx), and then in the Connect window enter IP:port (default port is 28899).

Good luck with it XD.

P. S. Here is example how to find local IP address
You have to start server.py on the computer, and then client.py on the iDevice.

server.py

import socket
s = socket.socket()
s.bind(("0.0.0.0", 8080))
c, a = s.accept()
print(a)
c.close()
s.close()

client.py

import socket
socket.create_connection(("your-computer-local-ip", 8080)).close()