contentstack-utils 1.3.0__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/LICENSE +1 -1
  2. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/PKG-INFO +11 -2
  3. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/__init__.py +1 -1
  4. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/render/options.py +1 -1
  5. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/PKG-INFO +11 -2
  6. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/setup.py +1 -1
  7. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_util_srte.py +4 -5
  8. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/README.md +0 -0
  9. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/automate.py +0 -0
  10. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/__init__.py +0 -0
  11. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/item_type.py +0 -0
  12. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/styletype.py +0 -0
  13. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/gql.py +0 -0
  14. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/__init__.py +0 -0
  15. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/converter.py +0 -0
  16. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/metadata.py +0 -0
  17. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/node_to_html.py +0 -0
  18. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/render/__init__.py +0 -0
  19. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/utils.py +0 -0
  20. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/SOURCES.txt +0 -0
  21. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/dependency_links.txt +0 -0
  22. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/top_level.txt +0 -0
  23. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/setup.cfg +0 -0
  24. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/__init__.py +0 -0
  25. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/convert_style.py +0 -0
  26. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_default_opt_others.py +0 -0
  27. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_gql_to_html_func.py +0 -0
  28. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_helper_node_to_html.py +0 -0
  29. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_item_types.py +0 -0
  30. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_metadata.py +0 -0
  31. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_option_render_mark.py +0 -0
  32. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_render_default_options.py +0 -0
  33. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_render_options.py +0 -0
  34. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_style_type.py +0 -0
  35. {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_utils.py +0 -0
@@ -1,4 +1,4 @@
1
- Copyright 2024 Contentstack
1
+ Copyright 2021-2025 Contentstack
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: contentstack_utils
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: contentstack_utils is a Utility package for Contentstack headless CMS with an API-first approach.
5
5
  Home-page: https://github.com/contentstack/contentstack-utils-python
6
6
  Author: contentstack
@@ -16,6 +16,15 @@ Classifier: Programming Language :: Python :: 3.9
16
16
  Requires-Python: >=3.6
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
+ Dynamic: author
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: license
25
+ Dynamic: license-file
26
+ Dynamic: requires-python
27
+ Dynamic: summary
19
28
 
20
29
  # Contentstack Utility
21
30
 
@@ -31,6 +31,6 @@ __all__ = (
31
31
  __title__ = 'contentstack_utils'
32
32
  __author__ = 'contentstack'
33
33
  __status__ = 'debug'
34
- __version__ = '1.3.0'
34
+ __version__ = '1.3.2'
35
35
  __endpoint__ = 'cdn.contentstack.io'
36
36
  __contact__ = 'support@contentstack.com'
@@ -70,7 +70,7 @@ class Options:
70
70
  if node_type == 'p':
71
71
  return "<p>" + inner_html + "</p>"
72
72
  if node_type == 'a':
73
- return "<a href=\"{}\">{}</a>".format(node_obj["attrs"]["href"], inner_html)
73
+ return "<a href=\"{}\">{}</a>".format(node_obj["attrs"]["url"], inner_html)
74
74
  if node_type == 'img':
75
75
  return "<img src=\"{}\" />{}".format(node_obj["attrs"]["src"], inner_html)
76
76
  if node_type == 'embed':
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: contentstack_utils
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: contentstack_utils is a Utility package for Contentstack headless CMS with an API-first approach.
5
5
  Home-page: https://github.com/contentstack/contentstack-utils-python
6
6
  Author: contentstack
@@ -16,6 +16,15 @@ Classifier: Programming Language :: Python :: 3.9
16
16
  Requires-Python: >=3.6
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
+ Dynamic: author
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: license
25
+ Dynamic: license-file
26
+ Dynamic: requires-python
27
+ Dynamic: summary
19
28
 
20
29
  # Contentstack Utility
21
30
 
@@ -15,7 +15,7 @@ setup(
15
15
  long_description_content_type="text/markdown",
16
16
  url="https://github.com/contentstack/contentstack-utils-python",
17
17
  license='MIT',
18
- version='1.3.0',
18
+ version='1.3.2',
19
19
  install_requires=[
20
20
 
21
21
  ],
@@ -110,7 +110,7 @@ class TestSuperchargedUtils(unittest.TestCase):
110
110
 
111
111
  def test_reference_list_in_supercharged_dict_to_html(self):
112
112
  array_str = ['reference']
113
- response = response = Utils.json_to_html([self._json_data], array_str, Options())
113
+ response = Utils.json_to_html([self._json_data], array_str, Options())
114
114
  self.assertEqual(Results.refImgHtml, response)
115
115
 
116
116
  def test_nested_order_list_in_supercharged_dict_to_html(self):
@@ -118,11 +118,10 @@ class TestSuperchargedUtils(unittest.TestCase):
118
118
  Utils.json_to_html([self._json_data], array_str, Options())
119
119
  self.assertEqual(Results.nested_order_list_with_fragment, "<ol><li><fragment>List Item 1</fragment><ol><li>List Item 1.1</li><li>List Item 1.2</li><li>List Item 1.3</li></ol></li></ol>")
120
120
 
121
-
122
- def test_reference_list_in_supercharged_dict_to_html(self):
121
+ def test_reference_image_in_supercharged_dict_to_html(self):
123
122
  array_str = ['reference']
124
- Utils.json_to_html([self._json_data], array_str, Options())
125
- self.assertEqual(Results.linkInPHtml, self._json_data['reference'])
123
+ response = Utils.json_to_html([self._json_data], array_str, Options())
124
+ self.assertEqual(Results.refImgHtml, response)
126
125
 
127
126
  def test_nested_order_list_in_supercharged_dict_to_html(self):
128
127
  array_str = ['nested_order_list_with_fragment']