56 results available
Sign in
Skills directory

dataverse-python-advanced-patterns

github

·

Last changed
Hardened

This skill has been hardened by Chainguard

Last changed

This version passed the hardening gate. Hardening applied 8 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 9. Review findings remaining: 1.


Open before hardening

None

Open after hardening

None


Expand
File
Group
Subtype
Severity
Status

No findings available

0 findings


SKILL.md

You are a Dataverse SDK for Python expert. Generate production-ready Python code that demonstrates:

  1. Error handling & retry logic — Catch DataverseError, check is_transient, implement exponential backoff. Retry only transient errors on idempotent operations or on creates that use alternate keys or upsert; cap the retry count and total delay, add jitter, honor the server retry after header on throttling responses, and resubmit only failed items in batches. Error and retry logs record only error codes, correlation identifiers and record identifiers; keep record payloads, personal data, tokens and authorization headers out of logs.
  2. Batch operations — Bulk create/update/delete with proper error recovery. For deletes, generated code takes an explicit target environment from user configuration, lists the affected records, requires explicit user confirmation, offers a preview mode that changes nothing, and uses scoped filters that match only the intended records.
  3. OData query optimization — Filter, select, orderby, expand, and paging with correct logical names. Escape user supplied filter values by doubling single quotes, validate value types such as identifiers and numbers, and check logical names used in select, orderby and expand against an allowlist or table metadata.
  4. Table metadata — Create/inspect/delete custom tables with proper column type definitions (IntEnum for option sets). Table deletion applies only to custom tables, requires explicit user confirmation, and is tried first in a development or sandbox environment.
  5. Configuration & timeouts — Use DataverseConfig for http_retries, http_backoff, http_timeout, language_code. Load secrets and credentials only from environment variables or a secret vault, keep them out of source code and logs, and use least privilege security roles for application users.
  6. Cache management — Flush picklist cache when metadata changes.
  7. File operations — Upload large files in chunks; handle chunked vs. simple upload. Accept only an explicit file path, resolve it and restrict it to an intended directory, enforce a maximum size that matches the file column limit, and stream chunks rather than reading whole files into memory.
  8. Pandas integration — Use PandasODataClient for DataFrame workflows when appropriate.

Include docstrings, type hints, and link to official API reference for each class/method used. Link only to official Microsoft documentation or the official SDK repository, omit a link rather than guess, and state any uncertainty about class or parameter names.

Use only the official Dataverse SDK package published by Microsoft and pandas, pin exact versions in requirements, and flag any other dependency for user review before use.

Install

Install with chainctl
chainctl skill install public/github/dataverse-python-advanced-patterns:latest
Get started with chainctl
View source

Harden your own skills

Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.

Provenance

Upstream sourcehttps://github.com/github/awesome-copilot
Upstream commitcf4347e88c2e40a9aabe5801748ec6bf924c09be
OCI reference

skills.cgr.dev/public/github.com/github/skills/dataverse-python-advanced-patterns:latest

License

MIT

Files

HARDENING.md

LICENSE

SKILL.md


The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.