Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thrawn01/python-bitcasaclient
Command line tool for Bitcasa
https://github.com/thrawn01/python-bitcasaclient
Last synced: 5 days ago
JSON representation
Command line tool for Bitcasa
- Host: GitHub
- URL: https://github.com/thrawn01/python-bitcasaclient
- Owner: thrawn01
- Created: 2014-05-01T23:08:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T17:45:48.000Z (over 10 years ago)
- Last Synced: 2023-04-11T05:18:22.042Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 184 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
python-bitcasaclient
====================```
A Command line Interface to the Bitcasa REST APIPLEASE READ FIRST
Before you can use the bitcasa client you must follow the
instructions at https://developer.bitcasa.com/ to create a 'Client
ID' and 'Client Secret Credentials'Now Place your account credentials in ~/.bitcasa
[bitcasa]
# This is your app secret
secret = 79253282352135125cb564243xs2323b
# This is your client ID
client-id = 3b73422d
# This can be anything
redirect-url = http://example.com
# Now your login info
username = [email protected]
password = Y0ur!Passw0rdThe first time you use the bitcasa client it will use the credentials
found in ~/.bitcasa to retrieve an API Token which will be used for all
subsequent API calls. Once retrieved the The API Token will be stored in
~/.bitcasa-tokenHow the API Works
The bitcasa API tracks files by the use of a uinque path which
references a specific revision of a file, so when using bitcasa
to download or inspect directories you must specify the the path
to the file or directory, NOT the name of the file or directory.For example here is how you download a file from 'My Infinte'
$ bitcasa ls /
$ bitcasa ls /daUzyrTPASqWSFTIp69NyQ
$ bitcasa get /daUzyrTPQ5qW3JvIp69NyQ/QGX2gsxcvdsDFS3fsdfDFS
-- Downloading 'IMG_0016.MOV' (/daUzyrTPQ5qW3JvIp69NyQ/QGX2gsxcvdsDFS3fsdfDFS)
[==========] 100.0% 4114.51 KB/s
-- 2014-05-05 10:23:13.273717 (1179.44 KB/s) - IMG_0016.MOV saved [23423852/23423852]Commands:
ls [path] [options] Preforms a directory listing, sends the result the
listing to stdoutget [path] [options] Preforms a GET contents on a path, saving the file
contents as the name provided by the api.get-dir [path] [options] Download every file listed in the directory specifed
by the [path] argumentfrom-list [file] [options] Read a list of paths from a file, separated by newlines
download each one of the paths specified```