mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 02:15:12 +00:00
Add Dataverse SDK for Python Collection (#458)
* Add Dataverse SDK for Python: 5 new instruction files (error handling, authentication, performance, testing, use cases) + 4 prompts and updated READMEs * Delete COLLECTION_STATUS.md * Delete ENHANCEMENT_SUMMARY.md
This commit is contained in:
committed by
GitHub
parent
b81a3dc5a4
commit
a89019fb3b
32
instructions/dataverse-python.instructions.md
Normal file
32
instructions/dataverse-python.instructions.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
applyTo: '**'
|
||||
---
|
||||
# Dataverse SDK for Python — Getting Started
|
||||
|
||||
- Install the Dataverse Python SDK and prerequisites.
|
||||
- Configure environment variables for Dataverse tenant, client ID, secret, and resource URL.
|
||||
- Use the SDK to authenticate via OAuth and perform CRUD operations.
|
||||
|
||||
## Setup
|
||||
- Python 3.10+
|
||||
- Recommended: virtual environment
|
||||
|
||||
## Install
|
||||
```bash
|
||||
pip install dataverse-sdk
|
||||
```
|
||||
|
||||
## Auth Basics
|
||||
- Use OAuth with Azure AD app registration.
|
||||
- Store secrets in `.env` and load via `python-dotenv`.
|
||||
|
||||
## Common Tasks
|
||||
- Query tables
|
||||
- Create/update rows
|
||||
- Batch operations
|
||||
- Handle pagination and throttling
|
||||
|
||||
## Tips
|
||||
- Reuse clients; avoid frequent re-auth.
|
||||
- Add retries for transient failures.
|
||||
- Log requests for troubleshooting.
|
||||
Reference in New Issue
Block a user