Add Azure storage support to dtool
Free software: MIT License
Features
Copy datasets to and from Azure storage
List all the datasets in a Azure storage account
Create datasets directly in Azure storage
Installation
To install the dtool-azure package:
pip install dtool-azure
Configuration
Install the Azure command line client via:
pip install azure-cli
(you may wish to install this in a virtual environment)
Then:
az login
To log into Azure.
Then you need to run (changing the resource name/group as appropriate):
az storage account show-connection-string --name jicinformatics --resource-group jic_informatics_resources_ukwest
Then create the file .config/dtool/dtool.json and add the Azure account name and key using the format below:
{
"DTOOL_AZURE_ACCOUNT_KEY_<ACCOUNT NAME>": "<KEY HERE>"
}
Changing the account name and key as appropriate. For example if the account name was “jicinformatics” and the key “some-secret-token”:
{
"DTOOL_AZURE_ACCOUNT_KEY_jicinformatics": "some-secret-token"
}
Usage
To copy a dataset from local disk (my-dataset) to an Azure storage account (jicinformatics) one can use the command below:
dtool copy ./my-dataset azure://jicinformatics/
To list all the datasets in an Azure storage account one can use the command below:
dtool ls azure://jicinformatics/
See the dtool documentation for more detail.
Metadata
Release files for dtool-azure 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dtool-azure-0.7.1.tar.gz | 7.4 kB | Without provenance | Details for dtool-azure-0.7.1.tar.gz |
Release files / dtool-azure-0.7.1.tar.gz
| Download URL | dtool-azure-0.7.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e78ce652565689307aee40a7acf0c1d8a4209757588002afbcbc1e61b3dedb3a
|
|
BLAKE2b-256 checksum How to use checksums |
0eda0939e3add5b58f484e44a241c842020fee21e4a908f1cb1af0d448fb9920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|
Security for dtool-azure 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.