New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aablobwrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aablobwrapper

Provide file-like wrapper for Azure Blobs

0.6.8
PyPI
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts