Dask Azure Blob FileSystem
Azure Blob Storage Backend for Dask
Features
Supports dask when your data files are stored in the cloud.
Import DaskAzureBlobFileSystem
Use abfs:// as protocol prefix and you are good to do.
For authentication, please read more on Usage.
Support for key-value storage which is backed by azure storage. Create an instance of AzureBlobMap
Usage
Make the right imports:
from azureblobfs.dask import DaskAzureBlobFileSystem import dask.dataframe as dd
then put all data files in an azure storage container say clippy, then you can read it:
data = dd.read_csv("abfs://noaa/clippy/weather*.csv")
max_by_state = data.groupby("states").max().compute()
you would need to set your azure account name in environment variable AZURE_BLOB_ACCOUNT_NAME (which in our above example is noaa) and the account key in AZURE_BLOB_ACCOUNT_KEY.
If you don’t want to use account key and instead want to use SAS, set it in the environment variable AZURE_BLOB_SAS_TOKEN along with the connection string in the environment variable AZURE_BLOB_CONNECTION_STRING.
Installation
Just:
pip install dask-azureblobfs
or get the development version if you love to live dangerously:
pip install git+https://github.com/manish/dask-azureblobfs@master#egg=dask-azureblobfs
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2018-11-18)
First release on PyPI.
Metadata
Release files for dask-azureblobfs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dask-azureblobfs-0.1.0.tar.gz | 4.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dask_azureblobfs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 MB
Release files / dask-azureblobfs-0.1.0.tar.gz
| Download URL | dask-azureblobfs-0.1.0.tar.gz |
|---|---|
| Size | 4.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4214ab2eb70d7efe7f2b9b32a7b6b395d03092e245e13ad8e764472ff5cf7181
|
|
BLAKE2b-256 checksum How to use checksums |
ae69ac55acde2ad9902764a7f04175abf02c01ad6b1feef2494f26ea53c1839d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / dask_azureblobfs-0.1.0-py3-none-any.whl
| Download URL | dask_azureblobfs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d06b8ab74cd3771f0e429008fd04623246a94d025a2256fb0b31abc51317ecaf
|
|
BLAKE2b-256 checksum How to use checksums |
e3713196bd5a61e7292da59e69b9b07dd4ee01e245a9327696177c1bdd0321f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|