Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,10 @@ fileignoreconfig:
checksum: a1d4824626aea510cd80c9b1920ede40cdc374ee9a81169811ca7980a9b67b32
- filename: tests/unit/variants/test_variants.py
checksum: 866f8b27d41694d0b2a7273c842b2b2b25cab6dac5919edb7d4d658bc0aa20cb
- filename: tests/unit/contentstack/test_contentstack_integration.py
checksum: 02ba865a776ce83afb7cab6c08965ba512f696bd1daa0e39489f68ceff21ba2b
- filename: tests/unit/contentstack/test_contentstack_utils.py
checksum: 344aa9e4b3ec399c581a507eceff63ff6faf56ad938475e5f4865f6cb590df68
- filename: tests/unit/contentstack/test_contentstack.py
checksum: 98503cbd96cb546a19aed037a6ca28ef54fcea312efcd9bac1171e43760f6e86
version: "1.0"
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# CHANGELOG

## Content Management SDK For Python
---
## v1.6.0

#### Date: 01 September 2025

- AWS AU region support.

---
## v1.5.0

Expand Down
2 changes: 1 addition & 1 deletion contentstack_management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
__author__ = 'dev-ex'
__status__ = 'debug'
__region__ = 'na'
__version__ = '1.5.0'
__version__ = '1.6.0'
__host__ = 'api.contentstack.io'
__protocol__ = 'https://'
__api_version__ = 'v3'
Expand Down
4 changes: 3 additions & 1 deletion contentstack_management/contentstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
class Region(Enum):
US = "us"
EU = "eu"
AU = "au"
AZURE_EU = "azure-eu"
AZURE_NA = "azure-na"
GCP_NA = "gcp-na"
GCP_EU = "gcp-eu"


def user_agents(headers=None):
Expand Down Expand Up @@ -43,7 +45,7 @@ def __init__(self, host: str = 'api.contentstack.io', scheme: str = 'https://',
if headers is None:
headers = {}
if early_access is not None:
early_access_str = ', '.join(self.early_access)
early_access_str = ', '.join(early_access)
headers['x-header-ea'] = early_access_str

if authtoken is not None:
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python-dotenv~=1.0.0
setuptools==80.3.1
requests~=2.32.3
pylint
bson>=0.5.9
requests-toolbelt>=1.0.0
python-dotenv>=1.0.0,<2.0.0
setuptools>=80.0.0
requests>=2.32.0,<3.0.0
pylint>=2.0.0
bson>=0.5.9,<1.0.0
requests-toolbelt>=1.0.0,<2.0.0
11 changes: 10 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
from .unit.stack.test_stack import StacksUnitTests
from .unit.users.test_users import UserUnitTests
from .unit.entry.test_entry import EntryUnitTests
from .unit.contentstack.test_contentstack import ContentstackRegionUnitTests
from .unit.contentstack.test_contentstack_integration import ContentstackIntegrationTests
from .unit.contentstack.test_contentstack_utils import ContentstackUtilsTests


def all_tests():
Expand All @@ -42,6 +45,9 @@ def all_tests():
test_module_user_mock = TestLoader().loadTestsFromTestCase(UserMockTests)
test_module_entry_unittest = TestLoader().loadTestsFromTestCase(EntryUnitTests)
test_module_alias_unittest = TestLoader().loadTestsFromTestCase(AliasesUnitTests)
test_module_contentstack_region_unit = TestLoader().loadTestsFromTestCase(ContentstackRegionUnitTests)
test_module_contentstack_integration = TestLoader().loadTestsFromTestCase(ContentstackIntegrationTests)
test_module_contentstack_utils = TestLoader().loadTestsFromTestCase(ContentstackUtilsTests)


TestSuite([
Expand All @@ -55,6 +61,9 @@ def all_tests():
test_module_stacks_api,
test_module_stacks_unit,
test_module_entry_unittest,
test_module_alias_unittest
test_module_alias_unittest,
test_module_contentstack_region_unit,
test_module_contentstack_integration,
test_module_contentstack_utils

])
1 change: 1 addition & 0 deletions tests/unit/contentstack/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Unit tests for contentstack module
Loading