-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac2dea4
commit ec0466e
Showing
4 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
Google Cloud Storage | ||
==================== | ||
|
||
Accessing a Azure Blob Storage (GCS) with the shell tool `azcopy`. | ||
|
||
Installation | ||
------------ | ||
|
||
You need to install `azcopy`. Take a look at `Get started with Azcopy <https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10>`_. | ||
|
||
|
||
Configuration examples | ||
---------------------- | ||
|
||
```{note} | ||
Currently some of the functions require a SAS token, and some of the functions | ||
require a account key. It is recommended to provide both a SAS token | ||
and a account key. | ||
``` | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: SAS token | ||
|
||
.. code-block:: python | ||
import pathlib | ||
import mara_storage.storages | ||
mara_storage.config.storages = lambda: { | ||
'data': mara_storage.storages.AzureStorage( | ||
account_name='account-name', | ||
container_name='container-name', | ||
sas='sp=racwdlm&st=2022-05-11T10:04:05Z&se=2023-05-11T18:04:05Z&spr=https&sv=2020-08-04&sr=c&sig=u7tqxugyv5MbyrtFdEUp22tnou4wifBoUfIaLDazeRT%3D'), | ||
# optional | ||
storage_type = 'dfs' # use a dfs client instead of 'blob' (default value) | ||
} | ||
.. group-tab:: Account key | ||
|
||
.. code-block:: python | ||
import pathlib | ||
import mara_storage.storages | ||
mara_storage.config.storages = lambda: { | ||
'data': mara_storage.storages.AzureStorage( | ||
account_name='account-name', | ||
container_name='container-name', | ||
account_key='<key>', | ||
# optional | ||
storage_type = 'dfs' # use a dfs client instead of 'blob' (default value) | ||
), | ||
} | ||
| | ||
| | ||
API reference | ||
------------- | ||
|
||
This section contains database specific API in the module. | ||
|
||
|
||
Configuration | ||
~~~~~~~~~~~~~ | ||
|
||
.. module:: mara_storage.storages | ||
:noindex: | ||
|
||
.. autoclass:: AzureStorage | ||
:special-members: __init__ | ||
:inherited-members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters