- Fixed bug in
resource_for_link
function.
- Migrated to PDM for package management and build system
- Added code coverage reporting to CircleCI pipeline
- Updated dependencies to latest versions:
- requests>=2.31.0
- python-dateutil>=2.8.2
- vcrpy>=7.0.0
- coverage>=7.4.0
- flake8>=7.0.0
- requests-mock>=1.11.0
- PyYAML>=6.0.1
- Sphinx>=7.2.6
- sphinxcontrib-websupport>=1.2.7
- Simplified tox configuration to focus on supported Python versions (3.8-3.12)
- Updated CircleCI configuration to use PDM
- Removed setup.py in favor of pyproject.toml
- Removed requirements.txt in favor of PDM dependency management
- Removed support for legacy Python versions
- Added to integer coerce support to dict vars
- Update tox and circleci test matrix to test against Python 3.8, 3.9, 3.10, 3.11 and 3.12
- Added ResourceLink resolution feature
- Added twine to upload packages to pypi
- Added ResourceLink to Field Coercion class
- Fixed URL to 'Create Issue' button in readme
- Changed CI/CD vendor from Travis to CircleCi.
Breaking Changes: Breaking Changes introduced in order to improve caching.
- Changed
__CACHE__
object type fromlist
todict
- Changed get cache interface from
ContentTypeCache.get(content_type_id)
toContentTypeCache.get(space_id, content_type_id)
- Fixed a bug to retrieve an entry when raw_mode is enabled.
- Added
#_metadata['tags']
to read metadata tags on entry and asset.
- Unresolved single references fields will no longer return the invalid Link and return None instead, matching behaviour of multiple references fields, where unresolvable links are ignored. #58
- Fixed an
IndexError
when multiple invalid nodes were found in a RichText field. #52
- Assets with empty or missing files no longer error when trying to get it serialized to string. #48
- Fixed project description for PyPI.
- Added
timeout_s
to Client. #46
- Entries that had already been processed when coercing RichText fields are now properly omitted. #41
- Errors are now being correctly propagated through the chain of relationships.
- Links in
RichText
fields, that are published but unreachable, due to not having enough include depth on the request, are now returned asLink
objects.
- Updated
requests
version due to a vulnerability found in versions2.19
and below. - Included resources for embedded entries and assets in Rich Text fields are now properly serialized to
data.target
instead of the top leveldata
.
- Removed Pandoc depedency from installation
As RichText
moves from alpha
to beta
, we're treating this as a feature release.
- Renamed
StructuredText
toRichText
.
- Added support for
StructuredText
inline Entry include resolution.
- Added support for
StructuredText
field type.
- Ensure all arrays sent as parameters to the API are properly serialized.
- Added support to reuse entries. This is a performance improvement, which is disabled by default due to backwards compatibility. All users are highly encouraged to enable it and test it in their applications. Inspired by @rezonant in contentful/contentful.rb#164.
- Added support of environments to
sync
.
- Added support of
environments
functionality.
- Added filtering of invalid entries from API responses.
- Added incoming links functionality.
- Fixed an edge case for 404 error returning a
sys
object wrapping details.
- Fixed edge case for 404 error returning a string as details.
- Improved error messages and handling for all API errors.
- Added
X-Contentful-User-Agent
header for more information.
- Added configuration option
max_include_resolution_depth
for controlling depth of reference resolution.
- Fix JSON Deserialization when Arrays are included in the JSON Object fields.
- Fix return values when value is
None
#11
- Add wrapper object around array-like endpoints #9
- Fix exception thrown on Entry not found #8
- Fixed Unicode Decode for 2.x Python #4
- Fixed Typo in Attribute Error #3
- Removed
contentful==1.0.0
as a dependency.
- Removed version pinning on setup.py #1
Initial release of the Official CDA SDK.
- Support for all suppoerted CDA Endpoints.
- Serrialization for all Endpoint resources.
- Recursive included resource resolution for Entries and Assets.
- Link Resolution.
- Rate Limit automatic back-off.
- Proxy support.