Forum Archive

Jail free python scripts, copying your scripts out of pythonista

DavidOwen

I recently was in a situation were I only had access to a LAN, and wanted to get some of my scripts off my iphone onto my laptop. Because I am lazy and a developer, I wrote a web-server script in Pythonista, assigned the LAN IP a port, saved it to the default folder and ran it. called the server from my laptop web browser and presto! all my scripts listed, ready to copied https://discord.software/ https://fetlife.vip/ https://vshare.onl/

bestivick

I recently was in a situation were I only had access to a LAN, and wanted to get some of my scripts off my iphone onto my laptop. Because I am lazy and a developer, I wrote a web-server script in Pythonista, assigned the LAN IP a port, saved it to the default folder and ran it. called the server from my laptop web browser and presto! all my scripts listed, ready to copied

—————————————

import http.server

import socketserver

IP = '0.0.0.0' # Your LAN IP

PORT = 8080

Handler = http.server.SimpleHTTPRequestHandler

httpd = socketserver.TCPServer((IP, PORT), Handler)

print(f'serving on {IP} at port {PORT}') httpd.serve_forever()

viva tv apk