Skip to content

ChungChe/pyamazonclouddrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAmazonCloudDrive (pyacd) is a 3rd-party Python library for accessing 
"Amazon Cloud Drive".

These are respective contributors who give valuable feedback.
 - Adam Compton (https://github.com/handyman5)
 - Matt Luongo (https://github.com/mhluongo)

_Note_: This is just an experimental project for the future like boto which 
        can upload/download files in a few lines in Python.

###############################################################################
# *WARNING* These are matters you must consider.
###############################################################################
1) Amazon Cloud Drive: Terms of Use

This implementation is all based on analysis by me (Youhei Sakurai) and 
I'm not sure whether everyone who uses this library would be allowed by 
"Amazon Cloud Drive: Terms of Use" or not. Therefore please read below 
link carefully, then start to use this.

http://www.amazon.com/gp/help/customer/display.html/?nodeId=200557360

  6. Software

  you may not ... (f) modify, reverse engineer, decompile or disassemble, or 
  otherwise tamper with, the Software, whether in whole or in part, or create 
  any derivative works from or of the Software.

2) Limitation for number of devices. (Up to eight devices)

Now below link disappeared but Amazon used to restrict the number of devices
within 8, that may be because of something from a legal point of view. This 
is counted by cookie so I recommend you to use persist session functionality
of library; see also code written in bin/acdsession.py.

http://www.amazon.com/gp/help/customer/display.html/?ie=UTF8&nodeId=200557340\n

  Frequently Asked Questions
  How many devices can I use to access the files I've stored in my Cloud Drive?

###############################################################################
# Installation of pyacd
###############################################################################

1) Checkout repository with svn. (Run following command.)

  svn checkout http://pyamazonclouddrive.googlecode.com/svn/trunk/

2) Run setup.py

  setup.py install

3) Read source in pyacd and helps of "bin/*.py --help".

4) It occurred to me that someone said "Use the Source, Luke.".

###############################################################################
# Example usage of bin/acdxxx.py
###############################################################################

1) Upload all files in localdir to remotedir.

$ acdmkdir.py -e someone@example.com -p xxxx -s ~/.acdsession remotedir
$ ls -F localdir | grep -v / | sed "s/[\*|@]$//g" | sed "s/^/localdir\//g" |\
  acdput.py -s ~/.acdsession -d remotedir -

2) Download all files in remotedir to localdir_else.

$ mkdir localdir_else
$ acdlist.py -s ~/.acdsession -t FILE remotedir | sed "s/^/remotedir\//g" |\
  acdget.py -s ~/.acdsession -d localdir_else -

3) Make alias if you need.

$ alias acdget='acdget.py -s ~/.acdsession'
$ alias acdlist='acdlist.py -s ~/.acdsession'
$ alias acdmkdir='acdmkdir.py -s ~/.acdsession'
$ alias acdrecycle='acdrecycle.py -s ~/.acdsession'
$ alias acdput='acdput.py -s ~/.acdsession'
$ alias acdcat='acdcat.py -s ~/.acdsession'



About

Automatically exported from code.google.com/p/pyamazonclouddrive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages