- Added
Endpoint.get_contentstack_endpoint()for dynamic region-aware URL resolution across all Contentstack regions and services. - Added
Utils.get_contentstack_endpoint()proxy for backward-compatible access via the existingUtilsimport path. - Added
getContentstackEndpointcamelCase alias on bothEndpointandUtilsfor cross-SDK parity. - Bundled
contentstack_utils/assets/regions.json— the authoritative registry of 7 regions (AWS NA/EU/AU, Azure NA/EU, GCP NA/EU) and 18 service endpoint keys. - Added runtime fallback in
Endpoint._load_regions()— downloadsregions.jsonfromartifacts.contentstack.comon first use when the file is absent. - Added
scripts/refresh_regions.py(source-tree only) andpython3 -m contentstack_utils.region_refresh(installed package CLI) to manually pull the latest regions from Contentstack. - Exported
Endpointat package level in__all__. - Added
refresh_regions()utility to programmatically download the latest regions manifest from the Contentstack CDN and overwrite the bundledassets/regions.json. - Exposed
refresh_regionsat the package level (from contentstack_utils import refresh_regions) for use in CI pipelines and tooling. setup.pynow auto-refreshesregions.jsonat build time via a customBuildPyWithRegionscommand; network failures warn but never block the build.- Added
assets/regions.jsontopackage_dataso the bundled file is correctly shipped in the sdist/wheel.
- Added
Utils.get_variant_aliasesto read variant alias strings frompublish_details.variantson a CDA entry (single dict or list of entries). - Added support for optional
content_type_uidwhen_content_type_uidis absent on the entry. - Added
Utils.get_variant_metadata_tagsto build adata-csvariantsHTML data-attribute value (JSON string of multi-entry alias results).
- Added JS-parity editable tagging helpers in
contentstack_utils/entry_editable.py. - Added
addEditableTagsandaddTagsto mutate an entry with a$map of CSLP tags. - Added support for nested objects, arrays, references, and applied variants.
- Added locale and
contentTypeUidcase normalization behavior aligned with JS. - Added
getTaghelper for recursive tag map construction. - Exported
addEditableTags,addTags, andgetTagat package level. - Added delegation via
Utilsfor backward compatibility.
- Fixed deprecated unittest assertion usage in
tests/convert_style.pyfor newer Python versions.
- Added
Utils.get_variant_aliasesto read variant alias strings frompublish_details.variantson a CDA entry (single dict or list of entries). - Added support for optional
content_type_uidwhen_content_type_uidis absent on the entry. - Added
Utils.get_variant_metadata_tagsto build adata-csvariantsHTML data-attribute value (JSON string of multi-entry alias results).
- Fixed security issues.
- Fixed security issues.
- Bumped
setuptoolspackage version.
- Fixed link type attributes issue.
- Added
Referenceattribute node support.
- Added
fragmentstyle attribute support.
- Minor bug fixes and code improvements.
- Added package release support.
- Added GraphQL SRTE support.
- Added
GQL.jsonToHtmlsupport.
- Added
Utils.jsonToHtmlsupport.
- Initial release of
contentstack_utils.
- Initial release of
contentstack_utils.