skillfed

contentstack-utils

contentstack_utils is a Utility package for Contentstack headless CMS with an API-first approach.

contentstack-utils v1.6.1 227.0K downloads/30d#9,190 on PyPI0
Permissive license MIT Active released

What it is and what it does

contentstack_utils is a utility library for Contentstack, a headless CMS platform. It provides helper functions to transform JSON content retrieved from Contentstack's Content Delivery API into rendered HTML suitable for display on web pages. The package focuses on rendering rich-text editor fields and embedded items—content types that Contentstack stores as structured JSON but need to be converted to HTML for front-end consumption.

The library is designed to work alongside the main Contentstack Python SDK. You fetch entries using the SDK, then pass them to contentstack_utils functions like `render_content()` or `json_to_html()` along with configuration options to specify which fields to render and how. It supports Python 3.6 through 3.9 and has no external runtime dependencies, making it lightweight to add to existing projects.

Use it for:

  • Convert Contentstack RTE (rich-text editor) field data to HTML for server-side rendering in a web application.
  • Process embedded items and linked content from Contentstack entries before sending them to a front-end template engine.
  • Batch-render content from multiple Contentstack entries for bulk content export or static site generation.
  • Transform Contentstack JSON responses into HTML for email templates or document generation workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Renders embedded content and rich-text fields from Contentstack's headless CMS, converting structured JSON data into HTML for front-end display.

Yes, if you are using Contentstack as your CMS and need to render rich-text or embedded content in Python. The package is actively maintained, has no dependencies, installs easily, carries a permissive MIT license, and solves a specific problem in the Contentstack ecosystem. No known security vulnerabilities. Install it when you need to convert Contentstack JSON to HTML; skip it if you are not using Contentstack or handle rendering entirely on the front-end.

Install

contentstack-utils on PyPI

pip

pip install contentstack-utils

uv

uv add contentstack-utils

poetry

poetry add contentstack-utils

Installing contentstack-utils

Before you install

Low friction install with no runtime dependencies. Active maintenance, last release 16 days ago, repository not archived.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects.

Quickstart

pip install contentstack_utils

from contentstack_utils.utils import Utils
from contentstack_utils.render.options import Options

json_array = {}  # dictionary or list from Contentstack
option = Options()
response = Utils.render_content('html_string', json_array, option)
print(response)

Requires Python 3.6 or later; typically used alongside the Contentstack Python SDK to fetch entries before rendering.

Verify before relying

  • Whether the package handles all Contentstack field types or only specific RTE/embedded-item scenarios.
  • Performance characteristics when rendering large or deeply nested content structures.
  • Whether custom rendering options support all HTML/CSS features or have limitations.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 16 days since the last release
Last repo commit
First released
Downloads 227,012/month — #9,190 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: contentstack_utils-1.6.1-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

contentstack cms utilitiesrender rich text fieldsjson to html conversionheadless cms content renderingembedded content processing
headless-cmscontent-rendering

More Dynamic Content packages