Skip to main content

Json converter

Project description

jsonconverter

A one step stop for all Json conversions.

Installation

pip install jsonConverter

Usage

from jsonConverter import jsonConverter
json_converter = jsonConverter(ANY_JSON)

Invoke jsonConverter from json file

from jsonConverter import jsonConverter
json_converter = jsonConverter.from_file(json_path)

Invoke jsonConverter from json string

from jsonConverter import jsonConverter
json_converter = jsonConverter.from_string(json_str)

Get htmltable from json

from jsonConverter import jsonConverter
json_converter = jsonConverter(ANY_JSON)
json_converter.get_html_table()

How to change default attributes for html table

Below attributes are exposed. So, pass these parameters to get_html_table method.

table_border_color
header_cell_border_color
header_background_color
header_text_color
header_font_size

Example 1 : get html table with header background color as red

from jsonConverter import jsonConverter
json_converter = jsonConverter(ANY_JSON)
json_converter.get_html_table(header_background_color = "#ff0000")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonConverter-1.0.2.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

jsonConverter-1.0.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page