刘凡 3282579ec1 first commit | 2 anni fa | |
---|---|---|
.. | ||
.circleci | 2 anni fa | |
azure_storage | 2 anni fa | |
docs | 2 anni fa | |
site | 2 anni fa | |
tests | 2 anni fa | |
.coveragec | 2 anni fa | |
.gitignore | 2 anni fa | |
LICENSE | 2 anni fa | |
README.md | 2 anni fa | |
__init__.py | 2 anni fa | |
mkdocs.yml | 2 anni fa | |
outputs.txt | 2 anni fa | |
pytest.ini | 2 anni fa | |
setup.py | 2 anni fa |
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
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
You must enter your Azure storage connection string and account name into the system keyring before running any of the other scripts
AzureCredentials store
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
AzureCredentials
: enter, modify, or delete your Azure connection string and account name in your system keyringAzureUpload
: upload a file or folder to a container in your Azure storage accountAzureSAS
: create SAS (shared access signature) URLs for a file, a folder, or an entire container in your Azure storage accountAzureMove
: move a file, folder, or an entire container within your Azure storage accountAzureDownload
: download a file, folder, or an entire container from your Azure storage accountAzureTier
: set the storage tier of a file, folder, or an entire container from your Azure storage accountAzureDelete
: delete a file, folder, or an entire container from your Azure storage accountAzureAutomate
: run upload, sas, move, download, set_tier, and/or delete in batchAzureList
: List and optionally filter containers and/or files in your Azure storage accountMIT 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.