Another very basic one-file-per-run console client-wrapper for DropBox, based on Python SDK
You'll need Python and DropBox for Python SDK to run this one.
python adropicka.py --authorize-dir
or
python adropicka.py --authorize-root
to authorize the application within DropBox (app has production status, there's no limit of user number).
Run, copy URL from the console, follow this URL in the browser and allow the application to have an access to your DropBox account (its own folder or the whole tree). Then copy authentication code from the web page and enter it at the application's prompt. The token file, "adropicka_token.txt", should appear. You have to perform the authorization only once.
python adropicka.py --list /folderOne/yetAnotherFolder
or
python adropicka.py -l /folderOne/yetAnotherFolder
Nested folders are not traversed.
python adropicka.py --makedir /nested/nextInside
or
python adropicka.py -m /nested/nextInside
If the folder exists already, error will not be raised.
python adropicka.py --upload ./testfile.dat /folderOne
or
python adropicka.py -u ./testfile.dat /folderOne
If the file exists already, it will be re-uploaded.
python adropicka.py --download /folderOne/testfile.dat ./innerDir
or
python adropicka.py -d /folderOne/testfile.dat ./innerDir
If the file exists already, it will be re-downloaded.
python adropicka.py --remove /folderOne/testfile.dat
python adropicka.py --remove /folderOne
or
python adropicka.py -r /folderOne/testfile.dat
python adropicka.py -r /folderOne
If file or folder doesn't exist, error will not be raised.
There are few other options, run
python adropicka.py --help
to see them all.
Copying, moving, sharing, ... a lot.
goes to skicka, a much more sophisticated Google Drive console client, which was the example to follow, in syntax and usage.
The main purpose of this thing was to add a DropBox support to Naamari project. The upload/download/remove functionality seems to be sufficient... at the moment.