contentful
Contentful Delivery API Client
What it is and what it does
Contentful is a Python client for Contentful's headless CMS APIs. It provides a straightforward interface to fetch entries, assets, content types, and other structured content from Contentful's Content Delivery API or Preview API. The library handles authentication via bearer tokens, supports querying with filters and search parameters, and includes features like content type caching, localization, link resolution, and synchronization to keep local content in sync with the remote service.
The package depends only on requests and python-dateutil, making it lightweight to integrate into existing Python applications. It supports modern Python versions and includes built-in rate-limiting recovery, allowing developers to reliably retrieve content from Contentful without managing API retry logic manually. Configuration options cover API endpoint selection, locale defaults, compression, and error handling behavior.
Use it for:
- Fetch structured content from Contentful to populate a static site generator or web application.
- Synchronize content changes from Contentful into a local cache or database for offline access.
- Query entries filtered by content type, locale, or custom search parameters for multi-language content delivery.
- Retrieve asset metadata and generate signed URLs for embargoed or time-limited asset access.
- Build a content preview workflow using the Preview API with draft or unpublished content.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for querying and retrieving structured content from Contentful's Content Delivery and Preview APIs, with support for synchronization, localization, and link resolution.
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It is the official Python client for Contentful's APIs and is suitable for any Python project that needs to integrate with Contentful as a content source.
Install
contentful on PyPI
pip
pip install contentfuluv
uv add contentfulpoetry
poetry add contentfulInstalling contentful
Before you install
Low friction installation with only two lightweight runtime dependencies (requests and python-dateutil). The package is actively maintained with a recent release and no known vulnerabilities, supporting current Python versions (3.9 through 3.13).
License in practice
MIT license is permissive and places no significant restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install contentful
import contentful
client = contentful.Client('space_id', 'access_token')
entry = client.entry('entry_id')
Requires valid Contentful space ID and access token obtained from the Contentful web app.
Verify before relying
- Whether the library's rate-limiting recovery procedures are automatic or require explicit configuration.
- Performance characteristics when handling large content sets or deeply nested linked resources.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, python-dateutil |
| Maintenance | actively maintained — 350 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 414,557/month — #6,830 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: contentful-2.5.0-py3-none-any.whl
Keywords: contentful, cms, content
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
contentful_managementPython client for Contentful's Management API,…
permissive · top 15,000 on PyPI
rich-text-rendererConverts Contentful RichText field data into…
permissive · top 15,000 on PyPI
fastlyA Python client library for the Fastly API,…
permissive · top 15,000 on PyPI
contentstack-utilsRenders embedded content and rich-text fields…
permissive · top 15,000 on PyPI
django-cmsdjango CMS is a Django-based content management…
permissive · top 15,000 on PyPI
twelvelabsPython SDK for the TwelveLabs video…
unclear · top 15,000 on PyPI
PowerPlatform-Dataverse-ClientA Python client library for Microsoft Dataverse…
unclear · top 15,000 on PyPI
mux-pythonOfficial Python wrapper for the Mux API,…
permissive · top 5,000 on PyPI
weblate-language-dataProvides language definitions, plural rules,…
permissive · top 15,000 on PyPI
linkup-sdkA Python client library for the Linkup API that…
permissive · top 15,000 on PyPI