srx-lib-azure 0.1.5__py3-none-any.whl → 0.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,70 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: srx-lib-azure
3
- Version: 0.1.5
4
- Summary: Azure helpers for SRX services: Blob, Email, Table
5
- Author-email: SRX <dev@srx.id>
6
- Requires-Python: >=3.12
7
- Requires-Dist: azure-communication-email>=1.0.0
8
- Requires-Dist: azure-data-tables>=12.7.0
9
- Requires-Dist: azure-storage-blob>=12.22.0
10
- Requires-Dist: loguru>=0.7.2
11
- Description-Content-Type: text/markdown
12
-
13
- # srx-lib-azure
14
-
15
- Lightweight wrappers over Azure SDKs used across SRX services.
16
-
17
- What it includes:
18
- - Blob: upload/download helpers, SAS URL generation
19
- - Email (Azure Communication Services): simple async sender
20
- - Table: simple CRUD helpers
21
-
22
- ## Install
23
-
24
- PyPI (public):
25
-
26
- - `pip install srx-lib-azure`
27
-
28
- uv (pyproject):
29
- ```
30
- [project]
31
- dependencies = ["srx-lib-azure>=0.1.0"]
32
- ```
33
-
34
- ## Usage
35
-
36
- Blob:
37
- ```
38
- from srx_lib_azure.blob import AzureBlobService
39
- blob = AzureBlobService()
40
- url = await blob.upload_file(upload_file, "documents/report.pdf")
41
- ```
42
-
43
- Email:
44
- ```
45
- from srx_lib_azure.email import EmailService
46
- svc = EmailService()
47
- await svc.send_notification("user@example.com", "Subject", "Hello", html=False)
48
- ```
49
-
50
- Table:
51
- ```
52
- from srx_lib_azure.table import AzureTableService
53
- store = AzureTableService()
54
- store.ensure_table("events")
55
- store.upsert_entity("events", {"PartitionKey":"p","RowKey":"r","EventType":"x"})
56
- ```
57
-
58
- ## Environment Variables
59
-
60
- - Blob & Table: `AZURE_STORAGE_CONNECTION_STRING` (required)
61
- - Email (ACS): `ACS_CONNECTION_STRING`, `EMAIL_SENDER`
62
- - Optional: `AZURE_STORAGE_ACCOUNT_KEY`, `AZURE_BLOB_URL`, `AZURE_SAS_TOKEN`
63
-
64
- ## Release
65
-
66
- Tag `vX.Y.Z` to publish to GitHub Packages via Actions.
67
-
68
- ## License
69
-
70
- Proprietary © SRX
@@ -1,7 +0,0 @@
1
- srx_lib_azure/__init__.py,sha256=K0UCmkKw7HWJMshp6Xv3SxD4y26r7bdcPtb_2aRc2rs,174
2
- srx_lib_azure/blob.py,sha256=uCsRUCQN4GHtlyLBtDUvy0_mZaFTxWKdCA407cRIU8I,8245
3
- srx_lib_azure/email.py,sha256=t5W9DRFZLMJKrCaQuSoRU3jgiqNpDYqOxtvhObYn96w,2584
4
- srx_lib_azure/table.py,sha256=_5DCsk1SLqCc27F7469hxnRASS3XeffqK_MsJE1cD7Y,3022
5
- srx_lib_azure-0.1.5.dist-info/METADATA,sha256=qSOMza1A90Pg4AKtWyrcYznmX3NiXZfKLdtF2V0TyNM,1600
6
- srx_lib_azure-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- srx_lib_azure-0.1.5.dist-info/RECORD,,