You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update docs and examples to show context manager usage
- README: Quick Start uses `with` block, add Context Manager to key concepts
- SKILL.md (both copies): show `with` pattern as recommended
- walkthrough.py: extract body to _run_walkthrough(), wrap in `with`
- relationships.py: extract body to _run_example(), wrap in `with`
- file_upload.py: add client.close() at end (module-level script)
- installation_example.py: use `with` in interactive test and docstring
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,7 @@ The SDK provides a simple, pythonic interface for Dataverse operations:
113
113
| Concept | Description |
114
114
|---------|-------------|
115
115
|**DataverseClient**| Main entry point; provides `records`, `query`, `tables`, and `files` namespaces |
116
+
|**Context Manager**| Use `with DataverseClient(...) as client:` for automatic cleanup and HTTP connection pooling |
116
117
|**Namespaces**| Operations are organized into `client.records` (CRUD & OData queries), `client.query` (query & search), `client.tables` (metadata), and `client.files` (file uploads) |
117
118
|**Records**| Dataverse records represented as Python dictionaries with column schema names |
118
119
|**Schema names**| Use table schema names (`"account"`, `"new_MyTestTable"`) and column schema names (`"name"`, `"new_MyTestColumn"`). See: [Table definitions in Microsoft Dataverse](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/entity-metadata)|
@@ -131,17 +132,18 @@ from PowerPlatform.Dataverse.client import DataverseClient
0 commit comments