Save details of your photos to a SQLite database and upload them to S3
Project description
photos-to-sqlite
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.
To see what the command would do without uploading any files, use the --dry-run
option.
Importing Apple Photos metadata
The apple-photos
command can be run after the upload
command to import metadata from your Apple Photos library.
$ photo-to-sqlite apple-photos photos.db
Imported metadata includes places, people, albums, quality scores and machine learning labels for the photo contents.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file photos_to_sqlite-0.3a0-py3-none-any.whl
.
File metadata
- Download URL: photos_to_sqlite-0.3a0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5777cc2ad47e53e602fc9b25b41d12e7fd81230ca3d44c9ad1b647cefe202594 |
|
MD5 | dc7d0b16cc8fb4e76d2283d4565ccab8 |
|
BLAKE2b-256 | 380f094e53a30075734b07e26b97719b18f5223b37a2ab3a9d3aeb6d5a584141 |