Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
photo_upload.py
readme.md

readme.md

photo_upload

photo_upload.py is written for Pythonista on iOS. It's goal is to allow you to upload a photo or photos from the Pythonista extension in the Photos app to your own web server via SSH and copy the link[s] to your clipboard for posting on social media. The intention of this is so that you always maintain ownership of the photos that you take and share on social media.

For this to work you'll need SSH access to your web server and your SSH key. Copy the photo_upload.py script into Pythonista and edit lines 14-18 to fit your server.
self.domain_name is used to specify your base domain: 'example.com'
self.username is your SSH username
self.port is your SSH port (Int)
self.key_file is to specify the path to your SSH key file
self.web_root is used to specify your web servers root folder. This is where photo_upload.py will create the folder structure to store your photos. It's typically something like: '/var/www'

Once you've got photo_upload.py setup you can run the script from the Pythonista extension in the Photos share sheet.

Enjoy!

You can’t perform that action at this time.