python-style
by contentstack
Use for package layout under contentstack_management/, setup.py, pylint-friendly style, and imports.
npx skills add https://github.com/contentstack/contentstack-management-python --skill python-stylePython style and repo layout – Contentstack Management Python
When to use
- Editing any Python under
contentstack_management/,setup.py, orrequirements.txt. - Adding modules or changing how the public package surface is exported.
Instructions
Layout
contentstack_management/contentstack.py—Client,Region,user_agents, OAuth wiring.contentstack_management/_api_client.py—_APIClient(HTTP, retries).contentstack_management/stack/— stack-scoped API surface.- Domain modules —
entries/,assets/,webhooks/,oauth/, etc.
Style
- Match existing modules: naming, docstrings, and patterns already used in the same directory.
- Prefer small, focused changes; keep
__init__.pyexports consistent with public API intent (README,contentstack_management.__all__).
Imports
- Use
requests(andrequests-toolbeltwhere already used) through_APIClientpatterns rather than ad-hoc clients in domain modules unless justified.
Security
- Do not log authtokens, management tokens, passwords, or API keys; preserve existing header handling in
Client.