contentful.py
contentful.py copied to clipboard
Python client for the Contentful Content Delivery API https://www.contentful.com/developers/documentation/content-delivery-api/
How can I include the X-Contentful-Version header using the Python client? ``` entry_id = id entry = management_client.entries(space_id, environment_id).create(entry_id, { 'content_type_id': experiment_content_id, 'fields': { 'contentMarkdown': { 'de': body } }...
I know that this an attempt to be helpful but it's usually not, in my experience. The SDK uses `key_name` and the webhook uses `keyName`, so how are we supposed...
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/ ```...
``` # "include": 0 is to keep this example shorter, the bug affects any include level >>> question = client.entry("1dBxUVU0IY2O5gQVCINMJB", {"locale": "pt", "include": 0}) >>> question.locale 'pt' >>> question.group >>>...
Hello. I've just faced strange error from your lib and don't understand what is the cause and how to fix it. I have pretty simple logic to retrieve entries filtered...
We have an issue where the Content Delivery API sporadically fails. Instead of causing our whole sync process to fail, it was helpful to allow for retries. It's hacky, but...
We are using the delivery client and querying for entries using the `entries()` method. We are seeing significant latency from this method call that far exceeds the time for the...
If an entry has a rich text field, and that rich text field contains an embedded video, calling `entry.raw` will result in a JSON object which still contains the embedded...