Skip to main content

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

Project description

photos-to-sqlite

PyPI Changelog 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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

photos_to_sqlite-0.3a0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for photos_to_sqlite-0.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 5777cc2ad47e53e602fc9b25b41d12e7fd81230ca3d44c9ad1b647cefe202594
MD5 dc7d0b16cc8fb4e76d2283d4565ccab8
BLAKE2b-256 380f094e53a30075734b07e26b97719b18f5223b37a2ab3a9d3aeb6d5a584141

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page