Skip to content

Commit 8de3485

Browse files
committed
feat: modified comments
1 parent d7ed321 commit 8de3485

4 files changed

Lines changed: 3 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
- Added `Endpoint.get_contentstack_endpoint()` for dynamic region-aware URL resolution across all Contentstack regions and services.
88
- Added `Utils.get_contentstack_endpoint()` proxy for backward-compatible access via the existing `Utils` import path.
9-
- Added `getContentstackEndpoint` camelCase alias on both `Endpoint` and `Utils` for cross-SDK parity with the PHP and JS implementations.
9+
- Added `getContentstackEndpoint` camelCase alias on both `Endpoint` and `Utils` for cross-SDK parity.
1010
- 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.
1111
- Added runtime fallback in `Endpoint._load_regions()` — downloads `regions.json` from `artifacts.contentstack.com` on first use when the file is absent.
12-
- Added `scripts/refresh_regions.py` to manually pull the latest regions from Contentstack (equivalent of `composer refresh-regions` in the PHP SDK).
12+
- Added `scripts/refresh_regions.py` to manually pull the latest regions from Contentstack .
1313
- Exported `Endpoint` at package level in `__all__`.
1414

1515
## v1.5.0

contentstack_utils/endpoint.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ def get_contentstack_endpoint(
118118
endpoints = dict(region_row["endpoints"])
119119
return Endpoint._strip_https_from_map(endpoints) if omit_https else endpoints
120120

121-
# ------------------------------------------------------------------
122-
# JS/PHP parity alias — lets callers use the same camelCase name
123-
# across all Contentstack SDK languages without a lookup.
124-
# ------------------------------------------------------------------
121+
125122
getContentstackEndpoint = get_contentstack_endpoint
126123

127124
@staticmethod

scripts/refresh_regions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Usage:
77
python3 scripts/refresh_regions.py
88
9-
Mirrors the ``composer refresh-regions`` command in the PHP SDK.
109
Run this whenever Contentstack adds a new region or service, then commit the
1110
updated file so all consumers get the change on their next install.
1211
"""

tests/test_endpoint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""
22
Tests for contentstack_utils.endpoint.Endpoint and the Utils proxy.
3-
4-
Mirrors the PHP EndpointTest.php suite for cross-SDK consistency.
53
"""
64

75
import pytest

0 commit comments

Comments
 (0)