| name | azure-data-tables-py |
| description | Azure Tables SDK for Python (Storage and Cosmos DB). Use for NoSQL key-value storage, entity CRUD, and batch operations. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | software-development |
| category | database |
| risk | unknown |
| source | community |
| tags | ["skill","software-development","database","azure","data","tables"] |
Azure Tables SDK for Python
NoSQL key-value store for structured data (Azure Storage Tables or Cosmos DB Table API).
Installation
pip install azure-data-tables azure-identity
Environment Variables
AZURE_STORAGE_ACCOUNT_URL=https://<account>.table.core.windows.net
COSMOS_TABLE_ENDPOINT=https://<account>.table.cosmos.azure.com
Authentication
from azure.identity import DefaultAzureCredential
from azure.data.tables import TableServiceClient, TableClient
credential = DefaultAzureCredential()
endpoint = "https://<account>.table.core.windows.net"
service_client = TableServiceClient(endpoint=endpoint, credential=credential)
table_client = TableClient(endpoint=endpoint, table_name="mytable", credential=credential)
Client Types
| Client | Purpose |
|---|
TableServiceClient | Create/delete tables, list tables |
TableClient | Entity CRUD, queries |
Table Operations
service_client.create_table("mytable")
service_client.create_table_if_not_exists("mytable")
service_client.delete_table("mytable")
for table in service_client.list_tables():
print(table.name)
table_client = service_client.get_table_client("mytable")
Entity Operations
Important: Every entity requires PartitionKey and (together form unique ID).