Skip to main content

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


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.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

srx_lib_azure-0.1.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file srx_lib_azure-0.1.3.tar.gz.

File metadata

  • Download URL: srx_lib_azure-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for srx_lib_azure-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f1b194b8f1c22a7c239bac7d489e5989c394a81bec6d8d911db76162e392747d
MD5 0db1bbf58e6800d2bcb520d7cf3233c4
BLAKE2b-256 b24bde43680d067024aec356456c7a94a619637c120734bc2fa799d2debbd8d8

See more details on using hashes here.

File details

Details for the file srx_lib_azure-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: srx_lib_azure-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for srx_lib_azure-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 512954b0b3672ddcdb50e20f2e00476c46f8021b1306391d7cf60caa05e5e2e3
MD5 f2ea786bc6303f916f9b32d9383f4745
BLAKE2b-256 a8a1abf93836660c394559f9907d7ff83b2b70fe107d73e994bfad4c0142483a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page