contentstack-management

作者: contentstack

用於 Client、Stack、_APIClient、domain 資源、OAuth 及 CMA API 對齊。

npx skills add https://github.com/contentstack/contentstack-management-python --skill contentstack-management

Contentstack Management SDK – Contentstack Management Python

When to use

  • Implementing or changing Client, Stack, or resource modules (entries, assets, webhooks, …).
  • Updating README.md or public exports for user-visible behavior.
  • Assessing semver impact of constructor, method, or export changes.

Instructions

Main entry (consumer API)

  • contentstack_management.Client in contentstack.py: builds CMA endpoint from region / host / scheme, merges headers (authtoken, management_token, early_access), constructs _APIClient, optional oauth_config with OAuthHandler.

Structure

  • Stack — contentstack_management/stack/stack.py: stack-scoped resources (content types, entries, assets, branches, webhooks, …).
  • Org / user — organizations/, users/, user_session/ as applicable.
  • Resources — packages under contentstack_management/ following existing patterns.
  • OAuth — oauth/oauth_handler.py, oauth/oauth_interceptor.py; keep aligned with _APIClient request path.

HTTP layer

  • _APIClient._call_request — central place for method, URL, JSON, files; respect timeout and max_retries.

Extending

  • Add methods on the appropriate resource class; align path and payload shapes with CMA docs.
  • Prefer routing HTTP through _APIClient for consistent retries and OAuth handling.

Docs and versioning

  • Exported Client, Region, and stack helpers should match README and contentstack_management.__init__.py.
  • Document migration for intentional breaking changes.

來自 contentstack 的更多技能

cms-assets
contentstack
為開發人員提供有關在Contentstack中組織、交付和轉換資產的建議。涵蓋資料夾結構、Image Delivery API轉換、發佈……
cms-branches-aliases
contentstack
為開發人員提供使用 Contentstack 分支進行隔離內容開發以及使用別名實現零停機內容部署的建議。涵蓋分支策略,…
cms-data-modeling-best-practices
contentstack
引導開發人員在Contentstack中使用最簡單的可重用結構來建模內容。此技能說明何時使用內容類型、引用、全域…
cms-live-preview-visual-builder-support-assistant
contentstack
診斷並指導 Contentstack Live Preview 和 Visual Builder 的實作。追蹤預覽上下文,識別中斷的合約,並建議…
cms-releases
contentstack
指導開發人員使用 Contentstack Releases 進行協調、原子化的內容部署。涵蓋版本建立、項目管理、分階段部署等內容。
cms-roles-permissions
contentstack
為開發人員提供關於在Contentstack中設計角色、權限、團隊和Token存取權限的建議。解釋內建角色、自訂角色、權限合併等。
cms-taxonomy
contentstack
為開發人員提供關於使用 Contentstack Taxonomy 進行結構化、階層式內容分類及傳遞端篩選的建議。涵蓋 taxonomy 與 tags 的比較,…
cms-tokens-authentication
contentstack
為開發人員提供建議,協助他們為前端、後端、自動化及第三方應用程式使用情境選擇正確的Contentstack驗證方法與權杖類型。…