Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Configure and optimize Azure Storage accounts, Blob, Queue, Table, and File services
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-data-tables-py.md
1# Tables — Python SDK Quick Reference23> Condensed from **azure-data-tables-py**. Full patterns (batch operations,4> async client, typed entities, query parameters)5> in the **azure-data-tables-py** plugin skill if installed.67## Install8pip install azure-data-tables azure-identity910## Quick Start1112> **Auth:** `DefaultAzureCredential` is for local development. See [auth-best-practices.md](../auth-best-practices.md) for production patterns.1314```python15from azure.data.tables import TableClient16from azure.identity import DefaultAzureCredential17table_client = TableClient("https://<account>.table.core.windows.net", "mytable", DefaultAzureCredential())18```1920## Best Practices21- Design partition keys for query patterns and even distribution22- Query within partitions whenever possible (cross-partition is expensive)23- Use batch operations for multiple entities in same partition24- Use `upsert_entity` for idempotent writes25- Use parameterized queries to prevent injection26- Keep entities small — max 1MB per entity27- Use async client for high-throughput scenarios28