Provide file-like wrapper for Azure Blobs
Project description
aablobwrapper
For convenience, this module provide some wrappers for the Azure append blob writer. It implements the write function of the object and a context manager, allowing for you to easily use things like the CVS package, or simply appending to an append blob directly.
Installation
pip install aablobwrapper
Examples
import csv
from aablobwrapper import SyncBlobAppender
connection_string = "https://<storageaccount>.blob.core.windows.net/<container_name>"
credential = "<key>"
container_name = "<container_name>"
blob_name = "<blobname>"
appender = SyncBlobAppender(connection_string, credential, container_name, blob_name, binary=False)
csv_writer = csv.writer(appender)
csv_writer.writerow(["write", "some", "data"])
for more examples, for example, to see how to use context managers or how to use the async version, see the examples folder.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aablobwrapper-0.6.8.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for aablobwrapper-0.6.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 105f20bdff9815f99761d9b7a3fb98fb63adeb8a66c2156cb7d26865ad62e87d |
|
MD5 | ee48fc3f9e4dda45740b3c62f8870722 |
|
BLAKE2b-256 | 4b8e491f94788901f1e42a13d36ee55dbcfdac52e8d97e3ba426e7b339082c81 |