Skip to content

tmessi/pycsync

Repository files navigation

Pycsync

Build Status Coverage Status Code Health Dependency Status Pypi Version Pypi Downloads

Sync pictures between filesystem and Flickr

Install

This uses the python_flickr_api.

To install latest:

pip install pycsync

Usage

First oauth needs to be setup for the application:

pycsync -a

Please visit to get an verifier code:
---------------------------------
http://www.flickr.com/services/oauth/authorize?oauth_token=<token>&perms=write
---------------------------------
Please input the verifier code here:

Then copy the link to a browser. After authorizing pycsync, the browser should display something like:

<rsp stat="ok">
  <method>flickr.test.echo</method>
  <api_key>key</api_key>
  <oauth_token>token</oauth_token>
  <oauth_verifier>verifer</oauth_verifier>
</rsp>

Where key is pycsync's api key, token is the oauth token from above, and verifier is the verifier key for further authentication. Copy the verifier and input it to pycsync.

NOTE: pycsync can either be run from the sync directory or the directory can be specified with the -p option.

Now to sync simply run:

pycsync

Limitations

  1. Flickr stores photos in albums. There is no concept of a sub-album. Thus this requires a flat file structure for the local files. The file system layout must contain one level of directories with files in them. The directories will be mapped to Albums. Any subdirectories will be ignored. Also any top-level files will be ignored.

About

Syncs pictures between filesystem and Flickr

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages