File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed
services/web/server/src/simcore_service_webserver/publications Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change 11"""
2+ This module provides functionality to convert JSON data into an HTML table format.
3+ It is a snapshot of the `json2html` library to avoid compatibility issues with
4+ specific versions of `setuptools`.
5+
6+ Classes:
7+ - Json2Html: A class that provides methods to convert JSON data into HTML tables
8+ or lists, with options for customization.
9+
10+ Functions:
11+ ----------
12+ - Json2Html.convert: Converts JSON data into an HTML table or list format.
13+ - Json2Html.column_headers_from_list_of_dicts: Determines column headers for a list of dictionaries.
14+ - Json2Html.convert_json_node: Dispatches JSON input based on its type and processes it into HTML.
15+ - Json2Html.convert_list: Converts a JSON list into an HTML table or list.
16+ - Json2Html.convert_object: Converts a JSON object into an HTML table.
17+
18+ Attributes:
19+ -----------
20+ - json2html: An instance of the Json2Html class for direct use.
21+
22+ Notes:
23+ ------
24+ - This module supports Python 2.7+ and Python 3.x.
25+ - It uses `OrderedDict` to preserve the order of keys in JSON objects.
26+ - The `html_escape` function is used to escape HTML characters in text.
27+
28+ License:
29+ MIT License
30+
31+ Source:
32+ -------
33+ Snapshot of https://github.com/softvar/json2html/blob/0a223c7b3e5dce286811fb12bbab681e7212ebfe/json2html/jsonconv.py
234JSON 2 HTML Converter
335=====================
436
1547--------
1648"""
1749
18- # NOTE:
50+ # pylint: skip-file
1951#
20- # Snapshot of https://github.com/softvar/json2html/blob/0a223c7b3e5dce286811fb12bbab681e7212ebfe/json2html/jsonconv.py
52+ # NOTE: Snapshot of https://github.com/softvar/json2html/blob/0a223c7b3e5dce286811fb12bbab681e7212ebfe/json2html/jsonconv.py
2153# to avoid failure to install this module with `setuptools 78.0.1` due to
2254# deprecated feature that this library still uses
2355#
2456
57+
2558import sys
2659
2760if sys .version_info [:2 ] < (2 , 7 ):
You can’t perform that action at this time.
0 commit comments