Azure helpers for SRX services: Blob, Email, Table
Project description
srx-lib-azure
Lightweight wrappers over Azure SDKs used across SRX services.
What it includes:
- Blob: upload/download helpers, SAS URL generation
- Email (Azure Communication Services): simple async sender
- Table: simple CRUD helpers
Install
PyPI (public):
pip install srx-lib-azure
uv (pyproject):
[project]
dependencies = ["srx-lib-azure>=0.1.0"]
Usage
Blob:
from srx_lib_azure.blob import AzureBlobService
blob = AzureBlobService()
url = await blob.upload_file(upload_file, "documents/report.pdf")
Email:
from srx_lib_azure.email import EmailService
svc = EmailService()
await svc.send_notification("user@example.com", "Subject", "Hello", html=False)
Table:
from srx_lib_azure.table import AzureTableService
store = AzureTableService()
store.ensure_table("events")
store.upsert_entity("events", {"PartitionKey":"p","RowKey":"r","EventType":"x"})
Environment Variables
- Blob & Table:
AZURE_STORAGE_CONNECTION_STRING(required) - Email (ACS):
ACS_CONNECTION_STRING,EMAIL_SENDER - Optional:
AZURE_STORAGE_ACCOUNT_KEY,AZURE_BLOB_URL,AZURE_SAS_TOKEN
Release
Tag vX.Y.Z to publish to GitHub Packages via Actions.
License
Proprietary © SRX
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
srx_lib_azure-0.1.7.tar.gz
(6.8 kB
view details)
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 srx_lib_azure-0.1.7.tar.gz.
File metadata
- Download URL: srx_lib_azure-0.1.7.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8edaa3d0eca76c9f340815b3b56b2102d722c0bcc7762ac1447df56a3efdaa83
|
|
| MD5 |
16d409fb99356319ffcbc7689d350579
|
|
| BLAKE2b-256 |
4bbac626cbc35d180ad4739efdf201240efe3b498b2c4307b0dc6738433509a6
|
File details
Details for the file srx_lib_azure-0.1.7-py3-none-any.whl.
File metadata
- Download URL: srx_lib_azure-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d6f862be5d1f608c2e890adbb4e11e066336c4dc0e96abe2fc85cff1496e97d
|
|
| MD5 |
0ee6934d7027fa8cfeb3ebc5f05aaee1
|
|
| BLAKE2b-256 |
7859816f3f0b9d50747ffebb347606bb416be589a4d0e9bb9c1d245b40ed7dbc
|