Skip to content

Upload your photos to S3 and import metadata about them into a SQLite database

License

Notifications You must be signed in to change notification settings

dogsheep/dogsheep-photos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photos-to-sqlite

PyPI CircleCI License

Save details of your photos to a SQLite database and upload them to S3

Installation

$ pip install photos-to-sqlite

Authentication

Create S3 credentials. This is a huge pain.

Run this command and paste in your credentials:

$ photos-to-sqlite s3-auth

This will create a file called auth.json in your current directory containing the required values. To save the file at a different path or filename, use the --auth=myauth.json option.

Uploading photos

Run this command to upload every photo in a specific directory to your S3 bucket:

$ photos-to-sqlite upload photos.db ~/Desktop

The command will only upload photos that have not yet been uploaded, based on their sha256 hash.