blobcli
This is a command line interface for easy operation with blobs in Azure Blob Storage.
Installation
$ pip install blobcli
Usage
Set connection string to environment variable
$ export AZURE_STORAGE_CONNECTION_STRING="<yourconnectionstring>"
$ blobcli
Usage: blobcli [OPTIONS] COMMAND [ARGS]...
blob storage easy operation cli (v*.*.*)
Options:
--help Show this message and exit.
Commands:
cp Copy blob.
ls List containers or blobs.
mv Move blob.
rm Delete blob.
List containers or blobs
$ blobcli ls <target>
Show list of containers
$ blobcli ls
2021-04-04 12:41:09+00:00 samplecontainer01
2021-04-04 12:41:19+00:00 samplecontainer02
2021-04-04 12:41:26+00:00 samplecontainer03
Show list of blobs for the specified container
$ blobcli ls samplecontainer01
PRE sample-dir01/
PRE sample-dir02/
2021-04-04 12:43:49+00:00 0B sample01.txt
2021-04-04 12:43:54+00:00 0B sample02.txt
2021-04-04 12:43:58+00:00 0B sample03.txt
$ blobcli ls samplecontainer01/sample-dir01/
2021-04-04 12:56:27+00:00 0B sample04.txt
2021-04-04 12:57:27+00:00 0B sample05.txt
Delete blob
$ blobcli rm <target>
Delete the specified blob
$ blobcli rm blob://samplecontainer01/sample03.txt
delete: blob://samplecontainer01/sample03.txt
Move blob
$ blobcli mv <source> <target>
Move blob from local to container
$ blobcli mv sample05.txt blob://samplecontainer01/sample-dir01/
move: sample05.txt to blob://samplecontainer01/sample-dir01/
container to local
$ blobcli mv blob://samplecontainer01/sample-dir01/sample05.txt .
move: blob://samplecontainer01/sample-dir01/sample05.txt to .
container to container
$ blobcli mv blob://samplecontainer01/sample01.txt blob://samplecontainer02/sample11.txt
move: blob://samplecontainer01/sample01.txt to blob://samplecontainer02/sample11.txt
Copy blob
$ blobcli cp <source> <target>
Copy blob from local to container
$ blobcli cp sample05.txt blob://samplecontainer01/sample-dir01/
copy: sample05.txt to blob://samplecontainer01/sample-dir01/
container to local
$ blobcli cp blob://samplecontainer01/sample-dir01/sample05.txt .
copy: blob://samplecontainer01/sample-dir01/sample05.txt to .
container to container
$ blobcli cp blob://samplecontainer01/sample01.txt blob://samplecontainer02/sample11.txt
copy: blob://samplecontainer01/sample01.txt to blob://samplecontainer02/sample11.txt
License
This project are released under the MIT License
Metadata
Release files for blobcli 0.0.6
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 |
|---|---|---|---|---|
| blobcli-0.0.6.tar.gz | 5.2 kB | Without provenance | Details for blobcli-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blobcli-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for blobcli-0.0.6-py3-none-any.whl |
Total release size: 10.9 kB
Release files / blobcli-0.0.6.tar.gz
| Download URL | blobcli-0.0.6.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33aa4b2ea91491203eb8ce803ac32506a2ace453c7d43509789bea8c59c97bb5
|
|
BLAKE2b-256 checksum How to use checksums |
baafc85776926dad20fbf2647e27943df68bb3476b209093943b14771b62f9b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Release files / blobcli-0.0.6-py3-none-any.whl
| Download URL | blobcli-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3731b036d50779091fbba00f463c2ed68dd18b6f30df68f77ec9e9946126d5f0
|
|
BLAKE2b-256 checksum How to use checksums |
447209c98b16fd9c766d28fa99bb670d17fd8a5df476c85bc96ef9e4886e622d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Security for blobcli 0.0.6
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.