One-line CLI to download from Azure blob storage. Supports private blobs.
To install:
$ pip install azblob
Anonymous access, account name from command line
$ azblob -n account_url download my_container my_blob
where account_url
is e.g. https://<storage name>.blob.core.windows.net
Anonymous access, account name from environment
$ export AZBLOB_ACCOUNTNAME=account_url
$ azblob download my_container my_blob
Private container, credentials from command line
$ azblob -n account_url -k my_key download my_container my_blob
Private container, credentials from environment
$ export AZBLOB_ACCOUNTNAME=account_url
$ export AZBLOB_ACCOUNTKEY=my_key
$ azblob download my_container my_blob
Same authentication mechanism. List blobs in my_container
azblob list my_container
and, as always
$ azblob -h
$ azblob download -h
$ azblob list -h