刘凡 3282579ec1 first commit 2 tahun lalu
..
.circleci 3282579ec1 first commit 2 tahun lalu
azure_storage 3282579ec1 first commit 2 tahun lalu
docs 3282579ec1 first commit 2 tahun lalu
site 3282579ec1 first commit 2 tahun lalu
tests 3282579ec1 first commit 2 tahun lalu
.coveragec 3282579ec1 first commit 2 tahun lalu
.gitignore 3282579ec1 first commit 2 tahun lalu
LICENSE 3282579ec1 first commit 2 tahun lalu
README.md 3282579ec1 first commit 2 tahun lalu
__init__.py 3282579ec1 first commit 2 tahun lalu
mkdocs.yml 3282579ec1 first commit 2 tahun lalu
outputs.txt 3282579ec1 first commit 2 tahun lalu
pytest.ini 3282579ec1 first commit 2 tahun lalu
setup.py 3282579ec1 first commit 2 tahun lalu

README.md

AzureStorage

CircleCI codecov Anaconda-Server Badge GitHub release (latest by date) GitHub issues Documentation Status license

This suite of tools (written in Python) allows you to manipulate containers/files/folders in your Azure storage account.

Full documentation available at the AzureStorage GitHub pages site

Quickstart

Conda is required to install AzureStorage. See the documentation or AzureStorage installation for instructions of getting conda installed on your system

conda install -c olc-bioinformatics azure-storage=0.0.2

Credentials

You must enter your Azure storage connection string and account name into the system keyring before running any of the other scripts

AzureCredentials store

Tests

If you encounter issues with the AzureStorage package, tests are available to ensure that the installation was successful and your credentials are valid.

You will need to clone this repository and run the tests with pytest:

git clone https://github.com/OLC-LOC-Bioinformatics/AzureStorage.git

cd AzureStorage

python -m pytest tests/ --cov=azure_storage --cov-config=.coveragec

Ensure that all tests complete successfully before proceeding

Scripts

  1. AzureCredentials: enter, modify, or delete your Azure connection string and account name in your system keyring
  2. AzureUpload: upload a file or folder to a container in your Azure storage account
  3. AzureSAS: create SAS (shared access signature) URLs for a file, a folder, or an entire container in your Azure storage account
  4. AzureMove: move a file, folder, or an entire container within your Azure storage account
  5. AzureDownload: download a file, folder, or an entire container from your Azure storage account
  6. AzureTier: set the storage tier of a file, folder, or an entire container from your Azure storage account
  7. AzureDelete: delete a file, folder, or an entire container from your Azure storage account
  8. AzureAutomate: run upload, sas, move, download, set_tier, and/or delete in batch
  9. AzureList: List and optionally filter containers and/or files in your Azure storage account

License

MIT License

Copyright (c) 2022 Government of Canada

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.