contentstack-utils
contentstack_utils is a Utility package for Contentstack headless CMS with an API-first approach.
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-utilsuv
uv add contentstack-utilspoetry
poetry add contentstack-utilsInstalling 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
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
rich-text-rendererConverts Contentful RichText field data into…
permissive · top 15,000 on PyPI
contentfulA Python client library for querying and…
permissive · top 15,000 on PyPI
djangocms-attributes-fieldProvides a Django model field and widget for…
permissive · top 15,000 on PyPI
django-cmsdjango CMS is a Django-based content management…
permissive · top 15,000 on PyPI
contentful_managementPython client for Contentful's Management API,…
permissive · top 15,000 on PyPI
streamlit-quillEmbeds a React Quill rich-text editor component…
unclear · top 15,000 on PyPI
django-tinymcedjango-tinymce provides a Django form widget…
copyleft · top 5,000 on PyPI
rich-rstRenders reStructuredText documents as Rich…
permissive · top 1,000 on PyPI
wagtailWagtail is a Django-based content management…
permissive · top 5,000 on PyPI
omnigent-ui-sdkProvides terminal UI components built on Rich…
unclear · top 15,000 on PyPI