Hi there
I am having my system running fine on PA, but are starting to consider including hardware-devices that has FTP-clients as only option to upload data to server.
Do you have any ideas as to how this might be achieved with your service?
Hi there
I am having my system running fine on PA, but are starting to consider including hardware-devices that has FTP-clients as only option to upload data to server.
Do you have any ideas as to how this might be achieved with your service?
I guess you could have a local FTP server with a watcher that scps up to PythonAnywhere. I have upvoted the "Implement FTP" ticket for you.
I haven't tried it personally, but there's always pyftpdlib - last time I looked it seemed a pretty flexible and efficient framework for implementing an FTP server. Hence, perhaps the PA-provided functionality required is just opening the FTP port and allowing a user-provided Python application to listen on it? Things like resilience are pretty easy for people to provide themselves - I've written watchdog modules in Python where a parent process forks and restarts a child which crashes. Unfortanately that was for an employer hence I can't provide the code, but it's pretty straightforward.
Atlantic.net will set you up with a very small server for $0.99/mo.
https://www.atlantic.net/vps/vps-hosting/
You could run an FTP server on that thing, and then let scp (as mentioned above) move it to PythonAnywhere.
You only need to open FTP and very few other ports, and you could have a nice auxiliary service that could feed your web app.
Next cheapest general purpose servers are probably $5 linodes boxes, but I don't think the extra power is necessary.
(Another advantage is that you can keep the vulnerabilities of FTP out of your web app.)
As Glenn said, you could use scp to move it from there. scp is a lot more secure than FTP and isn't hard to get working.
http://en.wikipedia.org/wiki/Secure_copy
Something to think about anyway.