Async Python SDK for Azure Queue Storage
Project description
Azure Queue Storage
Installation
pip install queue-az
Authorization
The required connection string can be obtained from the Azure Portal, within the Storage account, "Access keys" tab
Environment (.env)
For convenience, you can set os.environ["BLOB_CONN_STR"]. If you do, you can skip specifying it on every call.
E.g., create a .env file:
BLOB_CONN_STR="<BLOB_CONN_STR>"
Then load it before importing
from dotenv import load_dotenv
load_dotenv()
import queue_az as qz
qz.client() # just works!
API
- Asynchronous (everything is a coroutine)
- Single calls or multiple using a same client:
# single call await qz.list.containers(conn_str=CONN_STR) # ain't necessary with a .env file # multiple calls async with qz.client() as client: queues = await qz.list(client=client) for q in queues: print(await qz.msg.list(q, client=client))
Functions
queue_az
def client(...) -> QueueServiceClient
async def create(...)
async def delete(...)
async def list(...)
msg
async def send(...)
async def pop(...)
async def list(...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file queue-az-0.1.0.tar.gz.
File metadata
- Download URL: queue-az-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d29873a7e8aa75d8ab6d70479669a59a6c2c9e8e1daed91cfc338c1a07e01e
|
|
| MD5 |
ab1d8bac1817a0d7f5df2837b821120e
|
|
| BLAKE2b-256 |
b7ee8bd273fd34527a6e2282f77c2960d946d925196065405c990369b29a46c6
|
File details
Details for the file queue_az-0.1.0-py3-none-any.whl.
File metadata
- Download URL: queue_az-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
945666fdb422cb4485d365eebf7061c584926f07e8c9f5f4da0a53b5b9fbd067
|
|
| MD5 |
007c1ec8c63b6f32ad5a2af28716a68c
|
|
| BLAKE2b-256 |
02e6a4c5dcbdfd655c6097c4ce372ad586488767c3b72333a69a17e9770c6b8b
|