SKILL.md
Python style – Contentstack CDA SDK
When to use
- Editing any Python under
contentstack/,setup.py, orrequirements.txt. - Adding modules or changing how the public package surface is exported.
Instructions
Layout
| Path | Role |
|---|---|
contentstack/stack.py |
Stack, ContentstackRegion |
contentstack/query.py, basequery.py |
Query building |
contentstack/entry.py, asset.py, contenttype.py |
Domain objects |
contentstack/taxonomy.py, globalfields.py, variants.py |
Advanced features |
contentstack/https_connection.py, controller.py |
HTTP session + request dispatch |
contentstack/error_messages.py, utility.py |
Shared helpers |
contentstack/init.py |
Public exports (Stack, Entry, Asset, …), version |
Style
- Match existing patterns (typing on
Stack,unittest-style tests intests/). - Prefer clear public APIs over internal churn; keep module boundaries similar to neighboring files.
Dependencies
requests,python-dateutil,urllib3(Retry) — seesetup.pyinstall_requires.- Do not add new runtime dependencies without updating
setup.pyandrequirements.txt.
Security
- Do not log
deliverytoken,previewtoken,apikey, ormanagementtoken; follow existing logging inStack.