Metadata-Version: 2.1
Name: azblob
Version: 0.1
Summary: Download Azure blobs.
Home-page: https://github.com/plang85/azblob
Author: Philipp Lang
License: MIT License
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: azure-storage-blob (>=1.3.0)
Requires-Dist: azure-storage-file (>=1.3.0)
Requires-Dist: tqdm (>=4.0.0)
Requires-Dist: tabulate (>=0.8.2)
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: twine; extra == 'dev'

# Azure Blob

[![PyPI version](https://badge.fury.io/py/azblob.svg)](https://badge.fury.io/py/azblob)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)


One-line CLI to download from Azure blob storage. Supports private blobs.


## Installation

To install:

```
$ pip install azblob
```

## CLI

### Download blob (and authentication illustration)
**Anonymous** access, account name from command line
```
$ azblob -n my_account download my_container my_blob
```
**Anonymous** access, account name from environment
```
$ export AZBLOB_ACCOUNTNAME=my_account
$ azblob download my_container my_blob
```

**Private** container, credentials from command line
```
$ azblob -n my_account -k my_key download my_container my_blob
```

**Private** container, credentials from environment
```
$ export AZBLOB_ACCOUNTNAME=my_account
$ export AZBLOB_ACCOUNTKEY=my_key
$ azblob download my_container my_blob
```

### List containers and blobs
Same authentication mechanism. List blobs in `my_container`
```
azblob list my_container
```
List all containers in account
```
azblob list
```

and, as always
```
$ azblob -h
$ azblob download -h
$ azblob list -h
```


