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.
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/LICENSE +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/PKG-INFO +11 -2
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/__init__.py +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/render/options.py +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/PKG-INFO +11 -2
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/setup.py +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_util_srte.py +4 -5
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/README.md +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/automate.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/item_type.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/styletype.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/gql.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/converter.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/metadata.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/node_to_html.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/render/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/utils.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/SOURCES.txt +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/dependency_links.txt +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/top_level.txt +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/setup.cfg +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/convert_style.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_default_opt_others.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_gql_to_html_func.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_helper_node_to_html.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_item_types.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_metadata.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_option_render_mark.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_render_default_options.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_render_options.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_style_type.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/tests/test_utils.py +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
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
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: contentstack_utils
|
|
3
|
-
Version: 1.3.
|
|
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
|
|
|
@@ -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"]["
|
|
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
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: contentstack_utils
|
|
3
|
-
Version: 1.3.
|
|
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
|
|
|
@@ -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 =
|
|
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.
|
|
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']
|
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/__init__.py
RENAMED
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/item_type.py
RENAMED
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/embedded/styletype.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/converter.py
RENAMED
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils/helper/node_to_html.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.2}/contentstack_utils.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|