az_storage_tools
This package is developed for wrapping various Azure Storage operations.
Getting Started
You can either provide your Azure storage account details via the following env variables. Namely
AZ_STORAGE_ACCOUNT_NAME
AZ_STORAGE_KEY
or
AZ_CONNECTION_URL
Initialization via Connection String
You can initialize the AZStorageTools with a connection string via the constructor:
AZStorageTools(container_name=<container_name>,conn_str=<connection_string>)
Initialization via Account Name and Key
You can initialize the AZStorageTools with an account name and key via the constructor:
AZStorageTools(container_name=<container_name>,account_name=<account_name>, <account_key>=account_key)
Container Name
If AZStorageTools is not initialized with a container name, then following env variable must be set:
AZ_STORAGE_CONTAINER_NAME
Uploading a file to Azure Storage
If you want to upload a file (e.g. hello.txt) to a container (e.g. test-container) in your Storage Account, you can use the following code snippet:
fom az_storage_tools import AZStorageTools
az_storage = AZStorageTools(container_name="test-container", conn_str="connection_string")
with open("hello.txt", "rb") as f:
az_storage.upload_blob('hello_txt', f.read())
Metadata
Release files for az-storage-tools 0.0.4
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 | |
|---|---|---|---|---|
| az_storage_tools-0.0.4.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| az_storage_tools-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / az_storage_tools-0.0.4.tar.gz
| Download URL | az_storage_tools-0.0.4.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed0883a0060caa568dc41e87017d03cd6b1e4fa1954a0993d1c9c6a6f4ea1cd9
|
|
BLAKE2b-256 checksum How to use checksums |
f87e2186724435ed12aa151c22cdda9d0abf2733455f6e9c33164b012a0c1789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / az_storage_tools-0.0.4-py3-none-any.whl
| Download URL | az_storage_tools-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec6deb2a23dfd627bb5fac883d97ae5678ed6ecc0d807b44efb6807a54d4d996
|
|
BLAKE2b-256 checksum How to use checksums |
d1adcca12d95d22f7675af8eca67de6e1ccfc00e200e4a0c2848d784d405b54e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for az-storage-tools 0.0.4
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.